/* ============================================================================
   QUOTE FLOW — /quote/  (2026-09-29)
   Layered on main.css tokens. Everything here is scoped to .quote-* / .q-* so
   it cannot leak into the rest of the site.
   ============================================================================ */

.quote-card [hidden], .quote-stage [hidden] { display: none !important; }

.quote-hero { padding: 40px 0 18px; }
.quote-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.05; margin: 12px 0 10px; letter-spacing: -0.01em; color: var(--ink); }
.quote-hero .lede { color: var(--ink-soft); max-width: 56ch; margin: 0; font-size: 1.05rem; }

.quote-stage { padding: 12px 0 64px; }
.quote-stage .wrap--mid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .quote-stage .wrap--mid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }

.quote-card { background: var(--paper-3); border: 1px solid var(--hair); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px 20px 20px; position: relative; }
@media (min-width: 600px) { .quote-card { padding: 28px 30px 26px; } }

/* progress */
.q-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; margin-bottom: 18px; }
.q-step-label, .q-pct { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust-text); font-weight: 600; }
.q-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.q-bar-fill { height: 100%; width: 0; background: var(--rust); border-radius: 99px; transition: width .35s var(--ease); }

/* steps */
.q-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3.6vw, 1.75rem); line-height: 1.15; margin: 0 0 6px; color: var(--ink); padding: 0; }
.q-help { color: var(--ink-soft); margin: 0 0 16px; }
.q-hint { color: var(--ink-soft); font-size: 0.9rem; margin: 10px 0 0; }
.q-error { color: var(--rust-text); font-weight: 600; font-size: 0.92rem; margin: 10px 0 0; }
.q-error--send { background: var(--rust-soft); border-radius: var(--radius); padding: 12px 14px; margin-top: 16px; }
.opt { font-weight: 400; color: var(--ink-soft); }

/* step 1: question picker — one question, 2–7 big answers, tap to advance */
.pick-crumb { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust-text); font-weight: 600; margin: 0 0 8px; overflow-wrap: anywhere; }
.pick-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
@media (min-width: 600px) { .pick-list { grid-template-columns: 1fr 1fr; } }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label chev" "hint chev"; align-items: center; column-gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--hair); border-radius: var(--radius-lg); padding: 16px 14px 16px 18px; min-height: 64px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s, transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.pick:hover, .pick:focus-visible { border-color: var(--rust); background: var(--paper-3); }
.pick:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.pick:active { transform: scale(.985); background: var(--rust-soft); }
.pick .pick-label { grid-area: label; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.pick .pick-hint { grid-area: hint; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.3; margin-top: 3px; }
.pick .pick-chev { grid-area: chev; font-size: 1.6rem; line-height: 1; color: var(--rust); font-weight: 700; }
.pick:hover .pick-chev { transform: translateX(2px); }

/* choices */
.choice-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .choice-row { grid-template-columns: 1fr 1fr; } }
.choice-col { display: grid; gap: 10px; }
.choice { font: inherit; font-weight: 600; text-align: left; background: #fff; border: 1.5px solid var(--hair); border-radius: var(--radius-lg); padding: 15px 16px; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--rust); }
.choice[aria-pressed="true"] { border-color: var(--rust); background: var(--rust-soft); box-shadow: inset 0 0 0 1px var(--rust); }

/* photos */
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .photo-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; border: 2px dashed var(--rust); border-radius: var(--radius-lg); background: #fff; color: var(--rust-text); font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.photo-add:hover { background: var(--rust-soft); }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(27,35,51,.85); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

/* ballpark */
.bp-panel { border: 2px solid var(--rust); background: #fff; border-radius: var(--radius-lg); padding: 20px 18px 16px; text-align: center; margin: 4px 0 18px; }
.bp-eyebrow { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust-text); font-weight: 600; }
.bp-figure { display: block; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.4rem; line-height: 1.1; margin-top: 4px; }
.bp-figure--big { font-size: clamp(2rem, 7vw, 2.8rem); margin: 6px 0 2px; }
.bp-sub { display: block; color: var(--ink-soft); font-size: 0.95rem; }
.bp-fine { color: var(--ink-soft); font-size: 0.85rem; margin: 12px 0 0; }
.bp-badge { border: 1.5px solid var(--rust); background: var(--rust-soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; }
.bp-badge .bp-eyebrow { grid-column: 1 / -1; }
.bp-badge .bp-figure { font-size: 1.25rem; margin: 0; }
.bp-badge .bp-sub { font-size: 0.85rem; }

/* fields */
.form-two { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 520px) { .form-two { grid-template-columns: 1fr 1fr; } }
.quote-card .form-field { margin: 0 0 14px; }
.quote-card .form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.quote-card input[type="text"], .quote-card input[type="tel"], .quote-card input[type="email"], .quote-card textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid var(--hair); border-radius: var(--radius); background: #fff; color: var(--ink); }
.quote-card input:focus, .quote-card textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; border-color: var(--rust); }
.quote-card .form-field.has-error input { border-color: var(--rust); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.consent-block { border-top: 1px solid var(--hair); padding-top: 14px; margin-top: 6px; }
.consent-title { display: block; font-weight: 700; margin-bottom: 8px; }
.consent-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-bottom: 10px; }
.consent-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rust); }
.consent-row label { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.45; }
.consent-block .hint { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }

/* step 5: how do you want your number */
.path-block { border-top: 1px solid var(--hair); padding-top: 16px; margin-top: 16px; }
.path-title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; color: var(--ink); }
.path-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .path-cards { grid-template-columns: 1fr 1fr; } }
.path-card { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-areas: "dot label" "dot hint"; column-gap: 10px; align-items: start; text-align: left; background: #fff; border: 1.5px solid var(--hair); border-radius: var(--radius-lg); padding: 14px 14px 13px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.path-card:hover { border-color: var(--rust); }
.path-card:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.path-card[aria-checked="true"] { border-color: var(--rust); background: var(--rust-soft); box-shadow: inset 0 0 0 1px var(--rust); }
.path-card .path-dot { grid-area: dot; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hair); background: #fff; margin-top: 1px; position: relative; }
.path-card[aria-checked="true"] .path-dot { border-color: var(--rust); }
.path-card[aria-checked="true"] .path-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--rust); }
.path-card .path-label { grid-area: label; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.path-card .path-hint { grid-area: hint; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; }
.path-card[aria-checked="true"] .path-hint { color: var(--rust-deep); }

/* nav */
.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.q-nav .btn { white-space: nowrap; }
.q-nav .btn-go { margin-left: auto; min-width: 180px; }
.q-nav .btn[disabled] { opacity: .6; cursor: progress; }
/* Phone: the send label ("Request my in-home estimate →") is too long to sit
   beside Back, so the primary goes full-width on its own row, Back beneath. */
@media (max-width: 560px) {
  .q-nav { flex-wrap: wrap; }
  .q-nav .btn-go { order: -1; flex: 1 1 100%; margin-left: 0; min-width: 0; white-space: normal; height: auto; min-height: 60px; padding: 14px 20px; line-height: 1.2; }
  .q-nav #btnBack { flex: 0 0 auto; }
}
.q-call { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin: 16px 0 0; }

/* done */
.q-done { text-align: center; padding: 10px 0 4px; }
.q-done .q-h2 { margin-top: 10px; }
.done-texted { margin: 10px auto 0; max-width: 40ch; font-weight: 600; color: var(--rust, #B5501E); }
.done-texted + .q-help { margin-top: 8px; }
.done-actions { display: grid; gap: 10px; margin: 18px 0 14px; }
@media (min-width: 520px) { .done-actions { grid-template-columns: 1fr 1fr; } }

/* side */
.q-side { display: grid; gap: 16px; }
.q-side .card h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 10px; }
.q-side .ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.q-side .ticks li { position: relative; padding-left: 24px; color: var(--ink-soft); }
.q-side .ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--rust); font-weight: 700; }
.q-side .btn-go--block { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { .q-bar-fill, .pick, .path-card, .choice { transition: none; } .pick:hover .pick-chev { transform: none; } }
