.ahm {
  --ahm-navy: #061d43;
  --ahm-navy-2: #0b315f;
  --ahm-orange: #ff7200;
  --ahm-orange-dark: #dd5d00;
  --ahm-ink: #102442;
  --ahm-muted: #5d6879;
  --ahm-border: #ccd4df;
  --ahm-soft: #f3f6fa;
  --ahm-green: #15935b;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  color: var(--ahm-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  box-shadow: 0 24px 70px rgba(6, 29, 67, .16);
}

.ahm *, .ahm *::before, .ahm *::after { box-sizing: border-box; }
.ahm button, .ahm input, .ahm textarea { font: inherit; }
.ahm__screen { display: none; }
.ahm__screen.is-active { display: grid; animation: ahmFade .4s cubic-bezier(.2,.8,.2,1); }
@keyframes ahmFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ahmCardRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ahmConsentNudge { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

.ahm__form { margin: 0; }
.ahm__screen[data-ahm-step="1"] { grid-template-columns: minmax(0, 1.06fr) minmax(520px, .94fr); min-height: 700px; }
.ahm__hero {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 34px 38px 30px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 22, 52, .4) 0%, rgba(3, 22, 52, .74) 62%, rgba(3, 22, 52, .93) 100%),
    var(--ahm-hero-image),
    linear-gradient(135deg, #061d43 0%, #0b3768 100%);
  background-size: cover;
  background-position: center bottom;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ahm__hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 14%, rgba(21, 96, 168, .34), transparent 40%); pointer-events: none; }
.ahm__hero > * { position: relative; z-index: 1; }
.ahm__brand { display: flex; align-items: center; }
.ahm__brand img { width: min(270px, 56vw); height: auto; display: block; filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .2)); }
.ahm__hero-copy { max-width: 620px; margin: 54px 0 auto; padding-top: 24px; }
.ahm__hero-title { margin: 0; max-width: 600px; color: #fff; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(3.4rem, 6.2vw, 6.6rem); font-weight: 900; letter-spacing: .025em; line-height: .95; text-transform: uppercase; text-shadow: 0 4px 22px rgba(0, 0, 0, .28); }
.ahm__orange-rule { display: block; width: 60px; height: 4px; margin: 24px 0 18px; border-radius: 4px; background: var(--ahm-orange); }
.ahm__hero h2 { max-width: 620px; margin: 0 0 18px; color: #fff; font-size: clamp(1.55rem, 2.4vw, 2.45rem); line-height: 1.12; }
.ahm__hero-copy > p:last-of-type { max-width: 590px; margin: 0; color: rgba(255, 255, 255, .87); font-size: 1.08rem; }
.ahm__trust-row { display: flex; gap: 14px 26px; margin-top: 26px; flex-wrap: wrap; color: rgba(255, 255, 255, .9); font-size: .75rem; text-transform: uppercase; letter-spacing: .045em; }
.ahm__trust-row span { display: flex; align-items: center; gap: 6px; }
.ahm__trust-row b { color: var(--ahm-orange); font-size: 1rem; }
.ahm__location { margin-top: 38px; font-size: .88rem; }
.ahm__location span { margin-right: 7px; color: var(--ahm-orange); }

.ahm__quiz-panel { padding: 34px 42px 24px; background: #fff; }
.ahm__step-label { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; color: var(--ahm-orange); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.ahm__step-label i { display: block; width: 160px; height: 3px; background: linear-gradient(90deg, var(--ahm-orange) 0 48%, #e8ecf1 48%); }
.ahm__step-label--center { justify-content: center; }
.ahm__step-label--center i { background: linear-gradient(90deg, var(--ahm-orange) 0 100%, #e8ecf1 100%); }
.ahm__quiz-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 19px; }
.ahm__home-icon { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ff8b00, #f35f00); font-size: 2rem; }
.ahm__quiz-heading h2 { margin: 1px 0 3px; color: var(--ahm-ink); font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.08; }
.ahm__quiz-heading p { margin: 0; color: var(--ahm-muted); font-size: .86rem; }

.ahm__question { min-width: 0; margin: 0 0 17px; padding: 0; border: 0; }
.ahm__question legend { width: 100%; margin: 0 0 8px; padding: 0; color: var(--ahm-ink); font-size: .92rem; font-weight: 800; }
.ahm__choices { display: grid; gap: 8px; }
.ahm__choices--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ahm__choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ahm__choice { position: relative; min-width: 0; cursor: pointer; }
.ahm__choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ahm__choice span { min-height: 40px; padding: 9px 8px; display: grid; place-items: center; border: 1px solid var(--ahm-border); border-radius: 8px; color: var(--ahm-ink); background: #fff; font-size: .78rem; font-weight: 650; text-align: center; transition: border-color .15s, color .15s, background .15s, box-shadow .15s; }
.ahm__choice:hover span { border-color: var(--ahm-orange); }
.ahm__choice input:checked + span { border-color: var(--ahm-orange); color: var(--ahm-orange-dark); background: #fff7ef; box-shadow: inset 0 0 0 1px var(--ahm-orange); }
.ahm__choice input:focus-visible + span { outline: 3px solid rgba(255, 114, 0, .24); outline-offset: 2px; }
.ahm__choice input[aria-invalid="true"] + span { border-color: #b42318; box-shadow: inset 0 0 0 1px #b42318; }

.ahm__button { appearance: none; min-height: 46px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 7px; color: #fff; font-weight: 850; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s, opacity .15s; }
.ahm__button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6, 29, 67, .17); }
.ahm__button:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.ahm .ahm__button--primary { width: 100%; color: #fff !important; background: linear-gradient(90deg, #ff7900, #ff6500); }
.ahm__button--primary:hover { background: linear-gradient(90deg, #ef6c00, #e95500); }
.ahm .ahm__button--navy { width: 100%; margin-top: 14px; color: #fff !important; background: var(--ahm-navy); }
.ahm .ahm__button--navy:hover { color: #fff !important; background: var(--ahm-navy-2); }
.ahm__button--secondary { width: 100%; margin-top: 9px; border: 1px solid #b7c4d4; color: var(--ahm-navy); background: #fff; }
.ahm__button--secondary:hover { color: var(--ahm-navy); border-color: var(--ahm-orange); background: #fff8f1; }
.ahm__button--outline { width: 100%; margin-top: 9px; border: 1px solid var(--ahm-orange); color: var(--ahm-orange-dark); background: #fff; }
.ahm__button--outline:hover { color: var(--ahm-orange-dark); background: #fff7ef; }
.ahm__privacy-line { margin: 10px 0 0; color: var(--ahm-muted); font-size: .72rem; text-align: center; }
.ahm__message { margin-top: 10px; color: var(--ahm-navy-2); font-size: .84rem; font-weight: 750; }

.ahm__matches-screen { padding: 28px clamp(20px, 4vw, 58px) 34px; background: linear-gradient(180deg, #fff, #f8fafc); }
.ahm__matches-heading { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.ahm__matches-heading h2 { margin: 0 0 7px; color: var(--ahm-ink); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; }
.ahm__matches-heading p { margin: 0; color: var(--ahm-muted); }
.ahm__preview-results, .ahm__final-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ahm__card { min-width: 0; overflow: hidden; border: 1px solid var(--ahm-border); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(8, 33, 70, .08); animation: ahmCardRise .5s both cubic-bezier(.2,.8,.2,1); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.ahm__card:nth-child(2) { animation-delay: .07s; }
.ahm__card:nth-child(3) { animation-delay: .14s; }
.ahm__card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(8, 33, 70, .14); }
.ahm__card--model { border-color: #d7e1ec; background: linear-gradient(180deg, #fff, #fbfcfe); }
.ahm__card--model .ahm__gallery { aspect-ratio: 4 / 3; background: linear-gradient(145deg, #dce9f4, #c6d8e8); }
.ahm__card--model .ahm__card-image { aspect-ratio: 4 / 3; object-fit: cover; background: #dce5ef; }
.ahm__card--model .ahm__gallery--floorplan { background: linear-gradient(145deg, #e7eff7, #d4e2ef); }
.ahm__card--model .ahm__gallery--floorplan .ahm__card-image { object-fit: contain; padding: 10px; background: transparent; mix-blend-mode: multiply; }
.ahm__gallery { position: relative; overflow: hidden; background: #dce5ef; }
.ahm__gallery:focus-visible { outline: 4px solid rgba(255, 114, 0, .42); outline-offset: -4px; }
.ahm__card-image { width: 100%; aspect-ratio: 16 / 8.8; display: block; object-fit: cover; background: #dce5ef; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.ahm__gallery:hover .ahm__card-image { transform: scale(1.018); }
.ahm .ahm__gallery-button { appearance: none !important; position: absolute !important; top: 50% !important; z-index: 2 !important; width: 40px !important; min-width: 40px !important; max-width: 40px !important; height: 40px !important; min-height: 40px !important; max-height: 40px !important; margin: 0 !important; padding: 0 !important; display: grid !important; place-items: center !important; transform: translateY(-50%) !important; border: 1px solid rgba(255,255,255,.74) !important; border-radius: 999px !important; color: #fff !important; background: rgba(6, 29, 67, .82) !important; box-shadow: 0 4px 14px rgba(0,0,0,.22) !important; font-size: 1.65rem !important; font-weight: 700 !important; line-height: 1 !important; text-align: center !important; text-indent: 0 !important; white-space: nowrap !important; overflow: hidden !important; cursor: pointer !important; }
.ahm .ahm__gallery-button::before, .ahm .ahm__gallery-button::after { content: none !important; display: none !important; }
.ahm .ahm__gallery-button:hover { color: #fff !important; background: var(--ahm-orange) !important; transform: translateY(-50%) scale(1.06) !important; }
.ahm__gallery-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ahm__gallery-button--previous { left: 10px; }
.ahm__gallery-button--next { right: 10px; }
.ahm__gallery-count { position: absolute; right: 10px; bottom: 9px; z-index: 2; padding: 4px 8px; border-radius: 999px; color: #fff; background: rgba(6, 29, 67, .82); font-size: .68rem; font-weight: 800; }
.ahm__card-body { padding: 15px; }
.ahm__card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -15px -15px 12px; color: var(--ahm-muted); font-size: .68rem; }
.ahm__card--model .ahm__card-top { justify-content: flex-start; }
.ahm__plan-pill { padding: 5px 12px; color: #fff; background: var(--ahm-navy); font-weight: 850; letter-spacing: .035em; }
.ahm__availability { margin-right: 8px; color: var(--ahm-green); font-weight: 800; }
.ahm__availability--soon { color: #9b5200; }
.ahm__card--model .ahm__plan-pill { margin: 0; color: #fff; font-size: .68rem; line-height: 1.45; }
.ahm__card h3 { margin: 0 0 8px; color: var(--ahm-ink); font-size: 1.1rem; }
.ahm__card-facts { display: flex; gap: 10px 16px; padding-bottom: 9px; border-bottom: 1px solid #edf0f4; flex-wrap: wrap; color: var(--ahm-muted); font-size: .7rem; }
.ahm__address { margin: 9px 0; color: var(--ahm-muted); font-size: .78rem; }
.ahm__highlights { min-height: 72px; margin: 10px 0; padding-left: 17px; color: var(--ahm-ink); font-size: .73rem; }
.ahm__highlights li { margin-bottom: 3px; }
.ahm__price-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; margin-top: 10px; }
.ahm__price-row span { display: block; color: var(--ahm-muted); font-size: .65rem; text-transform: uppercase; }
.ahm__price-row strong { display: block; color: var(--ahm-ink); font-size: .92rem; }
.ahm__model-price { margin-top: 12px; padding: 12px; border-radius: 7px; background: #eef3f9; }
.ahm__model-price span { display: block; color: var(--ahm-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .035em; }
.ahm__model-price strong { display: block; margin-top: 3px; color: var(--ahm-navy); font-size: 1.02rem; }
.ahm__comparison { margin: 10px 0 0; color: var(--ahm-muted); font-size: .75rem; }
.ahm__projection-note { margin: 10px 0 0; color: #7b541e; font-size: .69rem; font-weight: 750; }
.ahm__incentive { margin: 8px 0 0; color: var(--ahm-orange-dark); font-size: .72rem; font-weight: 800; }
.ahm__empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--ahm-border); border-radius: 10px; background: #fff; text-align: center; }
.ahm__empty h3 { margin-top: 0; }

.ahm__lead-gate { display: grid; grid-template-columns: .9fr 1.25fr; gap: 12px 28px; margin-top: 22px; padding: 20px 22px; border-radius: 10px; background: #eef3f9; }
.ahm__lead-intro { grid-row: span 4; padding-right: 15px; border-right: 1px solid #d7e0eb; }
.ahm__lead-intro h3 { margin: 0 0 8px; font-size: 1.15rem; }
.ahm__lead-intro p { margin: 0 0 12px; color: var(--ahm-muted); font-size: .82rem; }
.ahm__lead-intro span { color: var(--ahm-navy-2); font-size: .75rem; font-weight: 800; }
.ahm__contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.ahm__contact-grid label > span { display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 800; }
.ahm__contact-grid label b { color: var(--ahm-orange); }
.ahm__contact-grid input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--ahm-border); border-radius: 5px; color: var(--ahm-ink); background: #fff; }
.ahm__contact-grid input:focus { outline: 3px solid rgba(255, 114, 0, .18); border-color: var(--ahm-orange); }
.ahm input[aria-invalid="true"] { border-color: #b42318; }
.ahm__check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--ahm-muted); background: rgba(255,255,255,.62); font-size: .7rem; transition: border-color .18s, color .18s, background .18s; }
.ahm__check[hidden] { display: none !important; }
.ahm__check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--ahm-orange); }
.ahm__check input:focus-visible { outline: 3px solid rgba(255, 114, 0, .28); outline-offset: 2px; }
.ahm__check a { color: var(--ahm-navy-2); font-size: inherit; font-weight: inherit; line-height: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ahm__check--required { color: #46546a; font-weight: 750; }
.ahm__check.is-invalid { border-color: #b42318; color: #8f1f17; background: #fff3f2; animation: ahmConsentNudge .42s ease-in-out; }
.ahm__check.is-invalid input { outline: 2px solid #b42318; outline-offset: 2px; }
.ahm__lead-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ahm__lead-actions .ahm__button { width: auto; min-width: 240px; }
.ahm .ahm__text-button { appearance: none; min-height: 36px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--ahm-navy-2) !important; background: transparent !important; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ahm .ahm__text-button:hover { color: var(--ahm-orange-dark) !important; background: #fff7ef !important; }
.ahm .ahm__text-button:focus-visible { outline: 3px solid rgba(255, 114, 0, .28); outline-offset: 2px; }
.ahm__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ahm__disclosure { grid-column: 1 / -1; margin: 14px 0 0; color: var(--ahm-muted); font-size: .68rem; text-align: center; }

.ahm__final-screen { grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 16px; padding: 28px clamp(18px, 3vw, 42px); background: #f7f9fc; }
.ahm__success-panel, .ahm__next-panel { padding: 22px; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(8, 33, 70, .07); }
.ahm__success-panel { color: #fff; background: linear-gradient(150deg, var(--ahm-navy), #0b396d); text-align: center; }
.ahm__success-check { width: 58px; height: 58px; margin: 0 auto 18px; position: relative; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; }
.ahm__success-check i, .ahm__thanks-mark i { width: 23px; height: 12px; display: block; transform: rotate(-45deg); border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.ahm__success-panel h2 { margin: 0 0 12px; color: #fff; font-size: 1.45rem; }
.ahm__success-panel p { color: rgba(255, 255, 255, .82); font-size: .82rem; }
.ahm__badge { display: inline-block; margin-top: 12px; padding: 6px 10px; border-radius: 999px; color: #075c37; background: #dff7eb; font-size: .75rem; font-weight: 850; }
.ahm__badge[data-status="possible"] { color: #795600; background: #fff2cc; }
.ahm__badge[data-status="planning"] { color: #8a241b; background: #fde7e4; }
.ahm__badge[data-status="exploratory"] { color: #234c77; background: #e0ecf8; }
.ahm__next-panel h3 { margin-top: 0; }
.ahm__next-panel p { padding-left: 17px; position: relative; color: var(--ahm-muted); font-size: .78rem; }
.ahm__next-panel p::before { content: "✓"; position: absolute; left: 0; color: var(--ahm-orange); font-weight: 900; }
.ahm__next-panel [data-ahm-next-actions] { display: grid; gap: 10px; margin: 18px 0 10px; }
.ahm__next-panel .ahm__button--action { width: 100% !important; min-width: 0 !important; max-width: 100% !important; min-height: 52px; margin: 0 !important; padding: 10px 12px !important; border-radius: 7px; font-size: .74rem !important; line-height: 1.18 !important; text-align: center; white-space: normal !important; overflow-wrap: anywhere; }
.ahm__next-panel .ahm__button--secondary { border: 0; color: #fff !important; background: var(--ahm-navy-2); }
.ahm__next-panel .ahm__button--secondary:hover { color: #fff !important; background: var(--ahm-navy); }
.ahm__next-panel .ahm__button--secondary:disabled { color: #fff !important; background: #73849a; opacity: .78; }
.ahm__next-panel .ahm__action-note { padding-left: 0; font-size: .68rem; }
.ahm__next-panel .ahm__action-note::before, .ahm__next-panel .ahm__message::before { content: none; }
.ahm__text-button--restart { width: 100%; margin-top: 7px; }
.ahm__next-panel--direct { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; position: relative; text-align: center; background: linear-gradient(155deg, #fff 0%, #f2f7fc 100%); }
.ahm__next-panel--direct::before, .ahm__next-panel--direct::after { content: ""; position: absolute; border-radius: 999px; background: rgba(255, 114, 0, .1); animation: ahmThanksFloat 4.8s ease-in-out infinite; }
.ahm__next-panel--direct::before { width: 120px; height: 120px; top: -56px; right: -36px; }
.ahm__next-panel--direct::after { width: 78px; height: 78px; bottom: -34px; left: -22px; animation-delay: -2.1s; }
.ahm__thanks-mark { width: 70px; height: 70px; z-index: 1; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--ahm-orange), #e95500); box-shadow: 0 14px 32px rgba(239, 108, 0, .28); animation: ahmThanksArrive .62s cubic-bezier(.2,.9,.25,1.2) both; }
.ahm__next-panel--direct h3 { z-index: 1; margin: 18px 0 8px; color: var(--ahm-navy); }
.ahm__next-panel--direct .ahm__thanks-copy { z-index: 1; max-width: 34rem; margin: 0; padding: 0; line-height: 1.55; }
.ahm__next-panel--direct .ahm__thanks-copy::before { content: none; }
.ahm__final-screen > .ahm__disclosure { grid-column: 1 / -1; }
.ahm__payment-disclosure { max-width: 980px; margin-top: 0; line-height: 1.55; text-align: left; }

.ahm__dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 14px; color: var(--ahm-ink); background: #fff; box-shadow: 0 28px 90px rgba(2, 18, 44, .36); }
.ahm__dialog::backdrop { background: rgba(3, 20, 48, .72); backdrop-filter: blur(3px); }
.ahm__appointment-form { position: relative; padding: 28px; }
.ahm__appointment-form h2 { margin: 0 0 7px; color: var(--ahm-ink); font-size: 1.65rem; }
.ahm__appointment-form > p { margin: 0 0 18px; color: var(--ahm-muted); }
.ahm__appointment-form .ahm__eyebrow { margin-bottom: 5px; color: var(--ahm-orange-dark); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.ahm__appointment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ahm__appointment-form label { display: block; margin-bottom: 14px; }
.ahm__appointment-form label > span { display: block; margin-bottom: 5px; font-size: .76rem; font-weight: 800; }
.ahm__appointment-form input, .ahm__appointment-form select, .ahm__appointment-form textarea { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid var(--ahm-border); border-radius: 7px; color: var(--ahm-ink); background: #fff; }
.ahm__appointment-form textarea { min-height: 88px; resize: vertical; }
.ahm__appointment-form input:focus, .ahm__appointment-form select:focus, .ahm__appointment-form textarea:focus { outline: 3px solid rgba(255, 114, 0, .2); border-color: var(--ahm-orange); }
.ahm__appointment-form select:disabled { color: #6c7889; background: #f2f5f8; }
.ahm__appointment-form [data-ahm-refresh-slots] { margin: -4px 0 12px; }
.ahm__appointment-form .ahm__timezone { margin: -5px 0 14px; color: var(--ahm-muted); font-size: .7rem; }
.ahm__dialog-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--ahm-navy); background: #eef3f8; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ahm__dialog-close:hover { color: #fff; background: var(--ahm-navy); }

@media (max-width: 1040px) {
  .ahm__screen[data-ahm-step="1"] { grid-template-columns: .9fr 1.1fr; }
  .ahm__hero { padding: 28px; }
  .ahm__quiz-panel { padding: 28px; }
  .ahm__hero-title { font-size: clamp(3rem, 6vw, 5rem); }
  .ahm__final-screen { grid-template-columns: 220px minmax(0, 1fr); }
  .ahm__next-panel { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .ahm { box-shadow: none; }
  .ahm__screen[data-ahm-step="1"] { grid-template-columns: 1fr; }
  .ahm__hero { min-height: 520px; }
  .ahm__hero-copy { margin-top: 44px; }
  .ahm__quiz-panel { padding: 28px 22px; }
  .ahm__preview-results, .ahm__final-results { grid-template-columns: 1fr; }
  .ahm__lead-gate { grid-template-columns: 1fr; }
  .ahm__lead-intro { grid-row: auto; padding-right: 0; padding-bottom: 14px; border-right: 0; border-bottom: 1px solid #d7e0eb; }
  .ahm__final-screen { grid-template-columns: 1fr; }
  .ahm__next-panel { grid-column: auto; }
}

@media (max-width: 560px) {
  .ahm__hero { min-height: 460px; padding: 22px 18px; }
  .ahm__hero-title { font-size: 3.25rem; }
  .ahm__hero h2 { font-size: 1.45rem; }
  .ahm__hero-copy > p:last-of-type { font-size: .9rem; }
  .ahm__trust-row { font-size: .64rem; }
  .ahm__quiz-panel { padding: 24px 16px; }
  .ahm__quiz-heading { gap: 10px; }
  .ahm__home-icon { width: 42px; height: 42px; }
  .ahm__choices--three, .ahm__choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ahm__choice span { min-height: 44px; font-size: .74rem; }
  .ahm__matches-screen { padding: 22px 14px 28px; }
  .ahm__contact-grid { grid-template-columns: 1fr; }
  .ahm__lead-gate { padding: 18px 14px; }
  .ahm__lead-actions { align-items: stretch; flex-direction: column-reverse; }
  .ahm__lead-actions .ahm__button { width: 100%; min-width: 0; }
  .ahm__final-screen { padding: 18px 14px; }
  .ahm__appointment-form { padding: 24px 18px; }
  .ahm__appointment-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ahm__screen.is-active, .ahm__card, .ahm__check.is-invalid { animation: none; }
  .ahm__button, .ahm__card, .ahm__card-image { transition: none; }
  .ahm__card:hover, .ahm__gallery:hover .ahm__card-image { transform: none; }
}

@keyframes ahmThanksArrive { from { opacity: 0; transform: scale(.72) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes ahmThanksFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(10px) scale(1.05); } }
