/* Quote page V2 + confirmation page. Loaded by /quote/ and /thank-you/. Uses the tokens from main.css.
   Design rules: light page, thin neutral field borders, no shadows, yellow only on the one main action and the
   progress bar, black for selected states, sentence-case labels, Big Shoulders only for headings and the button. */

.quote-section { background: var(--paper); }
.qv2 {
  --qv-field: #8f887c;       /* 3:1 against white and paper: form boundary contrast */
  --qv-muted: #615b54;
  --qv-err: #b3261e;
  --qv-ok: #1a6b2f;
  --qv-r: 10px;
  padding-block: 18px 52px;
}
.qv2 :focus { scroll-margin-top: 96px; }

/* ---------- layout ---------- */
.qv2-layout { display: block; }
.qv2-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qv2-intro { display: none; }
.qv2-panel { scroll-margin-top: 84px; max-width: 560px; margin-inline: auto; }
.qv2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qv2-form { display: none; }
.js .qv2-form { display: block; }
.qv2-noscript { margin: 8px 0 0; color: var(--ink-soft); }
.qv2-noscript a { font-weight: 700; color: var(--ink); }

/* local test notice (shown by quote.js on localhost only) */
.qv2-test { margin: 0 0 16px; padding: 9px 12px; background: #fff7d6; border-left: 4px solid var(--gold); color: #4a3b00; font-size: 14.5px; line-height: 1.4; }
.qv2-test[hidden] { display: none; }

/* ---------- progress ---------- */
.qv2-progress { margin: 0 0 22px; }
.qv2-plabel { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.qv2-plabel span:last-child { font-weight: 400; color: var(--qv-muted); text-align: right; }
.qv2-track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.qv2-track i { display: block; width: 50%; height: 100%; background: var(--gold); border-radius: 3px; transition: width 0.25s ease; }

/* ---------- type ---------- */
.qv2 .qv2-h { font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 10.5vw, 46px); line-height: 0.96; text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 10px; }
.qv2 .qv2-h:focus { outline: none; }
#q-step2 .qv2-h { margin-bottom: 18px; }
.qv2-lede { margin: 0 0 22px; color: var(--ink-soft); }
.qv2-promo { margin: -8px 0 22px; padding: 10px 14px; background: var(--gold); border: 2px dashed var(--ink); color: var(--ink); font-weight: 700; }
.qv2-note { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--qv-muted); }
.qv2-opt { font-size: 15px; font-weight: 400; color: var(--qv-muted); }

/* ---------- fields ---------- */
.qv2 .qf { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.qv2 .qf > label, .qv2 .qv2-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 7px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.qv2 input[type="text"], .qv2 input[type="tel"], .qv2 input[type="email"], .qv2 input[type="date"], .qv2 textarea {
  display: block; width: 100%; min-height: 54px; padding: 0 14px;
  font: 400 17px/1.35 var(--font-body); color: var(--ink);
  background: var(--paper-raised); border: 1.5px solid var(--qv-field); border-radius: var(--qv-r);
  appearance: none; -webkit-appearance: none;
}
.qv2 select {
  display: block; width: 100%; min-height: 54px; padding: 0 42px 0 14px; cursor: pointer;
  font: 400 17px/1.35 var(--font-body); color: var(--ink);
  background-color: var(--paper-raised); border: 1.5px solid var(--qv-field); border-radius: var(--qv-r);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.qv2 select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.55); }
.qv2 .qv2-sublab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 7px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.qv2 textarea { padding: 14px; min-height: 96px; max-height: 240px; resize: none; }
.qv2 input::placeholder, .qv2 textarea::placeholder { color: #7d766d; }
.qv2 input:focus, .qv2 textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.55); }
.qv2 [aria-invalid="true"] { border-color: var(--qv-err); }
.qv2-err { margin: 7px 0 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--qv-err); }
.qv2-err[hidden], .qv2-note[hidden], .qv2-alert[hidden], .qv2-datebox[hidden] { display: none; }
.qv2-err a { color: var(--qv-err); white-space: nowrap; }
.qv2-count { margin: 6px 0 0; font-size: 14px; text-align: right; color: var(--qv-muted); }
.qv2-count:empty { display: none; }

.qv2-zip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qv2 .qv2-zip input { width: 150px; letter-spacing: 0.06em; }
.qv2-zipstate { font-size: 16px; font-weight: 700; line-height: 1.3; }
.qv2-zipstate.is-ok { color: var(--qv-ok); }
.qv2-zipstate.is-soft { color: var(--ink-soft); font-weight: 600; }
.qv2-zipstate:empty { display: none; }

/* ---------- photos ---------- */
.qv2-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.qv2 .qf > label.qv2-drop { display: flex; justify-content: flex-start; align-items: center; gap: 12px; min-height: 64px; margin: 0; padding: 0 16px; border: 1.5px dashed var(--qv-field); border-radius: var(--qv-r); background: var(--paper-raised); cursor: pointer; font-size: 17px; font-weight: 700; line-height: 1.2; }
.qv2-drop svg { width: 26px; height: 26px; flex: none; }
.qv2-drop small { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 400; line-height: 1.3; color: var(--qv-muted); }
.qv2-drop:hover, .qv2-drop.is-over { border-color: var(--ink); }
.qv2-file:focus-visible ~ .qv2-drop, .qv2-file:focus-visible ~ .qv2-thumbs .qv2-add { outline: 3px solid var(--ink); outline-offset: 3px; }
.qv2-thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.qv2-thumbs:empty { display: none; }
.qv2-thumb { position: relative; width: 74px; height: 74px; border-radius: 8px; overflow: visible; background: #ece7de; border: 1px solid var(--line); }
.qv2-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.qv2-thumb .qv2-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--qv-muted); }
.qv2-thumb.is-loading::after { content: ""; position: absolute; inset: 0; border-radius: 7px; background: repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 8px, rgba(0,0,0,.09) 8px 16px); }
.qv2-remove { position: absolute; top: -7px; right: -7px; width: 26px; height: 26px; padding: 0; border: 2px solid var(--paper-raised); border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.qv2-remove::before { content: ""; position: absolute; inset: -9px; }
.qv2-remove svg { width: 12px; height: 12px; }
.qv2-remove:hover { background: var(--qv-err); }
.qv2-add { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 8px; border: 1.5px dashed var(--qv-field); background: var(--paper-raised); cursor: pointer; font-size: 30px; line-height: 1; color: var(--ink); }
.qv2-add:hover { border-color: var(--ink); }
.qv2-pcount { margin: 8px 0 0; font-size: 15px; color: var(--qv-muted); }
.qv2-pcount:empty { display: none; }

/* ---------- buttons ---------- */
.qv2-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 0 20px; border: 0; border-radius: var(--qv-r); background: var(--gold); color: var(--ink); font: 900 26px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; transition: background-color 0.12s ease; }
.qv2-btn:hover { background: #ffce3a; }
.qv2-btn:active { transform: translateY(1px); }
.qv2-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.qv2-btn[disabled] { opacity: 0.7; cursor: progress; }
.qv2-reassure { margin: 12px 0 0; text-align: center; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ink-soft); }
.qv2-status { margin: 10px 0 0; min-height: 1.3em; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.qv2-fine { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--qv-muted); }
.qv2-fine a, .qv2-ctext a { color: var(--ink-soft); }
.qv2-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 6px -6px; padding: 0 8px 0 4px; background: none; border: 0; font-size: 16px; font-weight: 700; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.qv2-back svg { width: 18px; height: 18px; }
.qv2-back:hover { color: var(--ink); }
.qv2-back:focus-visible, .qv2-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.qv2-link { min-height: 24px; padding: 0; background: none; border: 0; font-size: 15px; font-weight: 700; text-decoration: underline; color: var(--ink-soft); cursor: pointer; }
.qv2-link[hidden] { display: none; }

/* ---------- date choice ---------- */
/* name pair and date/time pair: stacked on phones, two columns from 600px */
.qv2-pair { display: block; }
.qv2-when-note { margin: -4px 0 18px; font-size: 14px; }
.qv2 input[type="date"] { position: relative; cursor: pointer; }
/* the whole box opens the calendar, not just the small icon (Chromium); showPicker() covers the rest */
.qv2 input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
@media (min-width: 600px) {
  .qv2-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
}

/* ---------- consent (existing production wording; see docs) ---------- */
.qv2-consent { margin: 6px 0 22px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--qv-r); background: var(--paper-raised); }
.qv2-crow { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); cursor: pointer; }
.qv2-crow input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.qv2-crow > span { display: block; min-width: 0; padding-top: 1px; }
.qv2-crow .qv2-opt { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--line); font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: 1px; color: var(--qv-muted); }
.qv2-ctext { margin: 12px 0 0 38px; font-size: 13.5px; line-height: 1.5; color: var(--qv-muted); }

.qv2-alert { margin: 0 0 16px; padding: 12px 14px; border: 1.5px solid var(--qv-err); border-radius: var(--qv-r); background: #fff3f1; color: #7d1a14; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.qv2-alert a { color: #7d1a14; white-space: nowrap; }
.qv2-turnstile:empty { display: none; }   /* Turnstile is invisible unless Cloudflare needs proof; then it appears here */
.qv2-turnstile { margin: 0 0 16px; }
.qv2-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- confirmation page ---------- */
.qv2-done { max-width: 560px; margin-inline: auto; }
.qv2-done-duck { display: block; width: 84px; height: auto; margin: 0 0 14px; }
.qv2-done h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 9.5vw, 46px); line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 26px; }
.qv2-done-sub { margin: 0 0 12px; font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.qv2-done-list { list-style: none; margin: 0 0 14px; padding: 0; }
.qv2-done-list li { position: relative; padding: 0 0 12px 28px; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.qv2-done-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.qv2-done-list li[hidden] { display: none; }
.qv2-done-call { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-soft); }
.qv2-done-call a { font-weight: 700; color: var(--ink); white-space: nowrap; }
.qv2-done-home { margin: 22px 0 0; }
.qv2-done-home a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 20px; border-radius: var(--qv-r); background: var(--ink); color: #fff; font: 900 24px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; transition: background-color 0.12s ease; }
.qv2-done-home a:hover { background: #2b2926; }
.qv2-done-home a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- >= 600px: white card ---------- */
@media (min-width: 600px) {
  .qv2 { padding-block: 32px 64px; }
  .qv2-panel { padding: 32px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px; }
  .qv2 input[type="text"], .qv2 input[type="tel"], .qv2 input[type="email"], .qv2 input[type="date"], .qv2 textarea { background: var(--paper); }
  .qv2 select { background-color: var(--paper); }
  .qv2 .qf > label.qv2-drop, .qv2-add { background: var(--paper); }
  .qv2-done { padding: 32px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px; }
}

/* ---------- >= 960px: intro beside the form ---------- */
@media (min-width: 960px) {
  .qv2 { padding-block: 56px 88px; }
  .qv2-layout { display: grid; grid-template-columns: minmax(0, 1fr) 540px; grid-template-rows: auto 1fr; column-gap: 80px; align-items: start; }
  .qv2-title { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; grid-column: 1; grid-row: 1; margin: 0 0 20px; font-family: var(--font-display); font-weight: 900; font-size: 74px; line-height: 0.92; text-transform: uppercase; }
  .qv2-intro { display: block; grid-column: 1; grid-row: 2; }
  .qv2-intro p { max-width: 30em; margin: 0 0 22px; font-size: 19px; color: var(--ink-soft); }
  .qv2-points { list-style: none; margin: 0 0 28px; padding: 0; }
  .qv2-points li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); }
  .qv2-points svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
  .qv2-mascot { display: block; width: 210px; height: auto; margin-top: 12px; }
  .qv2-panel { grid-column: 2; grid-row: 1 / span 2; max-width: none; margin: 0; padding: 40px; }
}
@media (max-width: 380px) {
  .qv2 .wrap { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .qv2-track i, .qv2-btn { transition: none; }
}
