/* Free audit pop-up. Opens from every "Book My Free Audit" button. */
.am-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; height: 100%; height: 100dvh; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(61, 31, 78, 0.5); }
.am-overlay.is-open { display: flex; }
.am-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: #FCF6F8; color: #3D1F4E; border-radius: 10px; box-shadow: 0 2px 6px rgba(61, 31, 78, 0.1), 0 24px 60px rgba(61, 31, 78, 0.3); padding: 36px 32px 32px; font-family: "Poppins", sans-serif; -webkit-overflow-scrolling: touch; }
.am-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #3D1F4E; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.am-close:hover { background: rgba(61, 31, 78, 0.08); }
.am-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.am-dialog h2 { font-weight: 600; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 40px 8px 0; color: #3D1F4E; }
.am-sub { font-size: 0.95rem; line-height: 1.55; color: #050505; opacity: 0.68; margin: 0 0 24px; }
.am-field { margin-bottom: 14px; }
.am-label { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: #3D1F4E; margin-bottom: 6px; }
.am-input { display: block; width: 100%; min-height: 43px; background: #fff; color: #050505; border: 1px solid #BFA5C8; border-radius: 8px; font-family: "Poppins", sans-serif; font-size: 16px; padding: 9px 14px; }
.am-input:focus { outline: 2px solid #3D1F4E; outline-offset: 1px; border-color: #3D1F4E; }
.am-input::placeholder { color: #8d7a97; }
textarea.am-input { min-height: 86px; resize: vertical; }
.am-error { color: #B3261E; font-size: 0.875rem; margin: 6px 0 0; }
.am-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-answers .am-answer:last-child { grid-column: 1 / -1; }
.am-answer { display: block; width: 100%; min-height: 43px; background: #fff; color: #3D1F4E; border: 1px solid #BFA5C8; border-radius: 8px; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 0.95rem; padding: 9px 14px; text-align: left; cursor: pointer; }
.am-answer:hover { border-color: #3D1F4E; }
.am-answer:focus-visible { outline: 2px solid #3D1F4E; outline-offset: 2px; }
.am-answer.is-selected { background: #3D1F4E; color: #FCF6F8; border-color: #3D1F4E; }
.am-submit { display: block; width: 100%; min-height: 47px; background: #3D1F4E; color: #FCF6F8; border: 0; border-radius: 12px; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 1rem; cursor: pointer; margin-top: 8px; }
.am-submit:hover { background: #4d2a61; }
.am-submit:focus-visible { outline: 2px solid #3D1F4E; outline-offset: 3px; }
.am-submit:disabled { opacity: 0.6; cursor: default; }
.am-thanks { display: none; text-align: left; }
.am-dialog.is-done .am-thanks { display: block; }
.am-dialog.is-done form { display: none; }
body.am-lock { overflow: hidden; }
@media (max-width: 600px), (max-height: 760px) {
  .am-overlay { padding: 8px; align-items: flex-end; }
  .am-dialog { padding: 20px 16px 14px; max-height: 100%; }
  .am-dialog h2 { font-size: 1.25rem; margin-bottom: 4px; }
  .am-sub { font-size: 0.85rem; line-height: 1.45; margin: 0 28px 10px 0; }
  .am-dialog h2 { margin-right: 36px; }
  .am-label { font-size: 0.8rem; margin-bottom: 4px; }
  .am-field { margin-bottom: 8px; }
  .am-close { top: 6px; right: 6px; }
  .am-input { min-height: 40px; padding: 7px 12px; font-size: 16px; }
  .am-answer { min-height: 40px; padding: 7px 12px; font-size: 0.9rem; }
  textarea.am-input { min-height: 64px; }
  .am-answers { gap: 8px; }
  .am-submit { min-height: 44px; margin-top: 4px; }
  .am-error { font-size: 0.8rem; margin-top: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .am-overlay.is-open { animation: am-fade 160ms ease-out; }
  .am-overlay.is-open .am-dialog { animation: am-rise 200ms ease-out; }
  @keyframes am-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes am-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
.am-label .am-input { margin-top: 6px; font-weight: 400; }
