/*
 * DCSA Applicant Intake & Scheduling — styling recreated from the high-fidelity redesign brief
 * (design_handoff_applicant_intake). Tokens below map 1:1 to the brief's design tokens.
 * Font: Poppins (Google Fonts), fallback system-ui.
 */
:root {
    --navy-900: #08234F;   /* hero gradient start, footer */
    --navy-800: #0B2F6B;   /* primary brand, headings, step badges, selected chip */
    --navy-600: #123E86;   /* hero gradient end */
    --blue-500: #1D5FBF;   /* link default */
    --gold-500: #E4A11B;   /* accent rule, progress fill, primary button */
    --gold-600: #D2930F;   /* primary button hover */
    --gold-400: #F0B53C;   /* hero stat values */
    --gold-300: #F3C46A;   /* hero eyebrow */
    --ink-900: #1F2A44;    /* body text, input text */
    --ink-600: #4A566B;    /* field labels, rail body */
    --ink-400: #6B7688;    /* card subtitles, select chevron */
    --ink-300: #8B95A6;    /* eyebrows, helper text */
    --line-200: #D6DCE6;   /* input border */
    --line-100: #E4E8EF;   /* card border, header border */
    --line-050: #EDF0F5;   /* inner dividers */
    --surface-page: #F1F3F7;
    --surface-card: #FFFFFF;
    --surface-subtle: #FBFCFE;  /* card header */
    --surface-hover: #F5F8FD;   /* chip hover */
    --notice-bg: #FDF4E3;
    --notice-border: #E9CF9E;
    --notice-divider: #EFDFBF;
    --notice-track: #F0E2C4;
    --notice-text: #8B7A52;
    --danger: #C0392B;
    --success-bg: #E6F4EA;
    --success-text: #1E7A45;
    --hero-body: #D3DEF0;
    --hero-label: #C9D6EC;
    --footer-text: #9DB0CE;

    --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --maxw: 1240px;
    --shadow-card: 0 12px 34px rgba(11, 47, 107, .10);
    --shadow-btn: 0 6px 16px rgba(228, 161, 27, .28);
    --ring: 0 0 0 3px rgba(11, 47, 107, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--surface-page);
    color: var(--ink-900);
    font-family: var(--font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-800); text-decoration: underline; }

button { font: inherit; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { background: var(--surface-card); border-bottom: 1px solid var(--line-100); }
.site-header__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 18px 40px;
    display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.site-header__lockup { height: 92px; width: auto; }
.site-header__attribution { display: flex; align-items: center; gap: 14px; }
.site-header__poweredby { font-size: 13px; font-weight: 400; color: var(--ink-400); }
.site-header__brand { height: 26px; width: auto; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(105deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-600) 100%);
    padding: 52px 40px 120px;   /* deep bottom padding so the cards overlap it */
    color: #fff;
}
/* Text on the left; the stat cluster sits at the top-right, beside the title. */
.hero__inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 48px;
}
.hero__text { min-width: 0; }
.hero__eyebrow {
    font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold-300); margin: 0 0 14px;
}
.hero__title { font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
.hero__rule { width: 88px; height: 5px; border-radius: 3px; background: var(--gold-500); margin: 20px 0 22px; }
.hero__lede { max-width: 540px; font-size: 17.5px; line-height: 1.55; color: var(--hero-body); margin: 0; text-wrap: pretty; }
/* No gap between stats: the divider (border-left) is edge-anchored, so a gap would offset it toward
   the right stat. With symmetric padding and no gap, the divider sits centered between the two. */
.hero__stats { display: flex; flex: none; padding-top: 30px; }
.hero__stat {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .22);
}
/* Keep symmetric padding on the first cell (only drop its divider) so the value + label stay centered
   together — zeroing the left padding here is what skewed the first stat. */
.hero__stat:first-child { border-left: none; }
.hero__statvalue { font-size: 34px; font-weight: 700; line-height: 1; color: var(--gold-400); }
.hero__statlabel { font-size: 13.5px; color: var(--gold-300); margin-top: 8px; line-height: 1.35; }

/* ---------- Main grid (cards overlap the hero) ---------- */
main { display: block; }
.ai-grid {
    max-width: var(--maxw); margin: -84px auto 72px; padding: 0 40px;
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start;
}
.ai-grid--single { grid-template-columns: minmax(0, 1fr); }
.ai-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- Card shell ---------- */
.ai-card {
    background: var(--surface-card); border: 1px solid var(--line-100); border-radius: 12px;
    box-shadow: var(--shadow-card); overflow: hidden;
}
.ai-card__head {
    padding: 20px 28px; background: var(--surface-subtle); border-bottom: 1px solid var(--line-050);
    display: flex; align-items: center; gap: 14px;
}
.ai-badge {
    flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800);
    color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.ai-card__title { font-size: 18px; font-weight: 600; color: var(--navy-800); line-height: 1.2; }
.ai-card__subtitle { font-size: 13px; color: var(--ink-400); margin-top: 3px; }
.ai-card__body { padding: 24px 28px 28px; }

.ai-section-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-300); margin-bottom: 16px;
}
.ai-divider { height: 1px; background: var(--line-050); margin: 26px 0 22px; }
.ai-footnote { font-size: 12px; color: var(--ink-300); margin: 14px 0 0; }

/* ---------- Fields ---------- */
.ai-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ai-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-field--full { grid-column: span 2; }
.ai-field__label { font-size: 11.5px; font-weight: 500; color: var(--ink-600); }
.ai-req { color: var(--danger); }

.ai-field input,
.ai-field select,
.ai-combo__input,
.intake-height select {
    height: 40px; padding: 0 12px; font-size: 14px; font-family: inherit; color: var(--ink-900);
    background: var(--surface-card); border: 1px solid var(--line-200); border-radius: 6px;
    width: 100%; min-width: 0; box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.ai-field input::placeholder,
.ai-combo__input::placeholder { color: var(--ink-300); }
.ai-field input:focus,
.ai-field select:focus,
.ai-combo__input:focus,
.intake-height select:focus {
    outline: none; border-color: var(--navy-800); box-shadow: var(--ring);
}

/* Searchable lookup (combobox): input looks like the other fields; results float below. */
.ai-combo { position: relative; }
.ai-combo__input { padding-right: 34px; }
.ai-combo__btn {
    position: absolute; top: 0; right: 0; height: 40px; width: 34px; padding: 0;
    background: none; border: none; color: var(--ink-400); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}
.ai-combo__btn:hover { color: var(--navy-800); }
/* Fixed-positioned (coords set inline from the input's rect) so the card's overflow:hidden can't clip
   it and a later section can't paint over it; flips upward via inline top/bottom when room is tight. */
.ai-combo__list {
    position: fixed; z-index: 1000; margin: 0; padding: 4px;
    list-style: none; overflow-y: auto;
    background: var(--surface-card); border: 1px solid var(--line-200); border-radius: 6px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}
.ai-combo__opt { padding: 8px 10px; font-size: 14px; color: var(--ink-900); border-radius: 4px; cursor: pointer; }
.ai-combo__opt.is-active { background: var(--navy-050, #EEF2F8); }
.ai-combo__opt.is-selected { font-weight: 600; }
.ai-combo__empty, .ai-combo__more { padding: 8px 10px; font-size: 12.5px; color: var(--ink-300); }

/* Selects: remove native chevron, draw the design's SVG chevron. */
.ai-field select,
.intake-height select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236B7688' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}

.intake-hint { font-size: 12px; color: var(--ink-300); }
.intake-error { display: block; color: var(--danger); font-size: 12px; }

/* Masked SSN field: input with an eye reveal button overlaid on the right. */
.intake-masked { position: relative; }
.intake-masked input { padding-right: 42px; }
.intake-reveal {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; padding: 4px; margin: 0; color: var(--ink-400);
    display: inline-flex; align-items: center;
}
.intake-reveal:hover { color: var(--navy-800); }

/* Height: feet + inches selects side by side. */
.intake-height { display: flex; gap: 10px; }
.intake-height select { width: 110px; }

/* ---------- Step 2 gate ---------- */
.ai-chip {
    margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 11px; border-radius: 20px; white-space: nowrap;
}
.ai-chip--locked { background: #F1F3F7; color: var(--ink-300); }
.ai-chip--ready { background: var(--success-bg); color: var(--success-text); }

.ai-step2 { transition: opacity .25s; }
.ai-step2.is-locked { opacity: .45; pointer-events: none; }

.ai-note-empty { color: var(--ink-400); font-size: 14px; margin: 0; }
.ai-group-label { font-size: 11.5px; font-weight: 500; color: var(--ink-600); margin-bottom: 10px; }

/* ---------- Scheduler calendar (in-house month grid) ---------- */
.cal { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 28px; align-items: start; margin-top: 22px; }
.cal__month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__monthlabel { font-weight: 600; color: var(--navy-800); font-size: 15px; }
.cal__nav {
    width: 34px; height: 34px; border-radius: 8px; padding: 0; font-size: 18px; line-height: 1;
    background: var(--surface-card); border: 1px solid var(--line-200); color: var(--navy-800);
}
.cal__nav:hover:not(:disabled) { border-color: var(--navy-800); background: var(--surface-hover); }
.cal__nav:disabled { opacity: .4; cursor: not-allowed; }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__weekday {
    text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--ink-300); padding: 4px 0;
}
.cal__cell {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid transparent; border-radius: 8px; padding: 0;
    color: var(--line-200); font-weight: 500; font-size: 13.5px;
    transition: border-color .12s, background .12s, color .12s;
}
.cal__cell.is-empty { border: none; }
.cal__cell.is-open { color: var(--ink-900); border-color: var(--line-200); background: var(--surface-card); }
.cal__cell.is-open:hover { border-color: var(--navy-800); background: var(--surface-hover); }
.cal__cell.is-selected,
.cal__cell.is-selected:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); font-weight: 600; }
.cal__cell:disabled { cursor: default; }

.cal__times { min-height: 130px; }
.cal__prompt { color: var(--ink-400); font-size: 14px; margin: 0; }
.cal__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cal__slot {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 11px 0; border: 1px solid var(--line-200); border-radius: 8px;
    background: var(--surface-card); color: var(--ink-900); font-size: 13.5px;
    transition: border-color .12s, background .12s, color .12s, box-shadow .12s;
}
.cal__slot:hover:not(:disabled) { border-color: var(--navy-800); background: var(--surface-hover); }
.cal__slot.is-selected,
.cal__slot.is-selected:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); font-weight: 500; }
.cal__slot.is-full {
    color: var(--ink-300); border-color: var(--line-100); background: var(--surface-page);
    text-decoration: line-through; opacity: .7; cursor: not-allowed;
}
.cal__badge {
    font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-600);
}
.cal__slot.is-selected .cal__badge { color: var(--gold-300); }

/* Scheduling-level alert (e.g. "that slot just filled") — right where the applicant acted. */
.intake-schedule-alert {
    margin: 22px 0 0; padding: 12px 16px; border-radius: 8px; font-weight: 500; font-size: 13.5px;
    background: #FDECEA; border: 1px solid var(--danger); border-left-width: 4px; color: var(--danger);
}

/* ---------- Confirm row ---------- */
.ai-confirm-row {
    margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-050);
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ai-btn-primary {
    padding: 14px 26px; border: none; border-radius: 8px; background: var(--gold-500); color: var(--navy-800);
    font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    box-shadow: var(--shadow-btn); transition: background .15s;
}
.ai-btn-primary:hover:not(:disabled) { background: var(--gold-600); }
.ai-btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.ai-confirm-help { font-size: 12.5px; color: var(--ink-300); }
.ai-confirm-help strong { color: var(--navy-800); }

/* ---------- Right rail (sticky) ---------- */
.ai-rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }

.ai-rail-note {
    background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: 12px; padding: 20px 22px;
}
.ai-rail-note__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-rail-note__badge {
    flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-500);
    color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ai-rail-note__title { font-size: 14px; font-weight: 600; color: var(--navy-800); }
.ai-rail-note__body { font-size: 13px; line-height: 1.5; color: var(--ink-600); margin: 0 0 14px; }
.ai-progress { height: 6px; border-radius: 4px; background: var(--notice-track); overflow: hidden; }
.ai-progress__fill { height: 100%; border-radius: 4px; background: var(--gold-500); transition: width .3s; }
.ai-progress__caption { font-size: 12px; color: var(--notice-text); margin: 8px 0 0; }
.ai-still-needed { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--notice-divider); }
.ai-still-needed__eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--notice-text); margin-bottom: 8px;
}
.ai-still-needed__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.ai-still-needed__list li {
    font-size: 12.5px; color: var(--ink-600); display: flex; align-items: baseline; gap: 7px;
}
.ai-still-needed__list li::before { content: "•"; color: var(--danger); }

.ai-rail-card {
    background: var(--surface-card); border: 1px solid var(--line-100); border-radius: 12px; padding: 20px 22px;
}
.ai-rail-card__title { font-size: 14px; font-weight: 600; color: var(--navy-800); margin-bottom: 10px; }
.ai-rail-card__body { font-size: 13px; line-height: 1.55; color: var(--ink-600); margin: 0; }
.ai-rail-card__body strong { color: var(--navy-800); }
.ai-rail-card__divider { height: 1px; background: var(--line-050); margin: 14px 0; }
.ai-rail-card__note { font-size: 12.5px; line-height: 1.55; color: var(--ink-300); margin: 0; }
.ai-rail-card__btn {
    display: inline-block; margin-top: 12px; padding: 9px 18px; border-radius: 8px;
    border: 1px solid var(--navy-800); background: transparent; color: var(--navy-800);
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    text-decoration: none; transition: background .15s, color .15s;
}
.ai-rail-card__btn:hover { background: var(--navy-800); color: #fff; }

/* Compact sticky gate — mobile only (shown/styled in the max-width:900px block; the right-rail note
   handles desktop). Hidden by default so it never appears on wide layouts. */
.ai-mobilegate { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); padding: 26px 40px; }
.site-footer__inner {
    max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px;
    justify-content: space-between; align-items: center;
}
.site-footer__inner span { font-size: 12.5px; color: var(--footer-text); }
.site-footer__link { font-size: 12.5px; color: var(--footer-text); text-decoration: none; font-weight: 500; }
.site-footer__link:hover { text-decoration: underline; }

/* ─────────────────── Onsite Intake Follow-up (post-booking page) ─────────────────── */
/* Once booked (or on the manage page), the intake hero is hidden — those pages own the canvas. */
body.has-followup .hero,
body.has-manage .hero { display: none; }
/* The manage card sits on the page background with a little breathing room (no hero to overlap). */
body.has-manage .ai-grid { margin-top: 40px; }

/* Manage page (verify / cancel / reschedule) */
.mg-lead { font-size: 14.5px; line-height: 1.6; color: var(--ink-600); margin: 0 0 16px; }
.mg-divider { height: 1px; background: var(--line-050); margin: 22px 0; }
.mg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.mg-help { font-size: 12.5px; color: var(--ink-300); }
.mg-btn-danger {
    padding: 12px 22px; border: none; border-radius: 8px; background: var(--danger); color: #fff;
    font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: background .15s;
}
.mg-btn-danger:hover:not(:disabled) { background: #9f2f22; }
.mg-btn-danger:disabled { opacity: .5; cursor: not-allowed; }

/* Resubmission banner above the pre-filled intake form */
.ai-resubmit-banner {
    background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: 8px;
    padding: 14px 18px; font-size: 13.5px; line-height: 1.5; color: var(--notice-text);
}

/* Red caution on the resubmit DOB gate — resubmission is only for a rejected transaction. */
.ai-resubmit-warning {
    background: #fdecea; border: 1px solid var(--danger); border-left-width: 4px; border-radius: 8px;
    padding: 14px 18px; margin-bottom: 18px; font-size: 13.5px; line-height: 1.55; color: var(--danger);
}
.ai-resubmit-warning strong { color: var(--danger); }

.fu-hero {
    background: linear-gradient(140deg, #103069 0%, #16407F 55%, #0E2A5C 100%);
    padding: 44px 0 118px;   /* deep bottom padding — the summary card overlaps it */
}
.fu-hero__inner { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.fu-hero__eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--gold-500); margin: 0 0 12px;
}
.fu-hero__title { margin: 0; font-size: 46px; font-weight: 700; line-height: 1.05; letter-spacing: -1px; color: #fff; }
.fu-hero__rule { width: 74px; height: 5px; background: var(--gold-500); margin: 18px 0 20px; }
.fu-hero__subhead { max-width: 470px; margin: 0; font-size: 15.5px; line-height: 1.62; color: #C8D5EA; }

.fu-main {
    max-width: 900px; margin: -84px auto 56px; padding: 0 32px;
    display: flex; flex-direction: column; gap: 20px;
}

/* Booking summary card (overlaps hero) */
.fu-summary {
    background: #fff; border-radius: 4px; box-shadow: 0 6px 24px rgba(16, 42, 92, .10); padding: 34px 40px;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center;
}
.fu-summary__titlerow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fu-check-badge {
    width: 34px; height: 34px; flex: none; border-radius: 50%; background: #E3F1E5;
    display: flex; align-items: center; justify-content: center;
}
.fu-summary__titlerow h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.3px; color: var(--navy-800); }
.fu-summary__body { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: #566276; }
.fu-summary__body strong { color: var(--navy-800); }
.fu-detailrow { display: flex; gap: 26px; padding-top: 16px; border-top: 1px solid #E6EAF1; }
.fu-detail__label { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: #8B95A6; margin-bottom: 5px; }
.fu-detail__strong { font-size: 14.5px; font-weight: 700; color: var(--navy-800); }
.fu-detail__sub { font-size: 13.5px; color: #566276; }

.fu-codepanel {
    background: #F7F9FC; border: 1px solid #E6EAF1; border-radius: 4px; padding: 22px 20px; text-align: center;
}
.fu-codepanel__label { font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #8B95A6; margin-bottom: 10px; }
.fu-codepanel__code {
    background: #FDF3DC; border: 1px dashed #E3A94A; border-radius: 4px; padding: 16px 10px;
    font-family: "Roboto Mono", Consolas, Menlo, monospace; font-size: 24px; font-weight: 600;
    letter-spacing: 3px; color: #2D3B4E;
}
.fu-codepanel__caption { font-size: 12.5px; color: #7A8699; margin-top: 10px; }

/* Content cards */
.fu-card { background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(16, 42, 92, .06); padding: 32px 40px 34px; }
.fu-card__title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.2px; color: var(--navy-800); }
.fu-card__title--sm { font-size: 16px; margin-bottom: 16px; }
.fu-card__sub { font-size: 14px; color: #7A8699; margin: 2px 0 26px; }

.fu-steps { display: flex; flex-direction: column; gap: 22px; }
.fu-step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.fu-step__num {
    width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: #fff;
    font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.fu-step__title { font-size: 15px; font-weight: 700; color: var(--navy-800); margin-bottom: 4px; }
.fu-step__body { font-size: 14px; line-height: 1.6; color: #566276; }
.fu-status-note { font-size: 13.5px; line-height: 1.6; color: #7A8699; margin: 22px 0 0; }

.fu-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fu-info-grid .fu-card { padding: 26px 30px 28px; }
.fu-card--bring { border-top: 4px solid var(--gold-500); }
.fu-card--before { border-top: 4px solid var(--navy-800); }
.fu-list { display: flex; flex-direction: column; gap: 12px; }
.fu-list__item { display: grid; grid-template-columns: 16px 1fr; gap: 11px; align-items: start; font-size: 14px; line-height: 1.55; color: #566276; }
.fu-list__item strong { color: var(--navy-800); }
.fu-list__check { margin-top: 3px; }
.fu-list__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); margin: 9px 0 0 5px; }

.fu-support { font-size: 12.5px; line-height: 1.6; color: #8B95A6; text-align: center; margin: 4px 0 0; }
.fu-support a { color: #1A5FB4; }

@media (max-width: 880px) {
    .fu-hero { padding: 40px 0 72px; }
    .fu-hero__title { font-size: 34px; }
    .fu-main { margin-top: -48px; }
    .fu-summary { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
    .fu-info-grid { grid-template-columns: 1fr; }
    .fu-card { padding: 26px 28px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    /* Rail drops under the form; the gate note moves directly above Step 2. */
    .ai-grid { grid-template-columns: minmax(0, 1fr); }
    .ai-rail { position: static; flex-direction: row; flex-wrap: wrap; }
    .ai-rail > * { flex: 1 1 260px; }
}
@media (max-width: 900px) {
    /* Before the two hero columns cram, stack them: stats drop below the text, left-aligned. */
    .hero__inner { flex-direction: column; gap: 28px; }
    .hero__stats { padding-top: 0; }

    /* The right-rail gate note drops to the bottom on narrow layouts (easy to miss). Replace it with
       a compact bar pinned to the top of the form; tap to expand the "still needed" checklist. */
    .ai-rail-note { display: none; }
    .ai-mobilegate {
        display: block; position: sticky; top: 0; z-index: 20; margin-bottom: 6px;
        background: #fff; border: 1px solid var(--notice-border); border-radius: 12px;
        box-shadow: 0 6px 18px rgba(11, 31, 74, .10); overflow: hidden;
    }
    .ai-mobilegate.is-ready { border-color: #BFE3CD; }
    .ai-mobilegate__bar {
        width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
        background: var(--notice-bg); border: 0; cursor: pointer; font: inherit; text-align: left;
    }
    .ai-mobilegate__label { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--navy-800); }
    .ai-mobilegate__count { font-size: 13px; font-weight: 700; color: var(--notice-text); }
    .ai-mobilegate__chev { color: var(--ink-300); transition: transform .2s; }
    .ai-mobilegate__chev.is-open { transform: rotate(180deg); }
    .ai-mobilegate__track { height: 5px; background: var(--notice-track); }
    .ai-mobilegate__fill { height: 100%; background: var(--gold-500); transition: width .3s; }
    .ai-mobilegate__panel { padding: 12px 14px; }
    .ai-mobilegate__eyebrow {
        font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
        color: var(--notice-text); margin-bottom: 8px;
    }
    .ai-mobilegate__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
    .ai-mobilegate__list li { font-size: 12.5px; color: var(--ink-600); display: flex; gap: 6px; }
    .ai-mobilegate__list li::before { content: "\2022"; color: var(--danger); }
    .ai-mobilegate__done { margin: 0; font-size: 12.5px; color: #2E7D4F; }
}
@media (max-width: 680px) {
    .site-header__inner { padding: 14px 20px; gap: 18px; }
    .site-header__lockup { height: 64px; }
    /* Condense the hero so the form is reachable sooner: smaller title/spacing, and the stats become a
       compact single row (they stacked tall before, eating most of the first screen). */
    .hero { padding: 28px 20px 80px; }
    .hero__eyebrow { margin-bottom: 9px; }
    .hero__title { font-size: 29px; }
    .hero__rule { margin: 13px 0 15px; }
    .hero__lede { font-size: 15.5px; }
    .hero__stats { padding-top: 16px; }
    .hero__stat { padding: 0 14px; }
    .hero__statvalue { font-size: 21px; }
    .hero__statlabel { font-size: 10.5px; margin-top: 5px; }
    .ai-grid { padding: 0 16px; margin-top: -76px; }
    .ai-card__body { padding: 20px; }
    .ai-fields { grid-template-columns: 1fr; }
    .ai-field--full { grid-column: span 1; }
    .cal { grid-template-columns: 1fr; gap: 20px; }
    .cal__panel { max-width: 340px; }
    .cal__slots { grid-template-columns: repeat(2, 1fr); }
    .ai-rail { flex-direction: column; }
    .site-footer { padding: 22px 20px; }
}
