@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --sage: #9CA986;
  --sage-dark: #7a8a66;
  --blush: #EBC7C7;
  --ivory: #FFFDF5;
  --ivory-dark: #F5F0E8;
  --blue: #A2C2D1;
  --lavender: #D1C1D7;
  --charcoal: #2E2E2E;
  --muted: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 20px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }

/* ── Layout ── */
.booking-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ── */
.b-navbar {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(156,169,134,0.15);
  background: rgba(255,253,245,0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.b-navbar__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.b-navbar__logo-icon {
  width: 34px; height: 34px;
  background: var(--sage);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.b-navbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage-dark);
  transition: gap var(--transition), color var(--transition);
}
.b-navbar__back:hover { gap: 12px; color: var(--sage); }

/* ── Main ── */
.booking-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px 80px;
  position: relative;
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(235,199,199,0.35) 0%, transparent 70%);
  top: 10%; right: -80px;
}
.blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(156,169,134,0.18) 0%, transparent 70%);
  bottom: 10%; left: -60px;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(162,194,209,0.2) 0%, transparent 70%);
  top: 40%; left: 30%;
}

/* ── Header ── */
.booking-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.7s ease both;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}
.booking-header__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(156,169,134,0.12);
  border: 1px solid rgba(156,169,134,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 20px;
}
.booking-header__step-dot {
  width: 6px; height: 6px;
  background: var(--sage);
  border-radius: 50%;
}
.booking-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--sage-dark);
  margin-bottom: 16px;
}
.booking-header__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Steps Progress ── */
.booking-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.step-item__circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--blush);
  background: var(--white);
  color: var(--muted);
  transition: all var(--transition);
}
.step-item.active .step-item__circle {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(156,169,134,0.35);
}
.step-item.done .step-item__circle {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}
.step-item__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.step-item.active .step-item__label { color: var(--sage-dark); font-weight: 600; }
.step-connector {
  width: 60px; height: 2px;
  background: var(--blush);
  margin-bottom: 26px;
}
.step-connector.done { background: var(--sage); }

/* ── Panels Container ── */
.booking-panels {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Calendar Panel ── */
.calendar-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  flex: 1;
  min-width: 0;
}
.calendar-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.calendar-panel__month {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
}
.cal-nav-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--ivory-dark);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cal-nav-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
  background: rgba(156,169,134,0.08);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0 10px;
  letter-spacing: 0.06em;
}
.calendar-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--charcoal);
  transition: all var(--transition);
  position: relative;
}
.calendar-cell:empty { cursor: default; }
.calendar-cell.other-month { color: #c0bdb6; }
.calendar-cell.today { color: var(--blue); font-weight: 700; }
.calendar-cell.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
}
.calendar-cell.selected {
  background: var(--sage);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(156,169,134,0.4);
}
.calendar-cell.selected::after { display: none; }
.calendar-cell:not(:empty):not(.selected):hover {
  background: rgba(156,169,134,0.15);
  color: var(--sage-dark);
}
.calendar-cell.disabled { color: #d6d0c8; cursor: not-allowed; pointer-events: none; }

.calendar-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ivory-dark);
}
.btn-ghost {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 50px;
  transition: all var(--transition);
}
.btn-ghost:hover { background: var(--ivory-dark); color: var(--charcoal); }
.btn-sage {
  background: var(--sage);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  padding: 10px 28px;
  border-radius: 50px;
  transition: all var(--transition);
}
.btn-sage:hover { background: var(--sage-dark); box-shadow: 0 4px 16px rgba(156,169,134,0.35); }
.btn-sage:disabled { background: var(--ivory-dark); color: var(--muted); cursor: not-allowed; }

/* ── Time Panel ── */
.time-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  width: 260px;
  flex-shrink: 0;
}
.time-panel__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 24px;
}
.time-spinners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.spinner__btn {
  width: 32px; height: 28px;
  background: var(--ivory-dark);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all var(--transition);
}
.spinner__btn:hover { background: var(--sage); color: var(--white); }
.spinner__value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--charcoal);
  min-width: 52px;
  text-align: center;
  line-height: 1;
}
.spinner__label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.time-separator {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 28px;
  align-self: center;
  padding-bottom: 18px;
}

.ampm-toggle {
  display: flex;
  border: 1.5px solid var(--ivory-dark);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ampm-btn {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  transition: all var(--transition);
}
.ampm-btn.active {
  background: var(--sage);
  color: var(--white);
}

.time-display {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.time-panel__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--ivory-dark);
}
.time-panel__footer .btn-sage { width: 100%; }
.time-panel__footer .btn-ghost { width: 100%; text-align: center; }

/* ── Summary Card ── */
.booking-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 36px;
  width: 100%;
  max-width: 900px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.summary-icon {
  width: 48px; height: 48px;
  background: rgba(156,169,134,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.summary-text { flex: 1; min-width: 0; }
.summary-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.summary-text p {
  font-size: 0.85rem;
  color: var(--muted);
}
.summary-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ivory-dark);
  border: 1px solid rgba(156,169,134,0.25);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sage-dark);
}

/* ── Confirmation Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,33,24,0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s ease;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal__checkmark {
  width: 72px; height: 72px;
  background: rgba(156,169,134,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.modal__title {
  font-size: 1.7rem;
  color: var(--sage-dark);
  margin-bottom: 12px;
}
.modal__sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.modal__detail {
  background: var(--ivory-dark);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: left;
  margin-bottom: 28px;
}
.modal__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.modal__detail-row:last-child { border-bottom: none; }
.modal__detail-label { color: var(--muted); }
.modal__detail-value { font-weight: 600; color: var(--charcoal); }
.modal__actions { display: flex; gap: 12px; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .booking-panels { flex-direction: column; }
  .time-panel { width: 100%; }
  .step-connector { width: 32px; }
  .b-navbar { padding: 16px 20px; }
}
@media (max-width: 500px) {
  .booking-steps { transform: scale(0.85); transform-origin: center; }
  .booking-main { padding: 48px 16px 60px; }
  .calendar-panel, .time-panel { padding: 20px; }
}
