/* ============================================================
   A7 RENT — Request a Quote wizard
   Loads after tokens.css + site.css
   ============================================================ */

.quote-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 48px; align-items: start; }

/* ---------------- STEPPER ---------------- */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 48px; }
.stepper .step-node { display: flex; align-items: center; gap: 14px; }
.stepper .dot {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  background: var(--ink-800); border: 1.5px solid var(--line); color: var(--fg-faint);
  transition: all 0.4s var(--ease-out);
}
.stepper .meta { display: flex; flex-direction: column; gap: 2px; }
.stepper .meta .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--fg-faint); text-transform: uppercase; }
.stepper .meta .v { font-family: var(--font-display); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: -0.01em; color: var(--fg-muted); transition: color 0.3s; }
.stepper .bar { flex: 1; height: 1.5px; background: var(--line); margin: 0 18px; position: relative; overflow: hidden; }
.stepper .bar::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--red); transition: width 0.5s var(--ease-out); }

.stepper .step-node.active .dot { border-color: var(--red); color: #fff; background: var(--red); box-shadow: var(--glow-red); }
.stepper .step-node.active .meta .v { color: var(--fg); }
.stepper .step-node.done .dot { border-color: var(--red); color: var(--red); background: oklch(0.62 0.235 25 / 0.12); }
.stepper .step-node.done .meta .v { color: var(--fg-muted); }
.stepper .bar.filled::after { width: 100%; }

/* ---------------- STEP PANELS ---------------- */
.step-panel { display: none; animation: stepIn 0.5s var(--ease-out); }
.step-panel.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step-panel { animation: none; } }

.step-lead { color: var(--fg-muted); font-size: 15px; line-height: 1.6; max-width: 52ch; margin: 0 0 32px; }
.step-num-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--red); text-transform: uppercase; }
.step-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; margin: 10px 0 14px; }

/* ---------------- FORM CONTROLS ---------------- */
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.field > label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--fg); }
.field > label .req { color: var(--red); margin-left: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 .field { margin-bottom: 0; }

.ctrl {
  font-family: var(--font-sans); font-size: 15px; color: var(--fg);
  background: var(--ink-800); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; width: 100%; transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
  -webkit-appearance: none; appearance: none;
}
.ctrl::placeholder { color: var(--fg-faint); }
.ctrl:hover { border-color: var(--ink-700); }
.ctrl:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px oklch(0.62 0.235 25 / 0.18); background: var(--ink-850); }
.ctrl:disabled { opacity: 0.45; cursor: not-allowed; }
textarea.ctrl { resize: vertical; min-height: 96px; line-height: 1.55; }

/* select with chevron */
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--fg-faint); border-bottom: 1.5px solid var(--fg-faint); transform: translateY(-65%) rotate(45deg); pointer-events: none; transition: border-color 0.25s; }
.select-wrap:hover::after { border-color: var(--fg-muted); }
select.ctrl { cursor: pointer; padding-right: 40px; }
select.ctrl option { background: var(--ink-850); color: var(--fg); }

/* date-time native */
input[type="datetime-local"].ctrl, input[type="date"].ctrl { color-scheme: dark; cursor: pointer; }

/* error state */
.field.err .ctrl, .field.err .select-wrap .ctrl { border-color: var(--red); }
.field-err { font-family: var(--font-sans); font-size: 12.5px; color: var(--red-bright); display: none; }
.field.err .field-err { display: block; }

/* phone group */
.phone-group { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.phone-group .prefix { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--ink-800); border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 15px; color: var(--fg-muted); }

/* ---------------- SEGMENTED TOGGLE ---------------- */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--ink-800); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 4px; margin-bottom: 28px; }
.segmented button {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--fg-muted); background: transparent; border: none; border-radius: 6px; padding: 14px 18px; cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.segmented button:hover { color: var(--fg); }
.segmented button.on { color: #fff; background: var(--red); box-shadow: 0 4px 14px oklch(0.62 0.235 25 / 0.4); }

/* ---------------- ADD-CAR ROW ---------------- */
.add-car-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 14px; align-items: end; }
.add-car-grid .field { margin-bottom: 0; }
.btn-add {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  color: var(--red); background: transparent; border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 13px 20px; cursor: pointer;
  transition: all 0.25s var(--ease-out); width: 100%; justify-content: center;
}
.btn-add:hover { border-color: var(--red); background: oklch(0.62 0.235 25 / 0.08); }
.btn-add .plus { font-size: 18px; line-height: 1; }
.add-car-grid .btn-add { width: auto; padding: 14px 22px; white-space: nowrap; }

/* selected car chips */
.selected-cars { display: flex; flex-direction: column; gap: 12px; margin: 26px 0; }
.sel-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--fg-faint); text-transform: uppercase; margin-bottom: 4px; }
.car-chip {
  display: flex; align-items: center; gap: 16px; background: var(--ink-800); border: 1px solid var(--line);
  border-left: 3px solid var(--red); border-radius: var(--r-sm); padding: 14px 16px;
  animation: chipIn 0.4s var(--ease-out);
}
@keyframes chipIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.car-chip .thumb { width: 64px; height: 42px; border-radius: 4px; flex-shrink: 0; }
.car-chip .info { flex: 1; min-width: 0; }
.car-chip .info .nm { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.car-chip .info .mk { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-faint); text-transform: uppercase; }
.car-chip .rate { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--red); white-space: nowrap; }
.car-chip .rate span { font-family: var(--font-mono); font-size: 9px; color: var(--fg-faint); letter-spacing: 0.1em; display: block; text-align: right; }
.car-chip .rm { background: none; border: none; color: var(--fg-faint); cursor: pointer; padding: 6px; border-radius: 4px; transition: color 0.2s, background 0.2s; flex-shrink: 0; }
.car-chip .rm:hover { color: var(--red); background: oklch(0.62 0.235 25 / 0.12); }

/* additional driver block */
.add-driver-block { border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; margin: 8px 0 26px; background: var(--ink-850); display: none; animation: chipIn 0.4s var(--ease-out); }
.add-driver-block.show { display: block; }
.add-driver-block .ad-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.add-driver-block .ad-head h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; margin: 0; }

/* checkbox */
.check-row { display: flex; align-items: flex-start; gap: 13px; margin: 8px 0 30px; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row .box { width: 22px; height: 22px; border: 1.5px solid var(--line); border-radius: 5px; flex-shrink: 0; display: grid; place-items: center; transition: all 0.2s var(--ease-out); margin-top: 1px; background: var(--ink-800); }
.check-row .box svg { opacity: 0; transform: scale(0.5); transition: all 0.2s var(--ease-out); }
.check-row input:checked + .box { background: var(--red); border-color: var(--red); }
.check-row input:checked + .box svg { opacity: 1; transform: scale(1); }
.check-row input:focus-visible + .box { box-shadow: 0 0 0 3px oklch(0.62 0.235 25 / 0.25); }
.check-row .txt { font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.check-row .txt a { color: var(--red); text-decoration: none; }
.check-row .txt a:hover { text-decoration: underline; }
.check-row.err .box { border-color: var(--red); }

/* nav buttons */
.step-actions { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.step-actions .spacer { flex: 1; }
.disclaimer { font-size: 13px; color: var(--fg-faint); line-height: 1.5; margin: 0 0 22px; padding-left: 14px; border-left: 2px solid var(--line); }

/* ---------------- SUMMARY PANEL ---------------- */
.summary { position: sticky; top: 96px; background: var(--ink-850); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.summary .sum-head { padding: 24px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.summary .sum-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; margin: 0; }
.summary .sum-head .tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--red); text-transform: uppercase; border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; }
.summary .sum-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 22px; }
.sum-group .sum-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--fg-faint); text-transform: uppercase; margin-bottom: 10px; }
.sum-line { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 5px 0; }
.sum-line .lbl { color: var(--fg-muted); }
.sum-line .val { color: var(--fg); font-weight: 600; text-align: right; }
.sum-empty { color: var(--fg-faint); font-size: 13.5px; font-style: italic; }
.sum-cars { display: flex; flex-direction: column; gap: 8px; }
.sum-car { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-car .cn { color: var(--fg); font-weight: 600; }
.sum-car .cp { color: var(--red); font-weight: 600; white-space: nowrap; }
.summary .sum-foot { padding: 22px 26px; border-top: 1px solid var(--line); background: var(--ink-800); }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; }
.sum-total .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-faint); text-transform: uppercase; }
.sum-total .amt { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; }
.sum-total .amt .u { color: var(--red); }
.sum-total .per { font-family: var(--font-mono); font-size: 10px; color: var(--fg-faint); letter-spacing: 0.1em; }
.sum-foot .note { font-size: 12px; color: var(--fg-faint); line-height: 1.5; margin: 14px 0 0; }

/* ---------------- SUCCESS ---------------- */
.success { display: none; text-align: center; padding: 40px 0; animation: stepIn 0.6s var(--ease-out); }
.success.show { display: block; }
.success .tick { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 28px; display: grid; place-items: center; background: oklch(0.62 0.235 25 / 0.12); border: 2px solid var(--red); box-shadow: var(--glow-red); }
.success h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 16px; line-height: 0.95; }
.success p { color: var(--fg-muted); font-size: 16px; line-height: 1.6; max-width: 44ch; margin: 0 auto 32px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .quote-layout { grid-template-columns: 1fr; gap: 36px; }
  .summary { position: static; }
  .add-car-grid { grid-template-columns: 1fr 1fr; }
  .add-car-grid .btn-add { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .stepper .meta { display: none; }
  .stepper .bar { margin: 0 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .add-car-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MODE TOGGLE (Car rental / Track day)
   ========================================================= */
.quote-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.qm-tab { display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer;
  background: var(--ink-850); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 16px 20px;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out); }
.qm-tab:hover { border-color: var(--fg-faint); }
.qm-tab.on { border-color: var(--red); background: oklch(0.62 0.235 25 / 0.08); }
.qm-tab .qm-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--ink-800); color: var(--fg-muted); }
.qm-tab.on .qm-ic { color: var(--red); border: 1px solid oklch(0.62 0.235 25 / 0.4); }
.qm-tab .qm-tx { display: flex; flex-direction: column; line-height: 1.25; }
.qm-tab .qm-tx b { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--fg); text-transform: uppercase; }
.qm-tab .qm-tx i { font-style: normal; font-size: 12.5px; color: var(--fg-faint); margin-top: 2px; }

/* =========================================================
   RACE IT BUILDER
   ========================================================= */
.track-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg-faint); margin: 14px 0 26px; }
.rq-cars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rq-car { position: relative; background: var(--ink-800); border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; transition: border-color .25s var(--ease-out), transform .25s var(--ease-out); display: flex; flex-direction: column; }
.rq-car:hover { border-color: var(--fg-faint); transform: translateY(-3px); }
.rq-car.sel { border-color: var(--red); }
.rq-car .rq-ph { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--ink-700); }
.rq-car .rq-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq-car .rq-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rq-car .rq-brand { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); }
.rq-car .rq-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.rq-car .rq-price { margin-top: auto; padding-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--fg); }
.rq-car .rq-price small { font-family: var(--font-sans); font-weight: 500; font-size: 11px; color: var(--fg-faint); }
/* stepper + add appear when selected */
.rq-car .rq-controls { display: none; gap: 8px; align-items: center; padding: 0 15px 15px; }
.rq-car.sel .rq-controls { display: flex; }
.rq-step { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.rq-step button { width: 34px; height: 36px; background: var(--ink-850); border: none; color: var(--fg); font-size: 18px; cursor: pointer; transition: background .15s; }
.rq-step button:hover { background: var(--ink-700); }
.rq-step .qty { min-width: 58px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--fg); }
.rq-step .qty b { font-family: var(--font-display); font-size: 16px; }
.rq-add { flex: 1; height: 38px; border: none; border-radius: var(--r-sm); background: var(--red); color: #fff;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px; cursor: pointer; transition: background .2s; }
.rq-add:hover { background: var(--red-bright); }
.rq-car .rq-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg); background: oklch(0.13 0.006 264 / 0.72); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; }

/* added experiences list */
.rq-added { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.rq-added:empty { margin-top: 0; }
.rq-chip { display: flex; align-items: center; gap: 14px; background: var(--ink-850); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 16px; }
.rq-chip .rc-nm { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.rq-chip .rc-laps { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.06em; margin-top: 2px; }
.rq-chip .rc-amt { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--fg); }
.rq-chip .rc-rm { background: none; border: none; color: var(--fg-faint); cursor: pointer; padding: 4px; transition: color .2s; }
.rq-chip .rc-rm:hover { color: var(--red); }

/* summary total */
.race-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.race-total .lbl { font-size: 13px; color: var(--fg-muted); }
.race-total .amt { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: var(--fg); }
#race-sum-list .sum-empty { color: var(--fg-faint); font-size: 13px; }
.rsl-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.rsl-row .rn { color: var(--fg); display: flex; flex-direction: column; }
.rsl-row .rsl-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-faint); letter-spacing: 0.04em; margin-top: 2px; }
.rsl-row .rp { font-family: var(--font-mono); color: var(--fg-muted); white-space: nowrap; }

@media (max-width: 720px) {
  .quote-mode { grid-template-columns: 1fr; }
  .rq-cars { grid-template-columns: 1fr; }
}

