/* =============================================================
   ROSE GOLD FINISH — Booking modal styles
   Multi-step booking flow that opens from any "Book Now" link.
   ============================================================= */

.bm-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,5,7,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  display: none;
  opacity: 0;
  transition: opacity 240ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bm-backdrop.open { display: block; }
.bm-backdrop.in { opacity: 1; }

.bm-modal {
  position: relative;
  width: min(540px, 94vw);
  margin: 32px auto;
  border-radius: 18px;
  overflow: hidden;
  background-color: #050505;
  background-image:
    linear-gradient(180deg, rgba(5,5,5,0.40), rgba(5,5,5,0.15) 35%, rgba(5,5,5,0.15) 70%, rgba(5,5,5,0.55)),
    url("../shared/black-marble-wet.jpg");
  background-size: cover, cover;
  background-position: center;
  box-shadow:
    0 30px 100px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212,168,75,0.35),
    inset 0 1px 0 rgba(244,210,122,0.18);
  color: #D0D2D8;
  transform: translateY(20px) scale(0.985);
  opacity: 0;
  transition: opacity 320ms ease, transform 320ms ease;
}
.bm-backdrop.in .bm-modal { transform: translateY(0) scale(1); opacity: 1; }

/* Checkered race-flag strips top + bottom */
.bm-modal::before,
.bm-modal::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 10px;
  pointer-events: none; z-index: 4;
  background-image:
    linear-gradient(45deg, #EFEFEF 25%, transparent 25%, transparent 75%, #EFEFEF 75%),
    linear-gradient(45deg, #EFEFEF 25%, #050507 25%, #050507 75%, #EFEFEF 75%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
  opacity: 0.92;
  box-shadow: inset 0 0 0 1px rgba(212,168,75,0.45);
}
.bm-modal::before { top: 0; }
.bm-modal::after  { bottom: 0; }

.bm-head {
  padding: 32px 28px 0;
  text-align: center;
  position: relative;
}
.bm-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: #F4D27A;
  margin-bottom: 6px;
}
.bm-title {
  font-family: 'Dancing Script', cursive;
  font-weight: 700; font-size: 44px;
  line-height: 1; margin: 0 0 12px;
  background: linear-gradient(180deg, #F8E0A0 0%, #F4D27A 22%, #D4A84B 45%, #8A6D2A 72%, #C8943A 92%, #F4D27A 100%);
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,0.95)) drop-shadow(0 1px 1px rgba(0,0,0,0.7));
}
.bm-close {
  position: absolute; top: 22px; right: 22px;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(20,16,10,0.7);
  border: 1px solid rgba(212,168,75,0.35);
  color: #F4D27A;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: transform 180ms ease, background 180ms, border-color 180ms;
}
.bm-close:hover { background: rgba(212,168,75,0.18); border-color: rgba(212,168,75,0.7); transform: rotate(90deg); }
.bm-close svg { width: 16px; height: 16px; }

/* Progress dots */
.bm-progress {
  display: flex; gap: 6px; padding: 0 28px;
  margin: 6px 0 20px;
}
.bm-progress .seg {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(212,168,75,0.18);
  transition: background 280ms ease;
}
.bm-progress .seg.done { background: linear-gradient(90deg, #F4D27A, #D4A84B); }

/* Body */
.bm-body {
  padding: 6px 28px 24px;
}
.bm-step { display: none; }
.bm-step.active { display: block; animation: bmFade 320ms ease; }
@keyframes bmFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bm-step h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 22px;
  color: #E8E8EE; margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.bm-step p.bm-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; color: #F4D27A;
  margin: 0 0 18px; font-size: 14px;
}

/* Service tier cards */
.bm-tier {
  display: block;
  width: 100%; padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(212,168,75,0.30);
  border-radius: 10px;
  background: rgba(20,16,10,0.55);
  text-align: left; cursor: pointer;
  color: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: border-color 180ms, background 180ms, transform 180ms;
}
.bm-tier:hover { border-color: rgba(244,210,122,0.7); transform: translateY(-1px); }
.bm-tier.selected {
  border-color: rgba(244,210,122,0.9);
  background: rgba(36,28,16,0.85);
  box-shadow: 0 0 0 1px rgba(244,210,122,0.4), 0 8px 24px rgba(212,168,75,0.18);
}
.bm-tier.featured { border-color: rgba(217,163,140,0.55); }
.bm-tier.featured.selected { border-color: rgba(217,163,140,0.95); box-shadow: 0 0 0 1px rgba(217,163,140,0.4), 0 8px 24px rgba(217,163,140,0.22); }
.bm-tier .ti-name {
  font-family: 'Dancing Script', cursive;
  font-weight: 700; font-size: 22px; line-height: 1;
  background: linear-gradient(180deg, #F4D27A 0%, #D4A84B 50%, #8A6D2A 100%);
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 1.2px rgba(0,0,0,0.9));
}
.bm-tier.featured .ti-name {
  background: linear-gradient(180deg, #FFE8DC 0%, #E89E80 35%, #8B4F3C 70%, #D9A38C 100%);
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.bm-tier .ti-meta { font-size: 11px; color: #B8B8BE; margin-top: 2px; letter-spacing: 0.05em; }
.bm-tier .ti-price {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #F4D27A 0%, #D4A84B 50%, #8A6D2A 100%);
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.9));
}

/* Form fields */
.bm-row { margin-bottom: 14px; }
.bm-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bm-row.split-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.bm-label {
  display: block;
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: #F4D27A; margin-bottom: 5px;
}
.bm-input,
.bm-select,
.bm-textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px;
  background: rgba(10,10,12,0.7);
  border: 1px solid rgba(212,168,75,0.25);
  border-radius: 8px;
  color: #E8E8EE;
  font-family: 'Inter', sans-serif; font-size: 14px;
  outline: none;
  transition: border-color 180ms, background 180ms;
}
.bm-input:focus,
.bm-select:focus,
.bm-textarea:focus {
  border-color: rgba(244,210,122,0.75);
  background: rgba(20,18,12,0.85);
}
.bm-textarea { min-height: 70px; resize: vertical; font-family: inherit; }

/* Chip / pill buttons (used for vehicle size, time slots, add-ons) */
.bm-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bm-chip {
  padding: 10px 14px;
  border: 1px solid rgba(212,168,75,0.30);
  border-radius: 999px;
  background: rgba(20,16,10,0.55);
  color: #E8E8EE;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms, background 180ms, color 180ms, transform 120ms;
}
.bm-chip:hover { border-color: rgba(244,210,122,0.7); transform: translateY(-1px); }
.bm-chip.selected {
  border-color: rgba(244,210,122,0.95);
  background: linear-gradient(180deg, rgba(244,210,122,0.95), rgba(212,168,75,0.95));
  color: #050507;
  box-shadow: 0 4px 14px rgba(212,168,75,0.30);
}

/* Add-on rows with prices */
.bm-addons-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 320px; overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 4px;
}
.bm-addon {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(212,168,75,0.20);
  border-radius: 8px;
  background: rgba(20,16,10,0.4);
  cursor: pointer;
  transition: border-color 180ms, background 180ms;
}
.bm-addon:hover { border-color: rgba(244,210,122,0.55); }
.bm-addon.selected {
  border-color: rgba(244,210,122,0.85);
  background: rgba(36,28,16,0.7);
}
.bm-addon .ad-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 14px; color: #E8E8EE;
}
.bm-addon .ad-desc {
  font-family: 'Inter', sans-serif; font-size: 10px;
  color: #76767C; margin-top: 2px;
  letter-spacing: 0.04em;
}
.bm-addon .ad-price {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #F4D27A 0%, #D4A84B 50%, #8A6D2A 100%);
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.9));
}
.bm-addon .ad-check {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid rgba(212,168,75,0.45);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #050507; background: transparent;
  transition: background 180ms, border-color 180ms;
}
.bm-addon.selected .ad-check {
  background: linear-gradient(180deg, #F4D27A, #D4A84B);
  border-color: #F4D27A;
}

/* Calendar (date picker) */
.bm-cal {
  background: rgba(10,10,12,0.7);
  border: 1px solid rgba(212,168,75,0.25);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.bm-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.bm-cal-head .month {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 16px; color: #E8E8EE;
}
.bm-cal-nav {
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(20,16,10,0.7);
  border: 1px solid rgba(212,168,75,0.30);
  color: #F4D27A; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.bm-cal-nav:hover { background: rgba(212,168,75,0.18); }
.bm-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.bm-cal-dow {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #76767C; text-align: center; padding: 6px 0;
}
.bm-cal-day {
  aspect-ratio: 1; padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #D0D2D8;
  font-family: 'Inter', sans-serif; font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.bm-cal-day:hover:not(:disabled) { background: rgba(212,168,75,0.18); }
.bm-cal-day:disabled { color: #48484E; cursor: not-allowed; }
.bm-cal-day.dim { color: #48484E; }
.bm-cal-day.selected {
  background: linear-gradient(180deg, #F4D27A, #D4A84B);
  color: #050507;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212,168,75,0.30);
}
.bm-cal-day.today { border-color: rgba(212,168,75,0.6); }

/* Summary block (confirmation) */
.bm-summary {
  background: rgba(10,10,12,0.7);
  border: 1px solid rgba(212,168,75,0.30);
  border-radius: 12px;
  padding: 18px 18px 14px;
  margin-bottom: 16px;
}
.bm-summary .s-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(212,168,75,0.18);
  font-family: 'Inter', sans-serif; font-size: 13px;
}
.bm-summary .s-row:last-child { border-bottom: 0; }
.bm-summary .s-row .lbl { color: #76767C; letter-spacing: 0.05em; text-transform: uppercase; font-size: 9px; font-weight: 700; }
.bm-summary .s-row .val { color: #E8E8EE; font-weight: 500; text-align: right; max-width: 60%; }
.bm-summary .s-row.total .lbl { color: #F4D27A; font-size: 11px; }
.bm-summary .s-row.total .val {
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #F4D27A 0%, #D4A84B 50%, #8A6D2A 100%);
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.9));
}

.bm-success {
  text-align: center;
  padding: 14px 6px 8px;
}
.bm-success .check {
  width: 64px; height: 64px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, #F4D27A, #D4A84B);
  color: #050507;
  box-shadow: 0 12px 36px rgba(212,168,75,0.5);
  animation: bmPop 480ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes bmPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}
.bm-success .check svg { width: 30px; height: 30px; }
.bm-success h3 {
  font-family: 'Dancing Script', cursive;
  font-weight: 700; font-size: 38px;
  background: linear-gradient(180deg, #F8E0A0, #F4D27A 30%, #D4A84B 60%, #8A6D2A);
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,0.95)) drop-shadow(0 1px 1px rgba(0,0,0,0.7));
  margin: 0 0 6px;
}
.bm-success p {
  color: #D0D2D8;
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  line-height: 1.45;
  max-width: 380px; margin: 0 auto 14px;
}
.bm-success .conf-id {
  display: inline-block;
  padding: 6px 12px;
  border: 1px dashed rgba(212,168,75,0.5);
  border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 0.32em; color: #F4D27A;
}

/* Footer / actions */
.bm-actions {
  display: flex; gap: 10px; padding: 18px 28px 26px;
  border-top: 1px solid rgba(212,168,75,0.18);
}
.bm-btn {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: filter 180ms, transform 120ms, opacity 180ms;
}
.bm-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.bm-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.bm-btn.ghost {
  background: rgba(20,16,10,0.55);
  border: 1px solid rgba(212,168,75,0.35);
  color: #F4D27A;
}
.bm-btn.gold {
  background: linear-gradient(180deg, #F4D27A, #D4A84B 50%, #8A6D2A);
  color: #050507;
  box-shadow: 0 8px 24px rgba(212,168,75,0.30), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Light-theme overrides — readable on white marble */
body[data-theme="light"] .bm-backdrop {
  background: rgba(230,230,235,0.78);
}
body[data-theme="light"] .bm-modal {
  /* Modal stays dark so the gold accents pop, even in light theme */
}

/* =============================================================
   LIVE TRACKING (after confirmation) — Uber-Eats style
   ============================================================= */
.bm-track-map {
  position: relative;
  height: 320px;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #1C1814, #15110B);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212,168,75,0.35);
  box-shadow:
    inset 0 1px 0 rgba(244,210,122,0.12),
    0 10px 30px rgba(0,0,0,0.55);
}
.bm-track-map svg.map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.bm-eta-pill {
  position: absolute; top: 12px; right: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20,16,10,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212,168,75,0.4);
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
}
.bm-eta-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8FB870; box-shadow: 0 0 8px #8FB870;
  animation: etaPulse 1.4s ease-in-out infinite;
}
@keyframes etaPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.bm-eta-pill .txt {
  font-family: 'Inter', sans-serif;
  font-size: 11px; color: #D0D2D8;
  letter-spacing: 0.06em;
}

/* Detailer card */
.bm-detailer {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(180deg, #221d17, #1C1814);
  border: 1px solid rgba(212,168,75,0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(244,210,122,0.18);
}
.bm-detailer .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #8A6D2A 0%, #D4A84B 60%, #F4D27A 100%);
  display: grid; place-items: center;
  border: 2px solid rgba(244,210,122,0.55);
  box-shadow: 0 0 16px rgba(212,168,75,0.35);
  font-family: 'Dancing Script', cursive;
  font-size: 24px; font-weight: 700; color: #050507;
  flex-shrink: 0;
}
.bm-detailer .info { flex: 1; min-width: 0; }
.bm-detailer .info .nm {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700; color: #E8E8EE;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 2px;
}
.bm-detailer .info .meta {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 13px; color: #76767C;
}
.bm-detailer .actions {
  display: flex; gap: 6px;
}
.bm-detailer .iconbtn {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(20,16,10,0.7);
  border: 1px solid rgba(212,168,75,0.35);
  color: #F4D27A;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background 180ms, transform 180ms;
  text-decoration: none;
}
.bm-detailer .iconbtn:hover { background: rgba(212,168,75,0.18); transform: translateY(-1px); }
.bm-detailer .iconbtn svg { width: 16px; height: 16px; }

/* Step list */
.bm-status-head {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: #F4D27A; margin: 12px 0 12px;
}
.bm-track-step {
  display: flex; gap: 14px; padding-bottom: 14px;
  position: relative;
}
.bm-track-step:last-child { padding-bottom: 0; }
.bm-track-step .rail {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}
.bm-track-step .dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(212,168,75,0.25);
  background: rgba(20,16,10,0.7);
  display: grid; place-items: center;
  transition: background 280ms, border-color 280ms, box-shadow 280ms;
}
.bm-track-step.done .dot {
  background: linear-gradient(180deg, #F4D27A, #D4A84B);
  border-color: #D4A84B;
}
.bm-track-step.done .dot::after {
  content: "✓"; color: #0A0806; font-size: 13px; font-weight: 900; line-height: 1;
}
.bm-track-step.current .dot {
  border-color: #F4D27A;
  box-shadow: 0 0 12px #F4D27A;
}
.bm-track-step.current .dot::after {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: #F4D27A; box-shadow: 0 0 8px #F4D27A;
  animation: stepPulse 1.6s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.bm-track-step .line {
  width: 1px; flex: 1; min-height: 16px; margin-top: 2px;
  background: rgba(212,168,75,0.18);
  transition: background 280ms;
}
.bm-track-step.done .line { background: #D4A84B; }
.bm-track-step:last-child .line { display: none; }
.bm-track-step .txt { flex: 1; padding-top: 1px; }
.bm-track-step .lbl {
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: #48484E; font-weight: 500;
}
.bm-track-step.done .lbl    { color: #D0D2D8; }
.bm-track-step.current .lbl { color: #F4D27A; font-weight: 600; }
.bm-track-step .sub {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: #2A2A30; margin-top: 2px; letter-spacing: 0.03em;
}
.bm-track-step.done .sub, .bm-track-step.current .sub { color: #76767C; }

/* Mobile tightening */
@media (max-width: 540px) {
  .bm-modal { margin: 14px auto; border-radius: 14px; }
  .bm-head { padding: 26px 18px 0; }
  .bm-title { font-size: 36px; }
  .bm-body { padding: 6px 18px 18px; }
  .bm-actions { padding: 14px 18px 20px; }
  .bm-row.split { grid-template-columns: 1fr; gap: 12px; }
}
