/*
 * SellMax /quote/new — styles, rebuilt to match "SellMax Full Journey.dc.html".
 * Mobile-first phone card on #E9F2F6; sky band + white content card; car-drives-to-cash progress;
 * Bricolage headings, Onest body; green pill CTAs. Red is errors only; damage map selects green.
 */
:root {
    --brand: #55B85B; --cta: #2E9A48; --ink-link: #1E7F45; --link-hover: #145C31;
    --sky: #6CCBF2; --ink: #23272A; --muted: #5B6468; --line: #DCE3E7;
    --sel: #EAF7EC; --error: #C0271B; --page: #E9F2F6;
    --head: 'Bricolage Grotesque', system-ui, sans-serif;
    --hero: 'Baloo 2', var(--head);
    --body: 'Onest', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .sm-amt, .sm-q-title, .sm-sec-title, .sm-big { font-family: var(--head); }
a { color: var(--ink-link); }
img { max-width: 100%; display: block; }
.sm-skip { position: absolute; left: -9999px; }
.sm-skip:focus { left: 12px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 60; }

/* ---- shell: centered phone card ---- */
.sm-page { min-height: 100vh; display: block; padding: 0; }
/* F0: no outer boxed frame — the header and sky band run full width; only the white panel is centred. */
.sm-card { width: 100%; max-width: none; background: transparent; border-radius: 0; overflow: visible; box-shadow: none; }

.sm-head { height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #E6ECEF; background: #fff; }
.sm-head__logo { height: 34px; width: auto; }
.sm-head__logotext { font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--cta); }
.sm-head__right { display: flex; align-items: center; gap: 12px; }
.sm-head__ask { display: none; color: var(--muted); font-weight: 600; margin-right: 2px; }
.sm-phonepill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--cta); color: #fff; text-decoration: none; }
.sm-phonepill__ic { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff; color: var(--ink-link); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.sm-phonepill__num { font-family: var(--head); font-size: 16px; font-weight: 800; }

/* ---- sky band + content panel (steps) ---- */
.sm-sky { background: var(--sky); padding: 14px 10px 0; }
.sm-panel { background: #fff; border-radius: 24px 24px 0 0; padding: 22px 18px 26px; min-height: 520px; display: flex; flex-direction: column; gap: 20px; }

/* ---- step top row: Back (left) + progress car on one anchored row (F0) ---- */
.sm-steptop { display: flex; align-items: center; gap: 16px; }
.sm-steptop .sm-prog { flex: 1; margin: 10px 26px; }

/* ---- progress: car drives to cash ---- */
.sm-prog { position: relative; height: 6px; border-radius: 3px; background: #E6EBEE; margin: 10px 26px 10px 0; }
.sm-prog__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 6%); border-radius: 3px; background: repeating-linear-gradient(135deg, #1E7F45 0 5px, #2E9A55 5px 10px); transition: width .4s ease; }
.sm-prog__car { position: absolute; left: calc(var(--p, 6%) - 24px); top: -7px; width: 40px; height: 20px; border-radius: 7px; background: var(--brand); box-shadow: inset 0 0 0 2px #2E8B45; transition: left .4s ease; }
.sm-prog__car i { position: absolute; top: 3px; border-radius: 3px; background: #1D2326; }
.sm-prog__car i:nth-child(1) { left: 23px; width: 7px; height: 14px; }
.sm-prog__car i:nth-child(2) { left: 9px; width: 6px; height: 12px; top: 4px; opacity: .75; }
.sm-prog__cash { position: absolute; right: -24px; top: -9px; width: 26px; height: 24px; }
.sm-prog__cash::before { content: ""; position: absolute; inset: 6px 0 0 0; background: #2E9A48; border-radius: 3px; box-shadow: 0 -3px 0 #55B85B, 0 -6px 0 #2E9A48; }
.sm-prog__cash::after { content: "$"; position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; color: #fff; font: 800 11px var(--body); }
.sm-prog__spark { position: absolute; line-height: 1; }
.sm-prog__spark.s1 { left: calc(var(--p,6%) - 34px); top: -11px; font-size: 12px; color: #F2B01E; }
.sm-prog__spark.s2 { left: calc(var(--p,6%) - 42px); top: 5px; font-size: 9px; color: #6CCBF2; }
.sm-prog__spark.s3 { left: calc(var(--p,6%) - 50px); top: -5px; font-size: 7px; color: #F2B01E; }

/* ---- headings / text ---- */
.sm-q-title { font-size: 27px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; margin: 0; }
.sm-q-sub { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 6px 0 0; }
.sm-help-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 600; }
.sm-grow { flex: 1; }

/* ---- option rows (single choice) ---- */
.sm-opts { display: flex; flex-direction: column; gap: 10px; }
.sm-opt { min-height: 56px; border: 1.5px solid #B9C4CA; background: #fff; color: var(--ink); border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; text-align: left; width: 100%; }
.sm-opt:hover { border-color: var(--brand); }
.sm-opt.is-sel { background: var(--sel); border-color: var(--cta); }
.sm-opt.is-flash { background: var(--cta); color: #fff; }
.sm-radio { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 1.5px solid #B9C4CA; background: #fff; }
.sm-opt.is-sel .sm-radio { border-color: var(--cta); background: radial-gradient(circle at center, var(--cta) 0 6px, #fff 7px 20px); }

/* ---- fields ---- */
.sm-fields { display: flex; flex-direction: column; gap: 10px; }
.sm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sm-field > label, .sm-field__lab { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.sm-field input, .sm-field select { width: 100%; height: 52px; border: 1.5px solid #B9C4CA; border-radius: 14px; background: #fff; padding: 0 16px; font: inherit; font-family: var(--body); font-size: 16px; color: var(--ink); }
/* F0 focus: 2px green ring + 4px soft-green halo */
.sm-field input:focus, .sm-field select:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 2px var(--cta), 0 0 0 6px #DDF0E1; }
/* F0: step inputs (VIN/ZIP/mileage) are 64px tall with 20px text */
.sm-panel .sm-field input { height: 64px; font-size: 20px; }
.sm-field--suffix { position: relative; }
.sm-field--suffix .sm-suffix { position: absolute; right: 16px; bottom: 22px; color: var(--muted); font-size: 14px; }
.sm-grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.sm-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sm-check input { width: 18px; height: 18px; }

/* ---- buttons ---- */
.sm-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--cta); color: #fff; font-family: var(--head); font-weight: 700; font-size: 18px; cursor: pointer; }
.sm-cta:hover { filter: brightness(1.05); }
.sm-cta:disabled { opacity: .7; cursor: default; }
/* Muted (but still clickable) CTA — e.g. ZIP Continue before a valid entry (F3) */
.sm-cta.is-muted { background: #A9D9B4; }
/* F0: Back is plain text at top-left (never a pill, never in the button row). Space is kept on step 1. */
.sm-back { flex: none; height: 44px; padding: 0 4px; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap; }
.sm-back:hover { color: var(--ink-link); }
/* On the first step there's nothing to go back to, so collapse Back and let the progress bar
   fill the row rather than leaving an empty gap. */
.sm-back.is-hidden { display: none; }
.sm-outline { min-height: 52px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; width: 100%; padding: 0 20px; }
/* F0: Continue is the only button in the card and is always full width. */
.sm-nav { display: flex; align-items: center; gap: 12px; }
.sm-nav .sm-cta { width: 100%; flex: 1; }
.sm-nav--endonly { justify-content: stretch; }
.sm-panel .sm-cta { min-height: 58px; }   /* step Continue: 58px mobile */

/* F0: bottom bar groups Continue + phone line; pinned on mobile. */
.sm-stepfoot { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 767px) {
    .sm-stepfoot { position: sticky; bottom: 0; background: #fff; margin: 0 -18px -26px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 22px -16px rgba(10,60,90,.28); }
}

/* ---- talk footer ---- */
.sm-talk { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--muted); border-top: 1px solid #EEF2F4; padding-top: 14px; text-align: center; }
.sm-talk a { color: var(--ink-link); font-weight: 800; font-size: 17px; text-decoration: underline; text-underline-offset: 3px; }
.sm-talk .sm-local { flex-basis: 100%; font-size: 13px; color: var(--muted); }

/* ---- hero ---- */
.sm-hero { background: var(--sky); padding: 26px 20px 0; color: #fff; }
.sm-hero__h1 { font-family: var(--hero); font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; margin: 0; text-shadow: 0 2px 0 rgba(0,60,90,.18); }
.sm-hero__bar { width: 150px; height: 9px; background: var(--brand); border-radius: 5px; margin: 14px 0; }
.sm-hero__h2 { font-size: 20px; font-weight: 500; line-height: 1.3; margin: 0 0 16px; }
.sm-hero__mag { width: 150px; margin: 8px auto -2px; }
.sm-heroform { background: #fff; color: var(--ink); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 50px -28px rgba(10,60,90,.55); }
.sm-heroform__title { font-family: var(--head); font-size: 22px; font-weight: 800; text-align: center; line-height: 1.1; }
.sm-heroform__sub { font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; margin-top: -6px; }
.sm-heroform__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.sm-heroform__meta u { color: var(--ink-link); font-weight: 700; }
/* VIN "Use it instead" is an actionable link — show it's clickable on hover (desktop) */
[data-action="use-vin"] { cursor: pointer; text-underline-offset: 2px; }
[data-action="use-vin"]:hover { color: var(--link-hover); text-decoration: underline; }
.sm-phoneblock { display: flex; align-items: center; justify-content: center; gap: 10px; border-top: 1px solid #EEF2F4; padding-top: 12px; font-size: 14px; color: var(--muted); }
.sm-phoneblock__ic { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--cta); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sm-phoneblock b { font-family: var(--head); font-size: 19px; color: var(--ink-link); }
.sm-hero__featured { background: #F3F5F6; padding: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.sm-hero__featured b { font-weight: 800; font-size: 18px; color: #3C4449; }

/* ---- combobox ---- */
.sm-combo { position: relative; }
/* F5: dropdown attaches BELOW the field (6px gap), never above. */
.sm-combo__list { list-style: none; margin: 0; padding: 4px; position: absolute; z-index: 30; top: calc(100% + 6px); bottom: auto; left: 0; right: 0; background: #fff; border: 1px solid #D5DEE3; border-radius: 14px; max-height: 320px; overflow: auto; box-shadow: 0 16px 32px -10px rgba(10,60,90,.22); }
.sm-combo__opt { min-height: 48px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; font-size: 17px; cursor: pointer; }
.sm-combo__opt.is-active, .sm-combo__opt:hover { background: #E8F5EA; }
.sm-combo__opt b { font-weight: 800; }
/* F5 active-field focus ring: 1.5px green border + 3px soft-green halo */
.sm-combo input:focus { border-color: #2E9A48; box-shadow: 0 0 0 3px #CDEBD2; }

/* ---- accept offer header ---- */
.sm-offerhead { background: var(--sky); padding: 18px 18px 0; display: grid; grid-template-columns: minmax(0,1fr) 120px; align-items: end; gap: 6px; }
.sm-offerhead__col { display: flex; flex-direction: column; gap: 6px; color: #0F3A52; padding-bottom: 18px; }
.sm-offerhead__back { font-size: 13px; font-weight: 700; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: #0F3A52; }
.sm-offerhead__tada { font-size: 14px; font-weight: 700; }
.sm-offerhead__accept { font-family: var(--head); font-size: 30px; font-weight: 800; line-height: 1.02; color: var(--ink); }
.sm-offerhead__accept .sm-amt { background: #fff; border-radius: 10px; padding: 0 8px; color: var(--ink-link); }
.sm-offerhead__mag { width: 120px; margin-bottom: -4px; }
.sm-offerhead__speed { font-weight: 700; color: var(--ink-link); margin-top: 8px; }

.sm-acc { padding: 16px 18px 26px; display: flex; flex-direction: column; gap: 16px; }
.sm-acc__lead { padding: 0 0 0; font-size: 15px; color: var(--muted); line-height: 1.4; }
.sm-stepper { display: grid; gap: 6px; font-size: 12px; font-weight: 700; text-align: center; }
.sm-stepper--3 { grid-template-columns: repeat(3, 1fr); }
.sm-stepper--4 { grid-template-columns: repeat(4, 1fr); }
.sm-stepper__s { border-top: 4px solid #E1E7EA; padding-top: 6px; color: #7B858B; }
.sm-stepper__s.is-active { border-top-color: var(--brand); color: var(--ink); }
.sm-sec-title { font-size: 19px; font-weight: 700; margin: 0; }
.sm-dash { border: 1.5px dashed #C9D3D8; border-radius: 14px; padding: 14px 16px; font-size: 15px; font-weight: 600; color: #7B858B; }
.sm-summary { border: 1.5px solid #BFE3C5; background: #F3FBF4; border-radius: 14px; padding: 12px 14px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sm-summary u { font-weight: 700; color: var(--ink-link); cursor: pointer; }
.sm-summary .sub { color: var(--muted); }
.sm-disclosure { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sm-disclosure u { cursor: pointer; }
.sm-next { font-size: 13px; color: var(--muted); }
.sm-note { font-size: 13px; color: var(--muted); line-height: 1.4; }
.sm-terms { font-size: 12.5px; color: var(--muted); }

/* pickup card */
.sm-pickup { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sm-pickup__title { font-family: var(--head); font-size: 19px; font-weight: 700; }
.sm-pickup__title span { font-size: 14px; font-weight: 600; color: var(--muted); }
.sm-window { min-height: 56px; border: 1.5px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 15px; cursor: pointer; background: #fff; width: 100%; text-align: left; }
.sm-window.is-soonest { border-color: var(--cta); }
.sm-window.is-sel { background: var(--sel); border-color: var(--cta); }
.sm-window .pick { color: var(--ink-link); font-weight: 700; }
.sm-pickday__label { font-weight: 700; margin: 6px 0; }

/* damage / area map (green select) */
.sm-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-area { min-height: 64px; border: 2px dashed var(--line); border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px; text-align: center; }
.sm-area.is-sel { background: var(--sel); border-style: solid; border-color: var(--cta); color: var(--ink-link); }
.sm-area__tag { display: block; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin: 4px 0; }

/* divider */
.sm-or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sm-or::before, .sm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* errors */
.sm-err { color: #B23222; font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.sm-err--block { padding: 10px 12px; background: #FDECEA; border-radius: 10px; font-size: 14px; }

@keyframes sm-spin { to { transform: rotate(360deg); } }

/* terminals */
.sm-term { padding: 30px 22px 34px; display: flex; flex-direction: column; gap: 18px; }
.sm-term__check { width: 64px; height: 64px; border-radius: 50%; background: var(--cta); color: #fff; font-size: 32px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sm-term__title { font-size: 30px; font-weight: 800; line-height: 1.05; margin: 0; }
.sm-term__body { font-size: 16px; line-height: 1.45; margin: 0; }
.sm-term__box { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.sm-term__box .sub { color: var(--muted); }
.sm-next-panel { background: #F3F7F9; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sm-next-panel h3 { font-size: 19px; font-weight: 700; margin: 0; }
.sm-next-step { display: flex; gap: 12px; font-size: 15px; line-height: 1.4; }
.sm-next-step .n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #fff; color: var(--ink-link); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* modal / bottom sheet */
.sm-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sm-modal[hidden] { display: none; }
.sm-modal__bd { position: absolute; inset: 0; background: rgba(20,40,50,.5); }
.sm-sheet { position: relative; z-index: 1; width: 100%; max-width: 430px; background: #fff; border-radius: 26px 26px 0 0; padding: 12px 22px 26px; display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow: auto; }
.sm-sheet__grab { width: 40px; height: 5px; background: var(--line); border-radius: 3px; align-self: center; }
.sm-sheet__x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 24px; color: var(--muted); cursor: pointer; }
.sm-sheet h3 { font-size: 26px; font-weight: 800; line-height: 1.1; margin: 0; }
.sm-sheet p { margin: 0; font-size: 15px; line-height: 1.5; }
.sm-sheet__actions { display: flex; flex-direction: column; gap: 10px; }
.sm-sheet__ghostlink { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--ink-link); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.sm-offerbox { border: 1.5px solid #BFE3C5; background: #F3FBF4; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.sm-offerbox__lab { font-size: 13px; font-weight: 700; color: var(--muted); }
.sm-offerbox__amt { font-family: var(--head); font-size: 38px; font-weight: 800; color: var(--ink-link); line-height: 1; }
.sm-offerbox__delta { color: var(--cta); font-weight: 700; }
.sm-offerbox__was { font-size: 14px; color: var(--muted); margin-top: 6px; }
.sm-sample { font-family: ui-monospace, Menlo, monospace; background: #F4F7F8; padding: 6px 10px; border-radius: 8px; display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.sm-sample__note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.sm-sheet h4 { margin: 8px 0 2px; font-size: 15px; }
.sm-sheet ul { margin: 4px 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.sm-sheet .grp { font-weight: 700; margin-top: 10px; }

/* toast */
.sm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 120; max-width: 90%; }
.sm-toast[hidden] { display: none; }

/* ---- responsive: mobile defaults for elements that change on desktop ---- */
.sm-nav-links { display: none; }
.sm-hero__phoneprompt { display: none; }
.sm-acc__lead { padding: 16px 18px 0; }

/* ---- desktop base (>=768): the form takes over the screen (F1/F2) ---- */
@media (min-width: 768px) {
    .sm-page { padding: 0 0 48px; }
    /* F0: no frame on desktop either — header + sky run edge to edge; hero/accept content capped below. */
    .sm-card { max-width: none; border-radius: 0; }
    .sm-modal { align-items: center; }
    .sm-sheet { border-radius: 26px; max-width: 460px; }
    .sm-sheet__grab { display: none; }

    .sm-head { height: 80px; padding: 0 clamp(20px, 3vw, 40px); }
    .sm-head__logo { height: 52px; }
    body.sm-in-flow .sm-head__ask { display: inline; }
    .sm-nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; letter-spacing: .03em; }
    .sm-nav-links a { color: var(--ink); text-decoration: none; }
    .sm-nav-links a:hover { color: var(--ink-link); }

    /* STEP (F1): full-width sky band + big fluid centred card that scales with the viewport */
    .sm-sky { background: linear-gradient(var(--sky) 0 clamp(240px, 34vh, 360px), var(--page) 0); padding: clamp(28px, 4vw, 56px) 20px clamp(40px, 6vw, 72px); display: flex; justify-content: center; align-items: flex-start; }
    .sm-panel { width: min(92vw, clamp(640px, 52vw, 920px)); max-width: none; margin: 0; border-radius: 28px; padding: clamp(24px, 3.2vw, 64px); gap: clamp(20px, 2vw, 36px); min-height: 0; box-shadow: 0 30px 60px -34px rgba(10,60,90,.5); }
    .sm-panel .sm-q-title { font-size: clamp(28px, 2.4vw + 8px, 48px); }
    .sm-panel .sm-q-sub { font-size: clamp(16px, 0.6vw + 10px, 20px); }
    .sm-panel .sm-opt { min-height: clamp(60px, 4.4vw, 84px); font-size: clamp(17px, 0.5vw + 12px, 22px); border-radius: 18px; }
    .sm-panel .sm-back { height: 48px; font-size: 17px; }
    .sm-panel .sm-field input { height: 64px; font-size: 20px; }
    .sm-panel .sm-cta { min-height: 64px; font-size: clamp(17px, 0.4vw + 13px, 20px); }   /* step Continue: 64px desktop */
    .sm-stepfoot { gap: clamp(20px, 2vw, 32px); }
    .sm-term { max-width: 620px; margin: 0 auto; }
}

/* ---- large desktop (matches G1 hero 3-col, K3D accept 2-col) ---- */
@media (min-width: 1000px) {
    .sm-page { padding: 0 0 60px; }

    /* hero G1: full-width sky band, content (copy | magician | form) capped and centred */
    .sm-hero { padding: 52px 40px 56px; }
    .sm-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) 250px 440px; gap: 28px; align-items: center; max-width: 1180px; margin: 0 auto; }
    .sm-hero__copy { align-self: center; }
    .sm-hero__h1 { font-size: 56px; }
    .sm-hero__bar { width: 180px; height: 10px; margin: 18px 0; }
    .sm-hero__h2 { font-size: 24px; margin-bottom: 0; }
    .sm-hero__magcol { align-self: end; }
    .sm-hero__mag { width: 250px; margin: 0 0 -56px; }
    .sm-hero__phoneprompt { display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 12px 24px 12px 12px; box-shadow: 0 14px 30px -18px rgba(10,60,90,.6); align-self: flex-start; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
    .sm-hero__phoneprompt-ic { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--cta); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 800; }
    .sm-hero__phoneprompt b { display: block; font-family: var(--head); font-size: 30px; font-weight: 800; color: var(--ink); }
    .sm-heroform .sm-phoneblock { display: none; }
    .sm-hero__featured { gap: 40px; font-size: 14px; max-width: 1180px; margin-left: auto; margin-right: auto; }
    .sm-hero__featured b { font-size: 22px; }

    /* accept K3D: sticky offer rail + form card, capped and centred */
    .sm-offerscreen { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 32px; align-items: start; background: linear-gradient(var(--sky) 0 220px, #F6F9FA 220px); padding: 32px 40px 56px; max-width: 1180px; margin: 0 auto; }
    .sm-offerhead { position: sticky; top: 24px; display: block; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 20px 44px -28px rgba(10,60,90,.5); }
    .sm-offerhead__col { padding-bottom: 0; }
    .sm-offerhead__mag { width: 150px; margin: 12px auto 0; }
    .sm-offercol { min-width: 0; background: #fff; border-radius: 28px; padding: 28px 32px; box-shadow: 0 20px 44px -28px rgba(10,60,90,.5); }
    .sm-acc { padding: 0; }
    .sm-acc__lead { padding: 0 0 8px; }
}

/* pickup collapse toggle + scheduling-off pickup line */
.sm-pickup__toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sm-speedoff { font-weight: 700; color: var(--ink-link); margin-bottom: 2px; }

/* ---- inline car-map question (Q17/18, Q19/20, Q21/22) ---- */
.sm-map { margin-top: 4px; }
.sm-areas-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.sm-area { min-height: 110px; }
.sm-only-desktop { display: none; }
/* hide nav during the form (logo + phone pill only) */
body.sm-in-flow .sm-nav-links { display: none; }

@media (min-width: 1000px) {
    .sm-qmap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
    .sm-only-mobile { display: none; }
    .sm-only-desktop { display: block; }
    .sm-map .sm-areas { grid-template-columns: 1fr 1fr; }
}

/* ---- ZIP confirm (F3) ---- */
/* F3: valid (green) / invalid (red) field states with a round badge inside the field */
.sm-field.is-valid, .sm-field.is-invalid { position: relative; }
.sm-field.is-valid input { border: 2px solid #2E9A48; background: #E8F5EA; }
.sm-field.is-invalid input { border: 2px solid #D2412F; background: #FDF1EF; }
.sm-field.is-valid::after, .sm-field.is-invalid::after { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; line-height: 1; pointer-events: none; }
.sm-field.is-valid::after { content: '\2713'; background: #2E9A48; }
.sm-field.is-invalid::after { content: '!'; background: #D2412F; }
/* Fields with a right-aligned suffix (e.g. "Miles") show red/green via border + message only, no badge. */
.sm-field--suffix.is-valid::after, .sm-field--suffix.is-invalid::after { display: none; }
.sm-zipok { color: #1E7F45; font-weight: 700; font-size: 15px; margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.sm-ok-spark { color: #F2B01E; }

/* ---- brief loader (between ZIP and questions) ---- */
.sm-loading { display: flex; justify-content: center; padding: 48px 0; }
.sm-spinner2 { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #CDEBD2; border-top-color: var(--cta); animation: sm-spin 0.9s linear infinite; }

/* ---- calculating screen (F8) ---- */
/* ---- F8 calculating screen (mobile: blue full-screen; desktop: 2-col white card) ---- */
.sm-sky--calc { min-height: 72vh; padding-bottom: 28px; }
.sm-calc { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 6px 20px; }
.sm-calc__left { display: flex; align-items: center; justify-content: center; }
.sm-calc__magwrap { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.sm-calc__mag { width: 190px; animation: sm-float 2.4s ease-in-out infinite; }
.sm-calc__shadow { position: absolute; bottom: 8px; width: 120px; height: 14px; border-radius: 50%; background: rgba(10,60,90,.25); animation: sm-shadow 2.4s ease-in-out infinite; }
.sm-calc__spark { position: absolute; color: #FFE07A; font-size: 16px; animation: sm-twinkle 1.8s ease-in-out infinite; }
.sm-calc__spark.s1 { top: 20px; left: 30px; } .sm-calc__spark.s2 { top: 54px; right: 26px; animation-delay: .4s; color: #F2B01E; }
.sm-calc__spark.s3 { bottom: 60px; left: 24px; animation-delay: .8s; color: #F2B01E; } .sm-calc__spark.s4 { bottom: 44px; right: 34px; animation-delay: 1.2s; font-size: 12px; }
.sm-calc__bill { position: absolute; color: #2E9A48; font-weight: 800; font-size: 16px; bottom: 40px; opacity: 0; animation: sm-bill 2.6s ease-in infinite; }
.sm-calc__bill.b1 { left: 60px; } .sm-calc__bill.b2 { right: 64px; animation-delay: .8s; } .sm-calc__bill.b3 { left: 110px; animation-delay: 1.6s; }
.sm-calc__right { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.sm-calc__head { font-family: var(--head); font-size: 26px; font-weight: 800; margin: 6px 0 16px; max-width: 320px; }
.sm-calc__prog { align-self: stretch; margin: 4px 26px 20px; }
.sm-calc__prog .sm-prog__fill, .sm-calc__prog .sm-prog__car { transition-duration: 2s; }
.sm-calc__card { align-self: stretch; background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; text-align: left; box-shadow: 0 20px 40px -28px rgba(10,60,90,.4); }
.sm-calc__row { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.sm-calc__row.pending { color: #9AA3A8; }
.sm-calc__tick { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; background: #E6EBEE; color: #fff; }
.sm-calc__row.done .sm-calc__tick { background: #2E9A48; }
.sm-calc__row.current .sm-calc__tick { background: #F2B01E; color: #fff; }
.sm-calc__foot { color: var(--ink); opacity: .7; font-size: 14px; margin-top: 16px; }
@media (min-width: 768px) {
    .sm-calc { display: grid; grid-template-columns: 340px 1fr; align-items: stretch; width: min(94vw, 880px); min-height: 500px; background: #fff; border-radius: 32px; box-shadow: 0 30px 60px -34px rgba(10,60,90,.5); overflow: hidden; padding: 0; text-align: left; }
    .sm-calc__left { background: linear-gradient(160deg, #E3F5FC, #CDEEFB); }
    .sm-calc__right { padding: 48px 48px 40px; align-items: stretch; }
    .sm-calc__head { font-size: 38px; margin: 0 0 24px; max-width: none; }
    .sm-calc__prog { margin: 6px 26px 28px 0; }
    .sm-calc__card { background: transparent; box-shadow: none; border-radius: 0; padding: 0; gap: 18px; }
    .sm-calc__row { font-size: 18px; }
    .sm-calc__foot { margin-top: auto; padding-top: 24px; }
}
@keyframes sm-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes sm-shadow { 0%,100% { transform: scaleX(1); opacity: .25; } 50% { transform: scaleX(.7); opacity: .15; } }
@keyframes sm-twinkle { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes sm-bill { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-120px); } }
@media (prefers-reduced-motion: reduce) {
    .sm-calc__mag, .sm-calc__shadow, .sm-calc__spark, .sm-calc__bill, .sm-spinner2 { animation: none; }
    .sm-calc__bill { display: none; }
    .sm-calc__prog .sm-prog__fill, .sm-calc__prog .sm-prog__car { transition: none; }
}

/* ---- full-screen mobile picker (F4) ---- */
.sm-picker { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; flex-direction: column; }
.sm-picker__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 4px; }
.sm-picker__label { font-weight: 700; font-size: 15px; color: var(--ink); }
.sm-picker__x { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; }
.sm-picker__search { margin: 4px 18px 8px; height: 48px; border: 0; border-bottom: 2px solid var(--line); font-size: 24px; font-family: var(--head); outline: none; }
.sm-picker__list { list-style: none; margin: 0; padding: 0 6px 24px; overflow: auto; flex: 1; }
.sm-picker__row { min-height: 56px; display: flex; align-items: center; padding: 10px 12px; font-size: 21px; border-bottom: 1px solid #F0F3F5; cursor: pointer; }
.sm-picker__row b { font-weight: 800; }
.sm-picker__none { padding: 20px 12px; font-size: 20px; font-weight: 700; color: var(--muted); }

/* desktop dropdown "No matches" */
.sm-combo__none { padding: 11px 12px; color: var(--muted); }

/* phone pill short label (<400px) */
.sm-phonepill__short { display: none; }
@media (max-width: 399px) { .sm-phonepill__num { display: none; } .sm-phonepill__short { display: inline; } }

/* magician: hidden on mobile hero, shown desktop (F4) */
.sm-hero__magcol { display: none; }
@media (min-width: 768px) { .sm-hero__magcol { display: block; text-align: center; } }

/* ======================================================================
   Standalone /quote entry (Quote-Page-v2): blue title band + step card
   ====================================================================== */
.sm-sky--entry { display: flex; flex-direction: column; align-items: center; }
.sm-entry__band { text-align: center; color: #fff; padding: 6px 20px 20px; max-width: 980px; }
.sm-entry__title { font-family: var(--hero); font-weight: 800; color: #fff; line-height: 1.05; margin: 0; font-size: clamp(30px, 5.2vw, 60px); }
.sm-entry__sub { font-family: var(--body); color: #fff; font-size: clamp(15px, 1.2vw + 8px, 20px); margin: 8px 0 0; }
.sm-panel--entry { width: 100%; max-width: 920px; min-height: 0; border-radius: 24px; box-shadow: 0 26px 54px -30px rgba(10,60,90,.5); }
.sm-panel--entry .sm-grow { display: none; }
/* Year/Make/Model rendered as dropdown-style fields with a chevron (F5 combobox behavior underneath) */
.sm-combo--select { position: relative; }
.sm-combo--select .sm-combo__chev { position: absolute; right: 18px; top: 32px; transform: translateY(-50%); color: var(--muted); font-size: 18px; line-height: 1; pointer-events: none; }
.sm-combo--select input { padding-right: 44px; }
.sm-combo--select input:disabled { background: #F5F8F9; color: #9AA3A8; cursor: not-allowed; }
@media (min-width: 768px) {
    .sm-sky--entry { padding-top: clamp(24px, 3.5vw, 48px); }
    .sm-entry__band { padding-bottom: clamp(18px, 2.4vw, 34px); }
    /* chevron centers on the taller (64px) desktop fields */
    .sm-combo--select .sm-combo__chev { top: 50%; }
    .sm-panel--entry .sm-combo--select input { padding-right: 46px; }
    .sm-head__ask { display: inline; }
}
