/* ═══════════════════════════════════════════════════════════════
   BOOKING PAGE STYLES
═══════════════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.booking-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}

.booking-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--gold-subtle) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── BOOKING TABS ───────────────────────────────────────────────────────── */
.booking-tabs-wrap {
  max-width: 860px; margin: 0 auto; padding: 0 1.5rem;
}

.booking-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  margin-top: 2.5rem;
}

.tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 1rem 0.5rem;
  background: transparent; border: none; border-right: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--text-secondary); background: var(--bg-elevated); }
.tab-btn.active { color: var(--gold); background: var(--bg-card); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: var(--gold); border-radius: 2px 2px 0 0;
}

.tab-btn svg { width: 20px; height: 20px; opacity: 0.7; transition: opacity 0.2s; }
.tab-btn.active svg { opacity: 1; }
.tab-label { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

/* ─── FORM PANEL ─────────────────────────────────────────────────────────── */
.form-panel {
  max-width: 860px; margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.form-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 2rem;
}

.booking-panel { display: none; }
.booking-panel.active { display: block; }

/* ─── VEHICLES GRID ──────────────────────────────────────────────────────── */
.vehicles-section { margin: 1.75rem 0 0; }
.vehicles-section-label {
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 0.85rem;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ─── VEHICLE CARD ────────────────────────────────────────────────────────── */
.vehicle-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.vehicle-card:hover {
  border-color: var(--gold-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.vehicle-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(201,168,76,0.15);
}

/* Selected checkmark badge */
.vehicle-card.selected .vc-check {
  opacity: 1; transform: scale(1);
}
.vc-check {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--bg-base);
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.6);
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

/* ─── IMAGE CAROUSEL AREA ─────────────────────────────────────────────────── */
.vc-images {
  position: relative;
  width: 100%; height: 140px;
  background: var(--bg-card);
  overflow: hidden; flex-shrink: 0;
}

.vc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: zoom-in;
}
.vc-img.active { opacity: 1; }

.vc-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; opacity: 0.3;
}

/* Prev/next arrows */
.vc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.12);
  color: white; font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
  z-index: 2;
}
.vc-arrow-prev { left: 6px; }
.vc-arrow-next { right: 6px; }
.vc-images:hover .vc-arrow { opacity: 1; }

/* Dot indicators */
.vc-dots {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 2;
}
.vc-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: background 0.2s, transform 0.2s;
}
.vc-dot.active { background: var(--gold); transform: scale(1.25); }

/* Image count badge */
.vc-count {
  position: absolute; top: 7px; left: 8px; z-index: 2;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 2px 7px;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}

/* Gallery expand button */
.vc-gallery-btn {
  position: absolute; bottom: 7px; right: 8px; z-index: 2;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 3px; padding: 3px 7px;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.vc-images:hover .vc-gallery-btn { opacity: 1; }

/* ─── CARD BODY ───────────────────────────────────────────────────────────── */
.vc-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex; flex-direction: column; gap: 3px;
  flex: 1;
}

.vc-name {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-primary);
}
.vc-meta {
  font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.04em;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 2px;
}
.vc-meta-item { display: flex; align-items: center; gap: 3px; }
.vc-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: var(--gold);
  margin-top: 6px; display: block; line-height: 1;
}
.vc-price-label {
  font-size: 0.52rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 2px;
}

/* Features pills */
.vc-features {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
  margin-top: 6px;
}
.vc-feature {
  font-size: 0.53rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 2px;
  background: var(--gold-subtle); border: 1px solid var(--gold-border);
  color: var(--gold); white-space: nowrap;
}

/* ─── BOOKING GALLERY LIGHTBOX ────────────────────────────────────────────── */
.booking-gallery-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.96);
  display: none; align-items: center; justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(8px);
  padding: 1rem;
}
.booking-gallery-overlay.open { display: flex; }

.bgo-header {
  width: 100%; max-width: 900px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-shrink: 0;
}
.bgo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300; color: var(--text-primary);
}
.bgo-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.bgo-close:hover { background: rgba(255,255,255,0.18); }

.bgo-main {
  position: relative; width: 100%; max-width: 900px;
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.bgo-img {
  max-width: 100%; max-height: calc(100vh - 220px);
  object-fit: contain; border-radius: 4px;
  display: block;
}
.bgo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.bgo-arrow:hover { background: rgba(255,255,255,0.15); }
.bgo-arrow-prev { left: -52px; }
.bgo-arrow-next { right: -52px; }

.bgo-counter {
  font-size: 0.68rem; letter-spacing: 0.2em; color: var(--text-muted);
  text-align: center; margin-top: 0.75rem; flex-shrink: 0;
}

.bgo-thumbs {
  display: flex; gap: 8px; margin-top: 0.85rem;
  overflow-x: auto; max-width: 900px; width: 100%;
  flex-shrink: 0; padding-bottom: 4px;
}
.bgo-thumbs::-webkit-scrollbar { height: 3px; }
.bgo-thumbs::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.bgo-thumb {
  width: 72px; height: 52px; flex-shrink: 0;
  border-radius: 3px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55; transition: all 0.15s;
}
.bgo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bgo-thumb.active { border-color: var(--gold); opacity: 1; }
.bgo-thumb:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .vehicles-grid { grid-template-columns: 1fr 1fr; }
  .bgo-arrow-prev { left: 4px; }
  .bgo-arrow-next { right: 4px; }
  .vc-images { height: 120px; }
}
@media (max-width: 480px) {
  .vehicles-grid { grid-template-columns: 1fr; }
}

/* ─── QUOTE BOX ──────────────────────────────────────────────────────────── */
.quote-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
}
.quote-label {
  font-size: 0.58rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-secondary);
}
.quote-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.quote-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300; color: var(--gold);
  line-height: 1;
}

/* ─── STRIPE SECTION ─────────────────────────────────────────────────────── */
.stripe-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stripe-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.stripe-title {
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-secondary);
}

/* Stripe Elements container */
#stripe-card-element,
.stripe-element-wrap {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
  min-height: 42px;
}
#stripe-card-element.focused,
.stripe-element-wrap:focus-within { border-color: var(--gold-dim); }

.stripe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }

#stripe-card-errors {
  color: var(--color-error);
  font-size: 0.72rem;
  margin-top: 0.5rem;
  min-height: 20px;
}

/* ─── BOOK BUTTON ─────────────────────────────────────────────────────────── */
.btn-book {
  width: 100%; margin-top: 1.25rem;
  padding: 1.1rem;
  background: var(--gold); border: none; border-radius: 3px;
  color: var(--bg-base);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-book:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-book:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.secure-note {
  text-align: center; font-size: 0.57rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 0.75rem;
}

/* ─── QUOTE CALC ─────────────────────────────────────────────────────────── */
.calc-display {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  padding: 2rem; text-align: center; margin: 1.5rem 0;
}
.calc-estimate-label {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 0.5rem;
}
.calc-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300; color: var(--gold); line-height: 1;
}
.calc-breakdown {
  font-size: 0.68rem; color: var(--text-muted);
  letter-spacing: 0.05em; margin-top: 0.5rem;
}
.calc-disclaimer {
  font-size: 0.58rem; color: var(--text-muted);
  letter-spacing: 0.08em; margin-top: 0.75rem;
}

/* ─── SUCCESS SCREEN ─────────────────────────────────────────────────────── */
.success-screen {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg-overlay);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 2rem;
  backdrop-filter: blur(12px);
}
.success-screen.show { display: flex; }

.success-ring {
  width: 90px; height: 90px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2.5rem;
  animation: ringPulse 2s ease infinite;
}
.success-ring svg { color: var(--gold); }

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 0 16px rgba(201,168,76,0); }
}

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300; color: var(--text-primary); margin-bottom: 0.75rem;
}
.success-id {
  font-size: 0.68rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.success-sub {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .vehicles-grid { grid-template-columns: 1fr 1fr; }
  .stripe-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .vehicles-grid { grid-template-columns: 1fr; }
  .form-body { padding: 1.25rem; }
}
