/* On-Call Auto RVA — booking & dispatch app
   Chrome / steel design system, matched to the marketing site.
   Type: Saira Condensed (italic display) + Barlow (body). */
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500;600;700;800&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,600&display=swap');

:root {
  --bg: #0b0d10;
  --bg-2: #10141a;
  --panel: #14181d;
  --panel-2: #1c222a;      /* card hover */
  --panel-3: #20252d;      /* chips / avatars */
  --line: #262b33;
  --line-2: #333b45;
  --line-3: #4a5462;       /* hover border */
  --ink: #f4f6f8;
  --ink-dim: #9ba5b2;
  --ink-faint: #7c8794;
  --ink-fainter: #5c6672;
  --chrome: #c9d1da;       /* primary accent */
  --chrome-2: #eef3f8;
  --chrome-ink: #0b0d10;   /* dark text on chrome */
  --red: #e0453c;
  --red-deep: #c02c24;
  --red-light: #ff7a72;
  --red-bg: #21100f;
  --green: #5fd18f;
  --green-ink: #04180d;
  --green-bg: #0f2419;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --focus: 0 0 0 3px rgba(201,209,218,.28);
  --disp: 'Saira Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font: 'Barlow', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--chrome); text-decoration: none; }
a:hover { color: var(--chrome-2); }
h1, h2, h3, h4 { font-family: var(--disp); font-style: italic; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 .4em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
.hidden { display: none !important; }
::selection { background: var(--chrome); color: var(--chrome-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Top bar / brand (matches site header) ---- */
.topbar {
  display: flex; align-items: center; gap: .85rem;
  padding: .6rem 1.15rem;
  background: rgba(15,19,25,0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar .logo { height: 52px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-family: var(--disp); font-style: italic; font-weight: 800;
  font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text span { color: var(--ink-faint); font-size: .62rem;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 600; line-height: 1.4; }
.topbar .tel {
  margin-left: auto; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--chrome); color: var(--chrome-ink);
  padding: .6rem 1rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s;
}
.topbar .tel:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,209,218,.32); color: var(--chrome-ink); }
.topbar .tel .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,69,60,.55); } 70% { box-shadow: 0 0 0 10px rgba(224,69,60,0); } 100% { box-shadow: 0 0 0 0 rgba(224,69,60,0); } }

/* ---- Layout ---- */
.wrap { max-width: 600px; margin: 0 auto; padding: 1.2rem 1.15rem 6rem; }
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 1.1rem 1.15rem 3rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.05rem;
  transition: border-color .25s, background .25s;
  animation: rise .4s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card > h3:first-child, .card > h2:first-child { margin-top: 0; }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); font-size: .85rem; }
.center { text-align: center; }
.stack > * + * { margin-top: .7rem; }
.hr { height: 1px; background: var(--line); border: 0; margin: 1.1rem 0; }
.section-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.section-head .ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: var(--panel-3); border: 1px solid var(--line-2); }
.section-head h3 { margin: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; letter-spacing: .2px;
  padding: .8rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .2s, filter .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-3); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.big { padding: 1.05rem 1.3rem; font-size: 1.05rem; width: 100%; border-radius: 15px; }
.btn.primary { background: var(--chrome); color: var(--chrome-ink); border-color: var(--chrome);
  box-shadow: 0 12px 30px rgba(201,209,218,.18); }
.btn.primary:hover { box-shadow: 0 18px 40px rgba(201,209,218,.3); color: var(--chrome-ink); }
.btn.emergency { background: var(--red-deep); color: #fff; border-color: var(--red-deep);
  box-shadow: 0 12px 30px rgba(224,69,60,.24); }
.btn.emergency:hover { box-shadow: 0 18px 44px rgba(224,69,60,.34); color: #fff; }
.btn.danger { background: var(--red-bg); color: var(--red-light); border-color: #4a2420; box-shadow: none; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: .5rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(11,13,16,.25);
  border-top-color: rgba(11,13,16,.75); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Sticky driver submit bar ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: .8rem 1.15rem calc(.8rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11,13,16,0), rgba(11,13,16,.94) 34%);
  backdrop-filter: blur(6px);
}
.sticky-cta .inner { max-width: 600px; margin: 0 auto; }

/* ---- Forms ---- */
label.fld { display: block; margin-bottom: .95rem; }
label.fld > span { display: block; font-size: .72rem; color: var(--ink-dim);
  margin-bottom: .35rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: .8rem .85rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-fainter); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--chrome);
  box-shadow: var(--focus); background: #0c1015; }
textarea { min-height: 76px; resize: vertical; }
input[type="file"] { padding: .6rem; cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; margin-right: .7rem;
  border: 0; border-radius: 8px; padding: .5rem .8rem; cursor: pointer;
  background: var(--chrome); color: var(--chrome-ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.req::after { content: " *"; color: var(--chrome); }

/* Toggle switch (hazard) */
.switch { display: flex; align-items: center; gap: .8rem; width: 100%; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .85rem .9rem; transition: border-color .15s, background .15s; }
.switch input { display: none; }
.switch .track { width: 46px; height: 27px; flex: 0 0 46px; border-radius: 999px;
  background: var(--panel-3); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #cdd6e2; transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--red); }
.switch input:checked + .track::after { transform: translateX(19px); background: #fff; }
.switch.on { border-color: #4a2420; background: var(--red-bg); }
.switch .lbl { font-size: .92rem; }

/* ---- Mode toggle ---- */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .4rem; }
@media (max-width: 460px) { .mode-toggle { grid-template-columns: 1fr; } }
.mode-btn {
  border: 1px solid var(--line-2); background: var(--panel);
  border-radius: var(--radius); padding: 1.3rem 1rem; cursor: pointer; text-align: center;
  transition: transform .18s var(--ease), border-color .2s, background .2s;
}
.mode-btn:hover { transform: translateY(-3px); border-color: var(--line-3); background: var(--panel-2); }
.mode-btn .big-emoji { font-size: 1.9rem; display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: .5rem;
  background: var(--panel-3); border: 1px solid var(--line-2); }
.mode-btn.now .big-emoji { background: var(--red-bg); border-color: #4a2420; }
.mode-btn b { display: block; margin-top: .1rem; font-family: var(--disp); font-style: italic;
  font-weight: 800; font-size: 1.15rem; }
.mode-btn.on { border-color: var(--chrome); box-shadow: var(--focus); }

/* ---- Symptom / service picker ---- */
.sym-cat { margin-bottom: 1rem; }
.sym-cat h4 { margin: .2rem 0 .55rem; font-size: .78rem; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--ink-dim); display: flex; align-items: center; gap: .4rem;
  font-family: var(--font); font-style: normal; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .58rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  cursor: pointer; user-select: none; font-size: .9rem; font-weight: 500;
  transition: transform .12s var(--ease), border-color .15s, background .15s, color .15s;
}
.chip:hover { transform: translateY(-1px); border-color: var(--line-3); }
.chip.on { background: var(--chrome); color: var(--chrome-ink); border-color: var(--chrome);
  font-weight: 700; }
.chip small { color: var(--ink-fainter); font-weight: 600; }
.chip.on small { color: #45525f; }

/* ---- Price pill ---- */
.pill-info { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .8rem .95rem; font-size: .92rem; }
#price-range { background: var(--panel); border-color: var(--line-2); margin-top: .8rem; }
#price-range b { font-family: var(--disp); font-style: italic; color: var(--chrome); font-size: 1.2rem; }

/* ---- Badges / status ---- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .65rem; border-radius: 999px; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-dim);
  white-space: nowrap;
}
.badge.submitted, .badge.scheduled, .badge.confirmed, .badge.en_route {
  color: var(--chrome); border-color: var(--line-3); background: rgba(201,209,218,.08); }
.badge.on_scene { color: var(--green); border-color: #1c5a36; background: var(--green-bg); }
.badge.resolved { color: var(--ink-dim); }
.badge.cancelled { color: var(--red-light); border-color: #4a2420; background: var(--red-bg); }
.badge.hazard { color: var(--red-light); border-color: #4a2420; background: var(--red-bg); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: pulse-dot 1.4s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Map ---- */
#map, .map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line-2);
  overflow: hidden; background: var(--bg-2); }
.leaflet-container { background: #090b0e !important; font-family: var(--font) !important; }
.leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(0.92) contrast(0.9) saturate(0.2); }
.leaflet-bar a { background: var(--panel-2) !important; color: var(--ink) !important; border-color: var(--line-2) !important; }
.leaflet-bar a:hover { background: var(--panel-3) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel-2) !important; color: var(--ink) !important; }

/* ---- Driver hero (track) ---- */
.hero { background:
    radial-gradient(600px 220px at 82% -30%, rgba(201,209,218,.14), transparent 70%),
    var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem; margin-bottom: 1.05rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
  animation: rise .4s var(--ease) both;
}
.hero .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.hero h2 { margin: 0 0 .2rem; }
.hero .sub { color: var(--ink-dim); margin: 0; }
.hero-icon { font-size: 2.6rem; line-height: 1; }
.eta-card { display: flex; align-items: center; gap: .9rem; margin-top: 1rem;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: .9rem 1rem; }
.eta-card .big { font-family: var(--disp); font-style: italic; font-size: 1.6rem; font-weight: 800;
  color: var(--chrome); letter-spacing: -.02em; }
.eta-card .truck { font-size: 1.8rem; }

/* ---- Timeline ---- */
.timeline { list-style: none; padding: 0; margin: .5rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px;
  background: var(--line-2); }
.timeline li { display: flex; gap: .85rem; align-items: flex-start; padding: .5rem 0; position: relative; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px;
  border: 2px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center;
  font-size: .8rem; z-index: 1; transition: all .2s; }
.timeline li.done .dot { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.timeline li.active .dot { background: var(--chrome); border-color: var(--chrome); color: var(--chrome-ink);
  box-shadow: 0 0 0 5px rgba(201,209,218,.16); }
.timeline li.active .t-label b { color: var(--chrome); }
.timeline li.pending { opacity: .5; }
.timeline .t-label b { display: block; font-weight: 700; }
.timeline .t-label small { color: var(--ink-faint); }

/* ---- Detail key/value ---- */
.detail .kv { display: grid; grid-template-columns: 118px 1fr; gap: .55rem .9rem; margin: .7rem 0; }
.detail .kv dt { color: var(--ink-faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .8px;
  font-weight: 700; padding-top: 1px; }
.detail .kv dd { margin: 0; }
.detail img.photo { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line-2); margin-top: .3rem; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---- Dispatch dashboard ---- */
.tabs { display: flex; gap: .3rem; margin-bottom: 1.1rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: .35rem; }
.tab { padding: .6rem 1rem; cursor: pointer; border: none; background: none; color: var(--ink-dim);
  font: inherit; font-weight: 700; border-radius: 10px; display: inline-flex; align-items: center; gap: .35rem;
  transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); background: var(--panel-2); }
.tab.on { color: var(--chrome-ink); background: var(--chrome); }
.tab .count { background: rgba(0,0,0,.22); color: inherit; border-radius: 999px;
  padding: 0 .5rem; font-size: .75rem; min-width: 20px; text-align: center; }
.tab:not(.on) .count { background: var(--panel-3); color: var(--ink-dim); }

.dash-grid { display: grid; grid-template-columns: 400px 1fr; gap: 1.1rem; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.job-list { display: flex; flex-direction: column; gap: .6rem; max-height: 80vh; overflow: auto;
  padding: 2px 4px 2px 2px; }
.day-sep { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-faint);
  font-weight: 700; margin: .7rem 0 .1rem; padding-left: .2rem; }
.job {
  background: var(--panel);
  border: 1px solid var(--line); border-left: 4px solid var(--line-2);
  border-radius: 13px; padding: .85rem .9rem; cursor: pointer;
  transition: transform .12s var(--ease), border-color .2s, background .2s;
  display: flex; gap: .75rem; align-items: flex-start;
}
.job:hover { transform: translateY(-2px); border-color: var(--line-3); background: var(--panel-2); }
.job.sel { border-color: var(--chrome); background: var(--panel-2); box-shadow: var(--focus); }
.job.haz { border-left-color: var(--red); }
.job.now { border-left-color: var(--chrome); }
.job.confirmed { border-left-color: var(--chrome); }
.job.en_route { border-left-color: var(--chrome-2); }
.job.on_scene { border-left-color: var(--green); }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--disp); font-style: italic; font-weight: 800; font-size: 1rem;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--ink); }
.avatar.haz { background: var(--red-bg); border-color: #4a2420; color: var(--red-light); }
.job .body { flex: 1; min-width: 0; }
.job .row1 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.job .who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .meta { color: var(--ink-dim); font-size: .87rem; margin-top: .15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .row2 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .3rem; }
.job .dist { color: var(--chrome); font-weight: 700; font-size: .82rem; }
.empty { color: var(--ink-faint); text-align: center; padding: 3.5rem 1rem; }
.empty .big-emoji { font-size: 2.5rem; display: block; margin-bottom: .6rem; opacity: .7; }

/* action bar in detail */
.action-bar { display: flex; gap: .6rem; flex-wrap: wrap; padding: .9rem; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line-2); }
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; } }

/* ---- Login ---- */
.login-hero { max-width: 420px; margin: 8vh auto 0; }
.login-hero .brand-big { text-align: center; margin-bottom: 1.2rem; }
.login-hero .brand-big img { height: 90px; width: auto; }

/* ---- Toast ---- */
#toasts { position: fixed; top: 1rem; right: 1rem; z-index: 200; display: flex; flex-direction: column;
  gap: .6rem; max-width: 350px; }
.toast { background: var(--chrome); color: var(--chrome-ink);
  border-radius: 14px; padding: .85rem 1rem; box-shadow: var(--shadow-lg); font-weight: 700;
  animation: pop .3s var(--ease); cursor: pointer; display: flex; gap: .6rem; align-items: center;
  border: 1px solid var(--chrome-2); }
.toast .ic { font-size: 1.3rem; }
.toast small { display: block; font-weight: 500; opacity: .75; margin-top: 1px; }
@keyframes pop { from { transform: translateX(20px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }

.pulse { animation: pulseop 1.6s infinite; }
@keyframes pulseop { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* loading spinner ring */
.loader { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line-2);
  border-top-color: var(--chrome); animation: spin .8s linear infinite; margin: 1rem auto; }

/* ---- Intake form: numbered sections that mirror the paper estimate ---- */
.form-intro { margin: -.2rem .2rem 1.2rem; }
.form-sec { display: flex; align-items: center; gap: .75rem; margin: 1.6rem 0 .75rem;
  padding-bottom: .55rem; border-bottom: 1px solid var(--line-2); }
.form-sec .num { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center;
  background: var(--chrome); color: var(--chrome-ink); border-radius: 7px;
  font-family: var(--disp); font-style: italic; font-weight: 800; font-size: 1.05rem; }
.form-sec b { display: block; font-family: var(--disp); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; line-height: 1.1; }
.form-sec small { color: var(--ink-faint); font-size: .82rem; }
em.opt { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500;
  color: var(--ink-fainter); margin-left: .3rem; }
.grid-3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: .7rem; }
.grid-plate { display: grid; grid-template-columns: 1fr 90px; gap: .7rem; }
#address_state, #vehicle_plate_state, #vehicle_vin, #vehicle_plate { text-transform: uppercase; }
#vehicle_vin { letter-spacing: .05em; font-variant-numeric: tabular-nums; }
#vin-hint { display: block; margin-top: .3rem; }
.money { display: flex; align-items: center; gap: .5rem; }
.money b { color: var(--ink-dim); }
.money input { max-width: 180px; }
label.check { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; margin-bottom: .6rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2);
  cursor: pointer; font-size: .92rem; transition: border-color .15s; }
label.check:hover { border-color: var(--line-3); }
label.check input { width: 20px; height: 20px; flex: 0 0 20px; margin: .1rem 0 0; padding: 0; accent-color: var(--chrome); }
label.check.bad { border-color: var(--red); }
.next-steps ol { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--ink-dim); font-size: .92rem; }
.next-steps li + li { margin-top: .35rem; }
.next-steps b { color: var(--ink); }
input.bad { border-color: var(--red); }
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > :first-child { grid-column: 1 / -1; }
}

/* ---- VIN plate photo + fee summary ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.vin-photo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: 1rem; }
.vin-photo .faint { flex: 1 1 200px; }
.vin-photo img { width: 100%; max-height: 200px; object-fit: contain; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2); }
.fee-box { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2);
  padding: .8rem .95rem; margin: .5rem 0 1rem; }
.fee-box > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0;
  border-bottom: 1px dashed var(--line-2); }
.fee-box > div b { font-family: var(--disp); font-style: italic; font-size: 1.15rem; }
.fee-box p { margin: .6rem 0 0; color: var(--ink-dim); font-size: .88rem; }
.fee-box p b { color: var(--ink); }
#symptom_other { min-height: 150px; }

/* ---- Shop build configurator ---- */
.wrap-build { max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.15rem 5rem; }
.build-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .7rem 0 .4rem; }
.build-hero .muted { max-width: 60ch; margin: 0 0 1.2rem; }
.shop-pill { display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--chrome); border: 1px solid var(--line-2); border-radius: 999px; padding: .35rem .8rem; }
.build-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.build-summary { position: sticky; top: 90px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .65rem; }
.opt-grid.three { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.opt-card { position: relative; display: flex; flex-direction: column; gap: .3rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: .95rem 1rem 1rem; transition: border-color .15s, background .15s, transform .15s; }
.opt-card:hover { border-color: var(--line-3); transform: translateY(-1px); }
.opt-card:focus-visible { outline: none; box-shadow: var(--focus); }
.opt-card.on { border-color: var(--chrome); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--chrome); }
.opt-top { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding-right: 1.4rem; }
.opt-top b { font-family: var(--disp); font-style: italic; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.opt-price { font-size: .78rem; font-weight: 700; color: var(--ink-dim); white-space: nowrap; }
.opt-card.on .opt-price { color: var(--chrome-2); }
.opt-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--chrome); }
.opt-desc { font-size: .86rem; color: var(--ink-dim); line-height: 1.45; }
.opt-check { position: absolute; top: .85rem; right: .85rem; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; border: 1px solid var(--line-3); color: var(--ink-faint); }
.opt-card.on .opt-check { background: var(--chrome); border-color: var(--chrome); color: var(--chrome-ink); }
.opt-card:not(.on) .opt-check:empty { display: none; }
.opt-card.on .opt-check:empty { display: grid; }
.opt-card.on .opt-check:empty::after { content: "✓"; }
.summary-card h3 { margin-top: 0; }
#summary-list { list-style: none; margin: .4rem 0 0; padding: 0; }
#summary-list li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-2); }
#summary-list .s-label { grid-column: 1 / -1; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
#summary-list .s-val { font-size: .93rem; }
#summary-list .s-price { font-size: .85rem; font-weight: 700; color: var(--ink-dim); text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin: .9rem 0 .3rem; }
.summary-total b { font-family: var(--disp); font-style: italic; font-size: 1.35rem; text-align: right; }
.done-card { max-width: 560px; margin: 2rem auto; text-align: center; padding: 2rem 1.4rem; }
.done-card .big-emoji { font-size: 2.6rem; }
@media (max-width: 900px) {
  .build-grid { grid-template-columns: 1fr; }
  .build-summary { position: static; }
}
.shop-link { display: flex; align-items: center; gap: .9rem; margin-top: .9rem; padding: 1rem 1.1rem;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink);
  transition: border-color .2s, transform .2s; }
.shop-link:hover { border-color: var(--line-3); transform: translateY(-2px); color: var(--ink); }
.shop-link .big-emoji { font-size: 1.5rem; }
.shop-link b { display: block; font-family: var(--disp); font-style: italic; font-size: 1.1rem; }
.shop-link small { color: var(--ink-faint); font-size: .85rem; }
.shop-link .arrow { margin-left: auto; color: var(--chrome); font-size: 1.3rem; }
