/* ============================================================================
   V6 funnel — emerald/clean aesthetic modeled on the competitor design.
   All rules are scoped under .v6-page so nothing bleeds into v1–v5.
   Patterns: logo-only header, thin emerald progress bar, large 2-col cards,
   auto-advance on tap, "Select Other" progressive disclosure, incentive
   subheadings, compound demographics screen, validated DOB + contact inputs.
   ============================================================================ */

.v6-page {
    --v6-emerald: #059669;       /* emerald-600 — primary */
    --v6-emerald-700: #047857;
    --v6-emerald-50: #ecfdf5;    /* selected/hover bg */
    --v6-ink: #0f172a;           /* slate-900 — headings */
    --v6-text: #1f2937;          /* gray-800 — body */
    --v6-muted: #6b7280;         /* gray-500 */
    --v6-border: #d1d5db;        /* gray-300 */
    --v6-bg: #f8fafc;            /* slate-50 page bg */
    --v6-white: #ffffff;

    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--v6-text);
    -webkit-font-smoothing: antialiased;
}

/* Box-sizing reset (scoped to the v6 funnel). Without it, any width:100% element WITH padding overflows
   its container — the root cause of the /v6 landing scrolling sideways on mobile: .v6-main was content-box,
   so width:100% + 32px horizontal padding pushed it ~24px past a 375px viewport. Border-box keeps padding
   inside the declared width and prevents this whole class of overflow bugs (previously patched per-element). */
.v6-page, .v6-page *, .v6-page *::before, .v6-page *::after { box-sizing: border-box; }

.v6-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--v6-bg);
}

/* ---- Header (logo only) ------------------------------------------------- */
.v6-header {
    background: var(--v6-white);
    border-bottom: 1px solid #eef2f7;
    padding: 14px 16px;
    display: flex;
    justify-content: center;
}
.v6-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--v6-ink);
}
.v6-logo .accent { color: var(--v6-emerald); }

/* ---- Persistent savings + car progress header (V6ProgressHeader) --------- */
.v6-phead { background: var(--v6-white); padding: 12px 16px 15px; border-bottom: 1px solid #eef2f7; }
/* Full-bleed white bar, but align its content to the same 560px centered column as .v6-main so on desktop the
   savings row + progress track line up with the body/Back instead of stretching edge-to-edge (off-center look). */
.v6-phead__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 auto 11px; max-width: 560px; }
.v6-phead__track { max-width: 560px; margin-left: auto; margin-right: auto; }
.v6-phead__save { font-size: 12.5px; font-weight: 700; color: #047857; line-height: 1.2; }
.v6-phead__save sup { font-size: .7em; }
.v6-phead__pct { font-size: 12px; font-weight: 800; color: var(--v6-emerald); white-space: nowrap; }
.v6-phead__track { position: relative; height: 8px; background: #e5e7eb; border-radius: 999px; }
.v6-phead__fill { height: 100%; background: linear-gradient(90deg, var(--v6-emerald), #10b981); border-radius: 999px; transition: width .4s cubic-bezier(.4, 0, .2, 1); }
/* 🚗 faces left by default → scaleX(-1) points it in the direction of travel; it rides the fill edge. */
.v6-phead__car { position: absolute; top: 50%; transform: translate(-50%, -50%) scaleX(-1); font-size: 15px; line-height: 1; pointer-events: none; transition: left .4s cubic-bezier(.4, 0, .2, 1); }
@media (max-width: 400px) { .v6-phead__save { font-size: 11px; } }

/* ---- Progress bar (legacy landing/other funnels) ------------------------- */
.v6-progress-wrap {
    background: var(--v6-white);
    padding: 12px 16px 14px;
    border-bottom: 1px solid #eef2f7;
}
.v6-progress-track {
    position: relative;
    height: 8px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.v6-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--v6-emerald), #10b981);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Main column -------------------------------------------------------- */
.v6-main {
    flex: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 22px 16px 96px;
}
.v6-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--v6-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 2px;
    margin-bottom: 10px;
}
.v6-back:hover { color: var(--v6-ink); }
.v6-back::before { content: "‹"; font-size: 18px; line-height: 1; }

.v6-h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    color: var(--v6-ink);
    text-align: center;
    margin: 6px 0 4px;
}
.v6-sub {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--v6-emerald);
    margin: 0 0 18px;
}
.v6-sub--muted { color: var(--v6-muted); font-weight: 500; }

/* ---- Option card grid (auto-advance) ------------------------------------ */
.v6-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.v6-grid--1 { grid-template-columns: 1fr; }

.v6-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 72px;
    padding: 16px 14px;
    background: var(--v6-white);
    border: 1.5px solid var(--v6-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--v6-text);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.v6-card:hover {
    border-color: var(--v6-emerald);
    background: var(--v6-emerald-50);
}
.v6-card.is-selected {
    border-color: var(--v6-emerald);
    background: var(--v6-emerald-50);
    box-shadow: 0 0 0 1px var(--v6-emerald) inset;
}
.v6-card:disabled { opacity: 0.55; cursor: default; }
.v6-card--row { flex-direction: row; min-height: 60px; }

/* logo on a card (makes / carriers). UNIFORM SIZING: every logo scales to fit the SAME bounding box
   (max 30px tall × 140px wide), width/height auto + object-fit contain — so a wide wordmark (State Farm,
   American Family) and a compact mark (Allstate, GEICO) read at a consistent size instead of one looking
   huge and another tiny. The fixed 40px flex row keeps every card's logo vertically centered. */
.v6-card__logo {
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v6-card__logo img {
    /* Default height CAP for every shared user of this class (the vehicle-MAKE steps put car-brand logos
       here with NO inline height — without this cap they render at natural size and blow out the card).
       The provider step overrides height per-logo inline (24-29px, all <= this cap, so unaffected). */
    max-height: 30px;
    width: auto;
    max-width: 100%;       /* overflow guard on the narrowest phones */
    object-fit: contain;
}
/* Providers without an official logo file fall back to a clean wordmark sized to sit in the same 40px band
   as the logos, so the grid reads uniform (drop an official logo into /images/carriers/{name}-logo.png|svg
   to replace the text). */
.v6-card__label { display: flex; align-items: center; justify-content: center; height: 40px; font-size: 18px; font-weight: 800; letter-spacing: 0.01em; color: #1f2937; text-align: center; line-height: 1.2; }

/* ---- "Select Other Option" progressive disclosure ---------------------- */
.v6-other {
    margin-top: 18px;
    text-align: center;
}
.v6-other__heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--v6-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}
.v6-other__toggle {
    width: 100%;
    padding: 14px;
    background: var(--v6-white);
    border: 1.5px dashed var(--v6-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--v6-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.v6-other__toggle:hover { border-color: var(--v6-emerald); color: var(--v6-emerald); }
.v6-other__select {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
    border: 1.5px solid var(--v6-border);
    border-radius: 12px;
    background: var(--v6-white);
    font-family: inherit;
    color: var(--v6-text);
}

/* ---- Vehicle summary chips (multi-vehicle) ------------------------------ */
.v6-chips { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.v6-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--v6-white);
    border: 1.5px solid var(--v6-border);
    border-radius: 12px;
}
.v6-chip__num {
    flex: 0 0 26px;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: var(--v6-emerald); color: #fff;
    border-radius: 50%; font-size: 13px; font-weight: 700;
}
.v6-chip__label { flex: 1; font-weight: 600; color: var(--v6-ink); }
.v6-chip__btn {
    background: none; border: none; cursor: pointer;
    color: var(--v6-muted); font-size: 13px; font-weight: 600; padding: 4px 6px;
}
.v6-chip__btn:hover { color: var(--v6-emerald); }
.v6-chip__btn--remove:hover { color: #dc2626; }

/* ---- Compound demographics screen --------------------------------------- */
.v6-compound { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.v6-field__label {
    font-size: 15px; font-weight: 600; color: var(--v6-ink); margin: 0 0 8px;
}
.v6-field__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* ---- Continue / primary button ------------------------------------------ */
.v6-continue {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background: var(--v6-emerald);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.v6-continue:hover:not(:disabled) { background: var(--v6-emerald-700); }
.v6-continue:disabled { background: #9ca3af; cursor: default; }

/* ---- DOB inputs --------------------------------------------------------- */
.v6-dob-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }
.v6-dob-input {
    width: 64px; padding: 16px 8px; text-align: center;
    font-size: 20px; font-weight: 600; color: var(--v6-ink);
    border: 1.5px solid var(--v6-border); border-radius: 12px; font-family: inherit;
}
.v6-dob-input--year { width: 92px; }
.v6-dob-input:focus { outline: none; border-color: var(--v6-emerald); }
.v6-dob-sep { font-size: 22px; color: var(--v6-muted); font-weight: 600; }
.v6-helptext { text-align: center; font-size: 13px; color: var(--v6-muted); margin: 10px 0 0; }

/* ---- Text inputs (name/contact) ----------------------------------------- */
.v6-inputs { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.v6-input {
    box-sizing: border-box; /* width:100% must include the 14px padding + border, or the input overflows its
                               grid track and the email/phone boxes overlap in the 2-col contact row. */
    width: 100%; padding: 16px 14px; font-size: 16px;
    border: 1.5px solid var(--v6-border); border-radius: 12px;
    font-family: inherit; color: var(--v6-ink); background: var(--v6-white);
}
.v6-input:focus { outline: none; border-color: var(--v6-emerald); }

/* ---- Entry / ZIP page --------------------------------------------------- */
.v6-hero { text-align: center; padding: 8px 0 4px; }
.v6-hero__eyebrow {
    display: inline-block; background: var(--v6-emerald-50); color: var(--v6-emerald-700);
    font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.v6-zip-row { display: flex; gap: 10px; margin: 18px 0 8px; }
.v6-zip-input {
    flex: 1 1 auto; min-width: 0; padding: 16px 14px; font-size: 18px; letter-spacing: 0.04em;
    border: 1.5px solid var(--v6-border); border-radius: 12px; font-family: inherit; color: var(--v6-ink);
}
.v6-zip-input:focus { outline: none; border-color: var(--v6-emerald); }
.v6-zip-btn {
    flex: 0 0 auto; white-space: nowrap; padding: 16px 22px; background: var(--v6-emerald); color: #fff;
    border: none; border-radius: 12px; font-family: 'Montserrat', sans-serif;
    font-size: 16px; font-weight: 700; cursor: pointer;
}
.v6-zip-btn:hover:not(:disabled) { background: var(--v6-emerald-700); }
.v6-zip-btn:disabled { background: #9ca3af; cursor: default; }
.v6-geo { text-align: center; font-size: 14px; color: var(--v6-muted); margin: 0; }
.v6-geo strong { color: var(--v6-ink); }

.v6-badges {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 8px 16px; margin: 22px 0; font-size: 13px; font-weight: 600; color: var(--v6-muted);
}
.v6-badges span { display: inline-flex; align-items: center; gap: 5px; }
.v6-badges span::before { content: "✓"; color: var(--v6-emerald); font-weight: 800; }

.v6-error { color: #dc2626; font-size: 14px; text-align: center; margin: 8px 0 0; font-weight: 500; }

/* ---- Contact screens (name / address / email+phone+TCPA) ---------------- */
.v6-field { text-align: left; }
.v6-label { display: block; font-size: 13px; font-weight: 600; color: var(--v6-muted); margin: 0 0 6px; }
.v6-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
@media (max-width: 480px) { .v6-input-row { grid-template-columns: 1fr; } }
.v6-tcpa { font-size: 11px; line-height: 1.5; color: #9ca3af; margin: 16px 0 0; text-align: left; }
.v6-tcpa a { color: var(--v6-emerald); }
.v6-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--v6-muted); font-weight: 500; margin-top: 16px; }
.v6-trust svg { width: 16px; height: 16px; color: var(--v6-emerald); }
/* address autocomplete dropdown injected by /js/address-autocomplete.js */
.v6-addr-wrap { position: relative; }
.pac-container, .address-suggestions { z-index: 2000 !important; border-radius: 10px; }

/* (v6-foot disclaimer removed — the compensation + rate-variance disclosure now lives once, in the shared
   site footer, instead of being duplicated mid-page on the v6 lander.) */

@media (min-width: 640px) {
    .v6-h1 { font-size: 27px; }
}

/* ===== v6 funnel trust strip (V6FunnelFooter) — chips + carrier logos on every step. Logo heights are set
   INLINE in the component so a stale CSS cache can't blow out the large Root PNG; this is layout only. ===== */
.v6-foot { border-top: 1px solid #e9ecf1; margin-top: 24px; padding: 18px 14px 4px; text-align: center; }
.v6-foot__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; align-items: center; color: #475569; font-size: 14px; font-weight: 600; }
.v6-foot__trust span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.v6-foot__ic { width: 18px; height: 18px; border-radius: 50%; background: #10b981; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-style: normal; }
.v6-foot__cap { margin: 14px 0 10px; color: #6b7280; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
/* Uniform carrier-logo strip (shared: funnel footer + landing). Every logo sits in an IDENTICAL fixed box
   with object-fit:contain, so widths never differ (kills the ragged 4+1 wrap) and the compact 2:1 Root mark
   gets equal weight instead of rendering tiny. Flex + justify-content:center centers the orphan row. */
.v6-foot__logos { display: flex; flex-wrap: wrap; gap: 16px 14px; justify-content: center; align-items: center; }
.v6-foot__logos img { width: 92px; height: 30px; object-fit: contain; opacity: .9; }
@media (max-width: 600px) { .v6-foot__logos img { width: 84px; height: 28px; } }
/* Shared fine-print for the $461 savings stat (landing hero + funnel footer). */
.v6-disclaimer { margin: 12px auto 0; max-width: 520px; color: #94a3b8; font-size: 10.5px; line-height: 1.5; text-align: center; }
.v6-disclaimer a { color: inherit; text-decoration: underline; }
/* Landing page-footer: sets the moved-out substantiation apart from the hero (declutters the top of the page). */
.v6-lp__footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid #eef2f7; }

/* ---- S3 landing content (How It Works / FAQ / slim CTA) ------------------ */
.v6-lp { margin-top: 34px; padding-top: 28px; border-top: 1px solid #eef2f7; }
.v6-lp__h2 { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 800; color: var(--v6-ink); margin: 0 0 18px; text-align: center; }
.v6-lp__h2:not(:first-child) { margin-top: 36px; }
/* Trust strip */
.v6-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; background: var(--v6-emerald-50); border-radius: 12px; padding: 12px 16px; margin-bottom: 34px; }
.v6-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--v6-emerald-700); }
.v6-trust i { font-style: normal; color: var(--v6-emerald); font-weight: 900; }
/* How It Works — 3-across cards (stack on mobile) */
.v6-hiw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.v6-hiw__card { background: var(--v6-white); border: 1px solid #e9ecf1; border-radius: 14px; padding: 20px 16px; text-align: center; }
.v6-hiw__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--v6-emerald-50); color: var(--v6-emerald-700); font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.v6-hiw__card strong { display: block; color: var(--v6-ink); font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.v6-hiw__card p { margin: 0; color: var(--v6-muted); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 600px) { .v6-hiw { grid-template-columns: 1fr; gap: 12px; } }
.v6-faq { display: flex; flex-direction: column; gap: 10px; }
.v6-faq details { border: 1px solid #e9ecf1; border-radius: 12px; background: var(--v6-white); }
.v6-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 15px; color: var(--v6-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.v6-faq summary::-webkit-details-marker { display: none; }
.v6-faq summary::after { content: '+'; color: var(--v6-emerald); font-size: 20px; font-weight: 700; line-height: 1; }
.v6-faq details[open] summary::after { content: '\2212'; }
.v6-faq p { margin: 0; padding: 0 16px 15px; color: var(--v6-text); font-size: 14px; line-height: 1.55; }
.v6-lp__cta { margin-top: 32px; text-align: center; }
.v6-lp__ctatext { font-size: 17px; font-weight: 700; color: var(--v6-ink); margin: 0 0 12px; }
.v6-lp__ctabtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 14px 40px; width: auto; }

/* ===== "Add another vehicle?" — tie the 20% incentive to the Yes card (Option 1) ===== */
.v6-card.v6-card--incentive { border-color: #0e9f6e; box-shadow: 0 0 0 2px rgba(14,159,110,.16); }
.v6-card__save { display: block; margin-top: 6px; color: #0e9f6e; font-weight: 800; font-size: 13px; }
