/* ==========================================================================
   /paint-correction booking pages (views/paint-book.html, 2026-11-12).
   Sits on top of funnel.css - the same dark design as /start, /services,
   /datetime and /checkout - and only adds what those pages don't have: the
   one-shell step switch, the paint question chips and the inspection
   day/time picker.
   ALSO USED BY /winter-detail's booking pages (views/winter-book.html, the
   same evening), whose second step is "detail" instead of "car". Change a
   shared rule here and check both.
   ========================================================================== */

/* funnel.css gives .err and a few others display:block, which beats the
   browser's own [hidden] rule. These pages hide things with the attribute. */
[hidden]{display:none!important}

/* One file, five pages: the <html data-step> set in the <head> picks the
   pane before anything paints, so the wrong step never flashes. */
[data-pane]{display:none}
html[data-step="start"] [data-pane="start"],
html[data-step="car"] [data-pane="car"],
html[data-step="detail"] [data-pane="detail"],
html[data-step="time"] [data-pane="time"],
html[data-step="confirm"] [data-pane="confirm"],
html[data-step="booked"] [data-pane="booked"]{display:block}
html[data-step="booked"] .stepper{display:none}

/* ── Step 2: the paint questions ───────────────────────────────────────── */
.q{border:0;margin:6px 0 20px;padding:0;min-width:0}
.q-label{display:block;font-weight:800;font-size:1rem;color:var(--headline);margin-bottom:10px;line-height:1.35}
.q-hint{display:inline-block;font-weight:500;color:var(--muted);font-size:.82rem}
.q .chip-list{gap:8px}
.q .chip{font-family:inherit;font-size:.92rem;padding:11px 14px}
.q .chip.selected{background:rgba(249,115,22,.1)}
.q .chip:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.q.missing .chip-list{padding:8px;margin:-8px;border-radius:16px;box-shadow:0 0 0 2px rgba(239,68,68,.55)}
.other-field{margin:12px 0 0}
.q .err{margin-top:12px;margin-bottom:0}

/* ── Step 3: day strip + time grid ─────────────────────────────────────── */
.pb-lbl{font-weight:800;font-size:1rem;color:var(--headline);margin:2px 0 10px}
.pb-loading{padding:26px 10px;text-align:center;color:var(--muted);font-weight:600}
.pb-days{display:flex;gap:8px;overflow-x:auto;padding:6px 6px 12px;margin:-4px -6px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.pb-day{flex:0 0 auto;min-width:78px;display:flex;flex-direction:column;align-items:center;gap:1px;padding:10px 12px;border-radius:14px;border:1.6px solid var(--gray-border);background:#1b1b1f;color:var(--body);font-family:inherit;cursor:pointer;scroll-snap-align:start;transition:border-color .15s,box-shadow .15s}
.pb-day span{font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.pb-day b{font-size:1rem;font-weight:800;color:var(--headline);white-space:nowrap}
.pb-day small{font-size:.72rem;font-weight:700;color:var(--green-soft)}
.pb-day:hover{border-color:#4a4a52}
.pb-day.on{border-color:var(--orange);background:rgba(249,115,22,.1);box-shadow:0 0 0 4px rgba(249,115,22,.16)}
.pb-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:8px}
.pb-time{min-height:50px;padding:8px 10px;border-radius:12px;border:1.6px solid var(--gray-border);background:#1b1b1f;color:var(--headline);font-family:inherit;font-weight:700;font-size:.95rem;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.pb-time:hover{border-color:#4a4a52}
.pb-time.on{border-color:var(--orange);background:linear-gradient(135deg,var(--orange),var(--orange-dark));color:#fff;box-shadow:0 8px 22px rgba(249,115,22,.3)}
.pb-day:focus-visible,.pb-time:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.pb-note{min-height:1.4em;margin:14px 0 16px;color:var(--green-soft);font-weight:700;font-size:.92rem}

/* ── Step 4: summary + email ───────────────────────────────────────────── */
.summary .row span:first-child{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.summary .row span:last-child{max-width:62%;overflow-wrap:anywhere}
.summary .row.total span:last-child{color:var(--green-soft)}
/* Confirm step: "most customers spend $600 to $2,000" (owner, 2026-11-12). */
.pb-spend{margin:12px 2px 18px;font-size:.88rem;line-height:1.45;color:var(--muted)}
.pb-change{font-size:.78rem;font-weight:700;color:var(--orange);text-decoration:underline;text-underline-offset:2px}
.pb-email{margin-top:20px}

/* ── Shared bits ───────────────────────────────────────────────────────── */
.pb-back{display:block;width:max-content;margin:16px auto 0;color:var(--muted);font-weight:600;font-size:.92rem;text-decoration:underline;text-underline-offset:3px}
.pb-back:hover{color:var(--headline)}
.pb-h2{color:var(--headline);font-size:1.5rem;font-weight:800;margin-bottom:8px}
.pb-when{font-size:1.15rem;font-weight:800;color:var(--orange)!important;margin-bottom:18px!important}
.pb-list{list-style:none;display:grid;gap:8px}
.pb-list li{display:flex;gap:10px;align-items:flex-start;font-size:.94rem;line-height:1.5}
.pb-list li::before{content:"\2713";color:var(--green-soft);font-weight:800}
#timeFallback{margin-top:8px}
html[data-step="booked"] .ty-card{margin-top:24px}
.ty-card .btn{margin-top:4px;line-height:1.3;padding:14px 20px}
a[href^="tel:"]{white-space:nowrap}
@media (max-width:420px){
  .summary .row{flex-direction:column;gap:2px}
  .summary .row span:last-child{max-width:none;text-align:left}
}
