/* ============================================================
   BOOKING — multi-step flow (v2: no emojis, with 3D viewer)
   ============================================================ */

.book-shell { min-height: 100vh; padding-top: 100px; display: flex; flex-direction: column; }
.book-header {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}
.book-header h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -.015em; line-height: 1.05; }
.book-header .lede { color: var(--muted); margin-top: 12px; max-width: 600px; font-size: 16px; line-height: 1.6; }

.book-stepper {
  display: flex; gap: 0;
  margin-top: 28px;
  position: relative;
}
.book-stepper .step {
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  padding-right: 14px;
}
.book-stepper .step .ix {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em;
  color: var(--muted); font-weight: 500;
}
.book-stepper .step .lbl {
  font-family: var(--f-body); font-size: 13px;
  color: var(--muted); white-space: nowrap; font-weight: 500;
}
.book-stepper .step .bar {
  height: 3px; background: var(--rule); border-radius: 2px;
  margin-top: auto;
  transition: background var(--t-fast) var(--ease);
}
.book-stepper .step.active .ix,
.book-stepper .step.active .lbl,
.book-stepper .step.done .ix,
.book-stepper .step.done .lbl { color: var(--fg); }
.book-stepper .step.active .bar { background: var(--red); }
.book-stepper .step.done .bar   { background: var(--red); opacity: .55; }
@media (max-width: 880px) {
  .book-stepper .step .lbl { display: none; }
}

.book-body { flex: 1; padding: 56px 0 96px; }

.book-step {
  display: none;
  animation: bookFade .5s var(--ease);
}
.book-step.is-active { display: block; }
@keyframes bookFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.book-step h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -.015em;
  margin-bottom: 10px;
}
.book-step .lede { color: var(--muted); margin-bottom: 44px; max-width: 640px; font-size: 16px; line-height: 1.6; }

.book-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 44px; margin-top: 44px;
  border-top: 1px solid var(--rule);
  gap: 16px; flex-wrap: wrap;
}

/* Vehicle form */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.vehicle-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .vehicle-grid { grid-template-columns: 1fr; } }

/* Body type picker — clean tile, no emojis */
.body-types {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 16px;
}
.body-type {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 22px 18px 18px;
  text-align: left;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: rgba(255,255,255,.02);
  display: flex; flex-direction: column; gap: 12px;
}
.body-type:hover { border-color: var(--rule-strong); background: rgba(255,255,255,.04); }
.body-type.selected {
  border-color: var(--red);
  background: var(--red-soft);
}
.body-type .ix {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em;
  color: var(--muted); font-weight: 500;
}
.body-type.selected .ix { color: var(--red); }
.body-type .silhouette {
  width: 100%; height: 36px;
  display: flex; align-items: end; justify-content: center;
}
.body-type .silhouette svg { width: 100%; height: 100%; }
.body-type .silhouette svg path { fill: var(--muted); transition: fill var(--t-fast) var(--ease); }
.body-type.selected .silhouette svg path,
.body-type:hover .silhouette svg path { fill: var(--fg); }
.body-type .name {
  font-family: var(--f-body); font-size: 13px;
  font-weight: 500; letter-spacing: -.005em;
}
@media (max-width: 700px) { .body-types { grid-template-columns: repeat(2, 1fr); } }

/* Goal cards — no emojis, numbered + spec chips */
.goals-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.goal-card {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
  transition: all var(--t-med) var(--ease);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
}
.goal-card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.goal-card.selected {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(215,35,39,.10), transparent 60%);
}
.goal-card .num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--red); font-weight: 500;
}
.goal-card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -.01em;
  font-family: var(--f-display);
}
.goal-card p { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.goal-card .specs { display: flex; flex-wrap: wrap; gap: 6px; }
.goal-card .specs span {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding: 4px 10px; border: 1px solid var(--rule); border-radius: var(--r-pill);
}
@media (max-width: 880px) { .goals-grid { grid-template-columns: 1fr; } }

/* Recommendation card */
.rec-card {
  border: 2px solid var(--red);
  border-radius: var(--r-lg);
  padding: 36px;
  background: linear-gradient(135deg, rgba(215,35,39,.10), rgba(215,35,39,.02));
  position: relative;
  margin-bottom: 36px;
}
.rec-badge {
  position: absolute; top: -12px; left: 28px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  background: var(--red); color: var(--white);
  padding: 6px 14px; border-radius: var(--r-pill); font-weight: 500;
}
.rec-card .rec-title {
  font-family: var(--f-display); font-size: 36px; font-weight: 700;
  letter-spacing: -.01em; line-height: 1; margin: 12px 0 8px;
}
.rec-card .rec-price {
  font-family: var(--f-display); font-size: 26px; color: var(--red);
  font-weight: 700; margin-bottom: 20px;
}
.rec-card .rec-rationale {
  background: rgba(0,0,0,.32); border-radius: var(--r-md);
  padding: 18px 22px; margin-bottom: 20px;
  font-size: 14px; line-height: 1.65; color: var(--fg);
}
.rec-card .rec-rationale strong { color: var(--red); }
.rec-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.rec-spec {
  background: rgba(0,0,0,.22);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.rec-spec .v {
  font-family: var(--f-display); font-size: 26px; font-weight: 700;
  color: var(--red); line-height: 1;
}
.rec-spec .l {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 500;
}
@media (max-width: 700px) { .rec-specs { grid-template-columns: repeat(2, 1fr); } }

.alt-plans-header {
  display: flex; justify-content: space-between; align-items: center;
  margin: 36px 0 18px;
  flex-wrap: wrap; gap: 12px;
}
.alt-plans-header h4 {
  font-size: 17px; letter-spacing: -.005em; font-weight: 600;
}
.alt-plans {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.alt-plan {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 22px 24px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: all var(--t-fast) var(--ease);
}
.alt-plan:hover { border-color: var(--rule-strong); background: rgba(255,255,255,.02); }
.alt-plan.selected { border-color: var(--red); background: var(--red-soft); }
.alt-plan .name { font-weight: 600; font-size: 15px; font-family: var(--f-display); letter-spacing: -.005em; }
.alt-plan .meta { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; font-weight: 500; }
.alt-plan .price { font-family: var(--f-display); font-size: 18px; color: var(--red); font-weight: 700; }
@media (max-width: 700px) { .alt-plans { grid-template-columns: 1fr; } }

/* Add-ons */
.addons-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.addon {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 22px 24px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px;
}
.addon:hover { border-color: var(--rule-strong); background: rgba(255,255,255,.02); }
.addon.selected { border-color: var(--red); background: var(--red-soft); }
.addon .name { font-weight: 600; font-size: 15px; margin-bottom: 6px; font-family: var(--f-display); letter-spacing: -.005em; }
.addon .desc { color: var(--muted); font-size: 13px; line-height: 1.55; }
.addon .price { font-family: var(--f-display); font-size: 16px; color: var(--red); font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) { .addons-grid { grid-template-columns: 1fr; } }

/* Location + date */
.loc-pick {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-bottom: 32px;
}
.loc-opt {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 24px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.loc-opt:hover { border-color: var(--rule-strong); }
.loc-opt.selected { border-color: var(--red); background: var(--red-soft); }
.loc-opt h5 { font-size: 17px; letter-spacing: -.005em; font-weight: 600; margin-bottom: 6px; font-family: var(--f-display); }
.loc-opt .addr { font-family: var(--f-body); font-size: 13px; color: var(--muted); letter-spacing: .01em; line-height: 1.5; }
.loc-opt .phone { font-family: var(--f-mono); font-size: 12px; color: var(--red); margin-top: 8px; letter-spacing: .04em; font-weight: 500; }
@media (max-width: 700px) { .loc-pick { grid-template-columns: 1fr; } }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  font-family: var(--f-mono);
}
.cal-day .dow { font-size: 9px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; font-weight: 500; }
.cal-day .dom { font-size: 18px; font-weight: 700; }
.cal-day:hover:not(.disabled) { border-color: var(--rule-strong); }
.cal-day.selected { background: var(--red); border-color: var(--red); color: var(--white); }
.cal-day.selected .dow { color: rgba(255,255,255,.7); }
.cal-day.disabled { opacity: .25; cursor: not-allowed; }
.cal-day.closed { background: rgba(255,255,255,.02); color: var(--muted); }

.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.time-slot {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px 8px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  text-align: center; cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.time-slot:hover { border-color: var(--rule-strong); }
.time-slot.selected { background: var(--red); border-color: var(--red); color: var(--white); }
.time-slot.taken { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

/* Layout — main column + side rail (3D viewer + summary) */
.book-layout {
  display: grid; grid-template-columns: 1fr 400px; gap: 48px;
  align-items: start;
}
.side-rail {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 18px;
}

/* 3D viewer panel */
.car-viewer {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #15171C 0%, #0A0A0C 100%);
  overflow: hidden;
}
.car-viewer-canvas-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(215,35,39,.10), transparent 70%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.04), transparent 60%);
  cursor: grab;
}
.car-viewer-canvas-wrap:active { cursor: grabbing; }
.car-viewer canvas { width: 100% !important; height: 100% !important; }
.car-viewer-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); pointer-events: none; font-weight: 500;
  background: rgba(0,0,0,.4); padding: 5px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.car-viewer-controls {
  padding: 20px 22px;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
}
.car-control-row {
  display: flex; flex-direction: column; gap: 10px;
}
.car-control-row > .row-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.car-control-row > .row-label .row-val { color: var(--red); }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  position: relative;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.35);
}
.swatch:hover { transform: scale(1.1); }
.swatch.selected { border-color: var(--white); transform: scale(1.1); }

.vlt-slider {
  display: flex; align-items: center; gap: 8px;
}
.vlt-stops { display: flex; gap: 6px; flex: 1; }
.vlt-stop {
  flex: 1; padding: 8px 4px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 10px; text-align: center;
  cursor: pointer; transition: all var(--t-fast) var(--ease); font-weight: 500;
  color: var(--muted);
}
.vlt-stop:hover { border-color: var(--rule-strong); color: var(--fg); }
.vlt-stop.selected { background: var(--red); border-color: var(--red); color: var(--white); }

/* Summary rail (now sits below 3D viewer) */
.summary-rail {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}
.summary-rail h4 {
  font-size: 14px; font-family: var(--f-mono); letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500; margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; font-size: 13px;
  gap: 12px;
}
.summary-row .k { color: var(--muted); font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.summary-row .v { color: var(--fg); text-align: right; font-weight: 500; }
.summary-total {
  border-top: 1px solid var(--rule);
  padding-top: 18px; margin-top: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.summary-total .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.summary-total .v { font-family: var(--f-display); font-size: 30px; font-weight: 700; color: var(--red); }

@media (max-width: 1180px) {
  .book-layout { grid-template-columns: 1fr; }
  .side-rail { position: static; }
  .car-viewer-canvas-wrap { aspect-ratio: 16/10; }
}

/* Confirmation */
.confirm {
  text-align: center;
  padding: 60px 0;
  max-width: 640px;
  margin: 0 auto;
}
.confirm .check {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: grid; place-items: center;
  margin: 0 auto 28px;
  font-size: 40px; font-weight: 700;
}
.confirm h2 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 44px); }
.confirm .conf-num {
  font-family: var(--f-mono);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px;
  margin: 32px 0;
  letter-spacing: .14em;
}
