/* ==========================================================================
   SAB Booking V2 – Uber-ish UI (scoped so it won’t break the main website)
   File: public/css/book-now-v2.css
   NOTE: All styles are scoped under .sab-v2-page to avoid site-wide conflicts.
   ========================================================================== */

/* ---------- Root tokens ---------- */
.sab-v2-page {
  --bg: #0b0f14;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.09);
  --stroke: rgba(255,255,255,0.12);
  --stroke-2: rgba(255,255,255,0.18);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --muted-2: rgba(255,255,255,0.45);

  --shadow: 0 18px 50px rgba(0,0,0,0.45);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.35);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --gap: 18px;
  --gap-sm: 12px;

  --accent: #2dd4bf; /* teal */
  --accent-2: #4f46e5; /* indigo */
  --warn: #f59e0b;
  --good: #22c55e;

  --btn: rgba(255,255,255,0.10);
  --btn-hover: rgba(255,255,255,0.14);
  --btn-active: rgba(255,255,255,0.18);

  --primary: #22c55e;  /* Continue */
  --primary-hover: #16a34a;

  --focus: 0 0 0 3px rgba(45,212,191,0.25);

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* ---------- Hard scope reset (only inside sab-v2-page) ---------- */
.sab-v2-page,
.sab-v2-page * { box-sizing: border-box; }

.sab-v2-page h1, .sab-v2-page h2, .sab-v2-page h3, .sab-v2-page h4, .sab-v2-page p {
  margin: 0;
}

.sab-v2-page a { color: inherit; text-decoration: none; }
.sab-v2-page img { max-width: 100%; display: block; }

.sab-v2-page button,
.sab-v2-page input,
.sab-v2-page select,
.sab-v2-page textarea {
  font: inherit;
}

/* ---------- Page background ---------- */
.sab-v2-page {
  min-height: 100vh;
  padding: 26px 16px 90px; /* bottom padding keeps it above your sticky footer bar */
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(79,70,229,0.22), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(45,212,191,0.18), transparent 55%),
    linear-gradient(180deg, #070a0f 0%, #0b0f14 60%, #0b0f14 100%);
}

/* If your blade sets an inline background image on a wrapper (like you did before),
   this overlay keeps it readable and Uber-ish */
.sab-v2-page .sab-shell {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.sab-v2-page .sab-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.80) 100%);
  pointer-events: none;
}

/* container sits above overlay */
.sab-v2-page .booking-v2-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  min-height: 560px;
}

/* ---------- Left summary panel ---------- */
.sab-v2-page .booking-v2-left {
  padding: 26px 22px;
  border-right: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(900px 450px at 20% 0%, rgba(255,255,255,0.08), transparent 55%),
    rgba(255,255,255,0.04);
}

.sab-v2-page .summary-title {
  font-size: 44px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.sab-v2-page .summary-item {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  margin-bottom: 12px;
}

.sab-v2-page .summary-item span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.sab-v2-page .summary-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
}

.sab-v2-page .summary-total {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.sab-v2-page .summary-total span {
  font-size: 18px;
  color: var(--muted);
}

.sab-v2-page .summary-total strong {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ---------- Right step panel ---------- */
.sab-v2-page .booking-v2-right {
  padding: 26px 22px;
  background:
    radial-gradient(900px 450px at 80% 10%, rgba(255,255,255,0.08), transparent 55%),
    rgba(255,255,255,0.03);
}

.sab-v2-page .step-title {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* ---------- Grids / option cards (Area, Vehicle, etc.) ---------- */
.sab-v2-page .area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

/* Make ALL buttons look good even if site CSS tries to override */
.sab-v2-page button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 14px;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.sab-v2-page button:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

.sab-v2-page button:active { transform: translateY(0px) scale(0.99); }
.sab-v2-page button:focus { outline: none; box-shadow: var(--focus), inset 0 1px 0 rgba(255,255,255,0.06); }

/* Area card specifics */
.sab-v2-page .area-card {
  min-height: 52px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.sab-v2-page .area-card.active {
  background: linear-gradient(180deg, rgba(34,197,94,0.95) 0%, rgba(22,163,74,0.95) 100%);
  border-color: rgba(34,197,94,0.65);
  color: #06210f;
  box-shadow: 0 10px 25px rgba(34,197,94,0.20), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* ---------- Primary / secondary actions (Back / Continue) ---------- */
.sab-v2-page .actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.sab-v2-page .btn {
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
}

.sab-v2-page .btn-secondary {
  background: rgba(255,255,255,0.08);
}

.sab-v2-page .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.sab-v2-page .btn-primary {
  background: linear-gradient(180deg, rgba(34,197,94,0.98) 0%, rgba(22,163,74,0.98) 100%);
  border-color: rgba(34,197,94,0.60);
  color: #06210f;
}

.sab-v2-page .btn-primary:hover {
  background: linear-gradient(180deg, rgba(34,197,94,1) 0%, rgba(21,128,61,1) 100%);
}

/* If you haven’t added .btn classes yet, style common ids/names safely */
.sab-v2-page button.continue,
.sab-v2-page button[type="submit"] {
  background: linear-gradient(180deg, rgba(34,197,94,0.98) 0%, rgba(22,163,74,0.98) 100%);
  border-color: rgba(34,197,94,0.60);
  color: #06210f;
  font-weight: 900;
}

.sab-v2-page button.back {
  background: rgba(255,255,255,0.08);
}

/* ---------- Forms for later steps (vehicle details, promo, contact, etc.) ---------- */
.sab-v2-page .field {
  margin-top: 14px;
}

.sab-v2-page .label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.sab-v2-page .input,
.sab-v2-page input[type="text"],
.sab-v2-page input[type="email"],
.sab-v2-page input[type="tel"],
.sab-v2-page input[type="number"],
.sab-v2-page select,
.sab-v2-page textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.sab-v2-page select {
  cursor: pointer;
}

.sab-v2-page .help {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- Step cards for later screens ---------- */
.sab-v2-page .step-card {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-2);
}

.sab-v2-page .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sab-v2-page .pill {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 14px;
}

.sab-v2-page .pill.active {
  background: rgba(45,212,191,0.18);
  border-color: rgba(45,212,191,0.40);
}

/* ---------- Responsive (mobile Uber-like stacked panels) ---------- */
@media (max-width: 980px) {
  .sab-v2-page .booking-v2-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sab-v2-page .booking-v2-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .sab-v2-page .summary-title,
  .sab-v2-page .step-title {
    font-size: 38px;
  }

  .sab-v2-page .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .sab-v2-page {
    padding: 18px 12px 90px;
  }

  .sab-v2-page .summary-title,
  .sab-v2-page .step-title {
    font-size: 34px;
  }

  .sab-v2-page .summary-total strong {
    font-size: 38px;
  }

  .sab-v2-page .area-grid {
    grid-template-columns: 1fr;
  }

  .sab-v2-page .booking-v2-left,
  .sab-v2-page .booking-v2-right {
    padding: 18px 16px;
  }
}



/* ---------- Optional: hide footer on this page ONLY if needed ----------
   If your site footer is messing with the layout, you can hide it ONLY on this page
   by wrapping the booking page content in <main class="sab-v2-page"> (you already do)
   and using a strong selector like below.

   Uncomment if you want the booking UI to be the only thing on screen.

.sab-v2-page ~ footer,
.sab-v2-page footer { display:none !important; }
----------------------------------------------------------------------- */

/* =========================================================
   SAB Booking V2 – LIGHT THEME OVERRIDES (paste at bottom)
   Keeps your existing layout intact; only changes look/feel
   ========================================================= */

:root{
  --sab-green:#2f5f1f;
  --sab-green-2:#3e7a29;
  --sab-yellow:#ffe04a;
  --sab-yellow-2:#ffd21f;
}

/* Flip background to light + readable */
body{
  background: #f3f4f6 !important;
  color: #111827 !important;
}

/* Your glass panels become white cards */
.card, .panel, .box, .summary, .left-panel, .right-panel, .section,
[class*="panel"], [class*="card"]{
  background: #ffffff !important;
  border: 1px solid rgba(16,24,40,0.12) !important;
  box-shadow: 0 10px 25px rgba(16,24,40,0.12) !important;
  border-radius: 18px !important;
}

/* Headings like the mock */
h1, h2{
  color:#111827 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}
p, .muted, small{
  color:#6b7280 !important;
}

/* Option buttons/cards (area/time) look like list rows */
button, .btn, .option, .choice, .area-item, .slot, .time-slot,
.select-row, .slot-row{
  border-radius: 14px !important;
}

/* Neutral option style */
.option, .choice, .area-item, .slot-row, .time-slot, .select-row{
  background: linear-gradient(180deg,#ffffff,#f7f7f8) !important;
  border: 1px solid rgba(16,24,40,0.12) !important;
  box-shadow: 0 8px 18px rgba(16,24,40,0.08) !important;
  color:#111827 !important;
  min-height: 54px !important;
}

/* Selected = SAB green */
.selected, .active, .is-selected, [aria-selected="true"]{
  background: linear-gradient(180deg,var(--sab-green-2),var(--sab-green)) !important;
  color:#ffffff !important;
  border-color: rgba(0,0,0,0.10) !important;
}

/* Primary CTA buttons become SAB green, not neon */
.btn-primary, .primary-btn, .next, .btn-next, .cta, button.primary, button[type="submit"]{
  background: linear-gradient(180deg,var(--sab-green-2),var(--sab-green)) !important;
  color:#ffffff !important;
  box-shadow: 0 12px 24px rgba(47,95,31,0.28) !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  min-height: 52px !important;
}

/* Deal / total bars become yellow like the mock (only if you have these classes) */
.deal, .deal-card, .online-special, .hot-deal, .total, .total-bar, .summary-total{
  background: linear-gradient(180deg,var(--sab-yellow),var(--sab-yellow-2)) !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  box-shadow: 0 14px 38px rgba(16,24,40,0.16) !important;
}

/* Inputs clean */
input, select, textarea{
  background:#fff !important;
  color:#111827 !important;
  border: 1px solid rgba(16,24,40,0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(16,24,40,0.06) !important;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(47,95,31,0.55) !important;
  box-shadow: 0 0 0 4px rgba(47,95,31,0.14) !important;
}

/* Sticky bottom CTA bar (yellow) IF your page already has a wrapper */
.bottom-bar, .sticky-cta, .footer-cta, .cta-bar{
  background: linear-gradient(180deg, rgba(255,224,74,0.35), rgba(255,224,74,0.95)) !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 -10px 25px rgba(16,24,40,0.12) !important;
}
