/* Checkout: the same Crystal Clear world as the homepage. A cinematic interior-video opening,
   breathing carbon panels that light up toward the cursor, carbon controls, a molten-obsidian
   estimate card, smooth scrolling and the wheel cursor (cc-immersive.js / cc-molten.js). */
@font-face { font-family: SpaceGrotesk; src: url("/space-grotesk.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

body { background: #030609 !important; font-family: SpaceGrotesk, Arial, sans-serif; }

/* ---------- Header ---------- */
header {
  position: sticky !important;
  top: 0;
  z-index: 50 !important;
  background: rgba(3, 6, 9, .78) !important;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border-bottom: 1px solid rgba(160, 200, 230, .14) !important;
}
header .nav { min-height: 76px; }
header .brand { transform: none !important; text-shadow: none !important; display: flex; align-items: center; }
header .brand img { width: 64px !important; height: 64px !important; object-fit: contain; }
header .subtle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(150, 200, 255, .32);
  color: #e8f1f7;
  font-size: 13px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
header .subtle:hover { border-color: rgba(70, 125, 210, .75); box-shadow: 0 0 22px rgba(20, 60, 150, .5); }

/* ---------- Cinematic opening ---------- */
.checkout-main { position: relative; isolation: isolate; }
.cc-co-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(78svh, 720px);
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.cc-co-hero video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 50% 40%; }
.cc-co-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 9, .9) 0%, rgba(3, 6, 9, .55) 45%, rgba(3, 6, 9, .25) 100%),
    linear-gradient(to top, #030609 0%, rgba(3, 6, 9, 0) 45%);
}
.checkout-heading { padding: clamp(80px, 16svh, 170px) 0 clamp(40px, 7svh, 80px) !important; position: relative; }
.checkout-heading h1 { font-family: SpaceGrotesk, Arial, sans-serif; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.checkout-heading p:not(.kicker) { color: #e6eef4 !important; font-size: 17px; }

/* ---------- Panels: base layer under the breathing carbon (cc-immersive.css) ---------- */
:is(.checkout-selection, .extras-collapse, .booking-form, .review-panel) {
  position: relative;
  border-radius: 20px !important;
  border: 1px solid rgba(150, 205, 255, .2) !important;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 190, 255, calc(.12 + var(--near, 0) * .55)), transparent 70%),
    linear-gradient(160deg, rgba(120, 170, 220, .2), rgba(40, 60, 80, .14) 50%, rgba(120, 170, 220, .1)) !important;
  background-color: #0a1016 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.booking-form { padding: clamp(18px, 3vw, 30px) !important; }
.extras-collapse { padding: 18px 20px; }
.review-panel { padding: clamp(20px, 3vw, 34px) !important; margin-top: 18px; }

/* Inputs: dark glass with a blue focus glow */
.booking-form :is(input:not([type="checkbox"]), select, textarea), .checkout-selection select {
  background: rgba(4, 8, 13, .88) !important;
  border: 1px solid rgba(150, 205, 255, .26) !important;
  color: #f2f7fb !important;
  transition: border-color .25s ease, box-shadow .3s ease;
}
.booking-form :is(input, select, textarea):focus, .checkout-selection select:focus {
  outline: none !important;
  border-color: rgba(110, 190, 255, .85) !important;
  box-shadow: 0 0 0 3px rgba(47, 140, 255, .22), 0 0 24px rgba(47, 140, 255, .25) !important;
}
.booking-form label, .checkout-selection label { color: #dbe6ee !important; }

/* Add-on choices: glowing glass tiles */
.addon {
  position: relative;
  border-radius: 16px !important;
  border: 1px solid rgba(150, 205, 255, calc(.18 + var(--near, 0) * .4)) !important;
  background:
    radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 190, 255, calc(.1 + var(--near, 0) * .5)), transparent 70%) !important;
  background-color: #0a1016 !important;
  transition: border-color .25s ease, box-shadow .3s ease, transform .3s ease;
}
.addon:has(input:checked) {
  border-color: rgba(110, 190, 255, .9) !important;
  box-shadow: 0 0 0 1px rgba(110, 190, 255, .5), 0 0 30px rgba(47, 140, 255, .35);
}
.addon strong { color: #fff !important; }
.addon em { color: #9fd6ff !important; }
.addon small { color: #cfdbe5 !important; }

/* ---------- The estimate card: molten obsidian ring (cc-molten.js) ---------- */
html.cc-molten-on .cart-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 0 0 1px rgba(120, 190, 255, .2), 0 24px 60px rgba(0, 0, 0, .55) !important;
}
html.cc-molten-on .cart-summary::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(150, 210, 255, .1), transparent 40%), rgba(4, 7, 11, .9);
  z-index: 0;
  pointer-events: none;
}
html.cc-molten-on .cart-summary > :not(.cc-molten) { position: relative; z-index: 1; }
.cart-grand strong { color: #fff !important; text-shadow: 0 0 22px rgba(47, 140, 255, .55); font-size: 1.6em; }

/* ---------- Footer ---------- */
footer { background: #030609 !important; border-top: 1px solid rgba(160, 200, 230, .12); }

/* Logo back in view (an older rule pushed the brand off-canvas) */
header .brand { position: static !important; inset: auto !important; margin: 0 !important; opacity: 1 !important; visibility: visible !important; }
header .brand img { position: static !important; display: block; }

/* ---------- The builder's choices: breathing carbon, glowing when chosen ---------- */
:is(.vehicle-card, .tier-card, .condition-card, .upgrade-card) {
  border: 1px solid rgba(150, 205, 255, calc(.2 + var(--near, 0) * .45)) !important;
  background:
    radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 190, 255, calc(.1 + var(--near, 0) * .55)), transparent 70%) !important;
  background-color: #0a1016 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transition: border-color .25s ease, box-shadow .3s ease !important;
}
.upgrade-card .addon { background: transparent !important; border: 0 !important; }
:is(.vehicle-card, .tier-card)[aria-pressed="true"],
.condition-card[aria-pressed="true"],
.upgrade-card:has(input:checked) {
  border-color: rgba(120, 200, 255, .95) !important;
  box-shadow: 0 0 0 1px rgba(110, 190, 255, .6), 0 0 34px rgba(47, 140, 255, .4), 0 16px 40px rgba(0, 0, 0, .45) !important;
}
:is(.vehicle-card, .tier-card, .condition-card) :is(strong, h3) { color: #fff !important; }
:is(.tier-card, .condition-card) p, .step-description { color: #d3dfe8 !important; }

/* Step bar: the current step carries a glowing underline */
.step-nav button { color: #b8c7d3 !important; transition: color .3s ease; }
.step-nav button[aria-current] { color: #ffffff !important; border-color: #2f8cff !important; box-shadow: 0 6px 14px -8px rgba(47, 140, 255, .9); }
.step-nav button span { color: #a9dcff !important; }

/* Sticky estimate bar */
.sticky-breakdown {
  background: rgba(4, 7, 11, .94) !important;
  border-top: 1px solid rgba(120, 190, 255, .28) !important;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, .5), 0 -1px 18px rgba(47, 140, 255, .18) !important;
  backdrop-filter: none !important;
}
.config-total, .sticky-breakdown strong { color: #fff !important; text-shadow: 0 0 18px rgba(47, 140, 255, .5); }
