/* ============================================================
   BOOKING MODULE — booking.css
   All values as CSS custom properties for easy reskinning.
   Relies on existing site vars: --gold, --dark, --warm-white,
   --light, --mid, --text, --gold-light
   ============================================================ */

:root {
  /* ── Booking-specific tokens ── */
  --bk-radius:          2px;
  --bk-card-height:     300px;
  --bk-transition:      0.3s ease;
  --bk-error-color:     #b94040;
  --bk-calendar-cell:   40px;
  --bk-progress-size:   44px;
  --bk-check-easing:    cubic-bezier(0.34, 1.56, 0.64, 1); /* ease-out-back */
}

/* ──────────────────────────────────────
   SECTION WRAPPER
   ────────────────────────────────────── */
.booking-section {
  padding: 120px 0;
  background: var(--light, #f0ece4);
  overflow: hidden;
}

.booking-section .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

.booking-header {
  text-align: center;
  margin-bottom: 56px;
}

.booking-header .section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, #c4a97d);
  display: block;
  margin-bottom: 14px;
}

.booking-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  color: var(--dark, #181614);
  line-height: 1.15;
  margin-bottom: 14px;
}

.booking-header h2 em {
  font-style: italic;
  color: var(--gold, #c4a97d);
}

.booking-header p {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid, #8a857e);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ──────────────────────────────────────
   PROGRESS INDICATOR
   ────────────────────────────────────── */
.booking-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 52px;
  padding: 0 20px;
}

.booking-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 180px;
  position: relative;
}

/* Horizontal connector between steps */
.booking-progress-item + .booking-progress-item::before {
  content: '';
  position: absolute;
  top: calc(var(--bk-progress-size) / 2);
  right: calc(50% + var(--bk-progress-size) / 2);
  left: calc(-50% + var(--bk-progress-size) / 2);
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  transition: background var(--bk-transition);
}

.booking-progress-item.completed + .booking-progress-item::before {
  background: var(--gold, #c4a97d);
}

.bk-progress-circle {
  width: var(--bk-progress-size);
  height: var(--bk-progress-size);
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background: var(--warm-white, #faf8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--mid, #8a857e);
  position: relative;
  z-index: 1;
  transition: all var(--bk-transition);
  flex-shrink: 0;
}

.booking-progress-item.active .bk-progress-circle {
  border-color: var(--gold, #c4a97d);
  background: var(--gold, #c4a97d);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(196, 169, 125, 0.18);
}

.booking-progress-item.completed .bk-progress-circle {
  border-color: var(--gold, #c4a97d);
  background: var(--gold, #c4a97d);
  color: #fff;
}

.bk-progress-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid, #8a857e);
  text-align: center;
  line-height: 1.4;
  transition: color var(--bk-transition);
}

.booking-progress-item.active .bk-progress-label {
  color: var(--gold, #c4a97d);
  font-weight: 500;
}

.booking-progress-item.completed .bk-progress-label {
  color: var(--text, #2e2b28);
}

/* ──────────────────────────────────────
   STEP WRAPPER & TRANSITIONS
   ────────────────────────────────────── */
.booking-card-wrap {
  background: #fff;
  border: 1px solid rgba(196, 169, 125, 0.15);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.05);
  padding: 48px;
  min-height: 480px;
  position: relative;
}

.booking-step {
  display: none;
  animation: bkStepIn var(--bk-transition) forwards;
}

.booking-step.active {
  display: block;
}

@keyframes bkStepIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────
   STEP 1 — TYPE CARDS
   ────────────────────────────────────── */
.bk-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  color: var(--dark, #181614);
  margin-bottom: 32px;
  text-align: center;
}

.bk-type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bk-type-card {
  position: relative;
  height: var(--bk-card-height);
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  transition:
    border-color var(--bk-transition),
    transform var(--bk-transition),
    box-shadow var(--bk-transition);
}

.bk-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.bk-type-card.selected {
  border-color: var(--gold, #c4a97d);
  box-shadow: 0 0 0 1px var(--gold, #c4a97d), 0 8px 32px rgba(196, 169, 125, 0.2);
}

.bk-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.bk-type-card:hover .bk-card-bg { transform: scale(1.05); }

.bk-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.82) 0%, rgba(20, 18, 16, 0.15) 55%);
  transition: background var(--bk-transition);
}

.bk-type-card.selected .bk-card-overlay {
  background: linear-gradient(to top, rgba(20, 18, 16, 0.75) 0%, rgba(196, 169, 125, 0.12) 60%);
}

.bk-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  z-index: 1;
}

.bk-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.bk-card-desc {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--bk-transition);
}

.bk-type-card:hover .bk-card-desc,
.bk-type-card.selected .bk-card-desc {
  max-height: 60px;
}

.bk-card-duration {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.bk-card-check {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold, #c4a97d);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.bk-type-card.selected .bk-card-check {
  opacity: 1;
  transform: scale(1);
}

.bk-card-check svg { width: 13px; height: 13px; color: #fff; }

/* ──────────────────────────────────────
   STEP 2 — CALENDAR + TIME SLOTS
   ────────────────────────────────────── */
.bk-date-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Calendar */
.bk-calendar-wrap { min-width: 0; }

.bk-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bk-month-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--dark, #181614);
}

.bk-month-nav {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--mid, #8a857e);
  cursor: pointer;
  transition: all var(--bk-transition);
  background: none;
  font-family: inherit;
}

.bk-month-nav:hover:not(:disabled) {
  border-color: var(--gold, #c4a97d);
  color: var(--gold, #c4a97d);
}

.bk-month-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bk-month-nav svg { width: 14px; height: 14px; }

.bk-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.bk-day-header {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid, #8a857e);
}

.bk-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--bk-transition), color var(--bk-transition);
  position: relative;
  color: var(--text, #2e2b28);
}

.bk-day:empty { pointer-events: none; }

.bk-day.unavailable {
  color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
  pointer-events: none;
}

.bk-day.fully-booked {
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.15);
}

.bk-day.available {
  background: rgba(196, 169, 125, 0.1);
}

.bk-day.available:hover {
  background: rgba(196, 169, 125, 0.28);
  color: var(--dark, #181614);
}

.bk-day.today {
  outline: 2px solid var(--gold, #c4a97d);
  outline-offset: -2px;
  font-weight: 600;
}

.bk-day.selected {
  background: var(--gold, #c4a97d) !important;
  color: #fff !important;
  font-weight: 600;
}

/* Time slots */
.bk-slots-wrap { min-width: 0; }

.bk-slots-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark, #181614);
  margin-bottom: 6px;
}

.bk-slots-subtext {
  font-size: 12px;
  font-weight: 300;
  color: var(--mid, #8a857e);
  margin-bottom: 20px;
  line-height: 1.5;
}

.bk-slots-empty {
  font-size: 14px;
  font-weight: 300;
  color: var(--mid, #8a857e);
  padding: 20px 0;
  line-height: 1.6;
}

.bk-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
  justify-content: start;
}

.bk-slot-pill {
  padding: 9px 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text, #2e2b28);
  cursor: pointer;
  transition: all var(--bk-transition);
  background: var(--warm-white, #faf8f5);
  letter-spacing: 0.04em;
}

.bk-slot-pill:hover {
  border-color: var(--gold, #c4a97d);
  color: var(--gold, #c4a97d);
}

.bk-slot-pill.selected {
  background: var(--gold, #c4a97d);
  border-color: var(--gold, #c4a97d);
  color: #fff;
  font-weight: 500;
}

.bk-fully-booked-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid, #8a857e);
  border: 1px solid currentColor;
  padding: 4px 10px;
  margin-top: 4px;
}

/* ──────────────────────────────────────
   STEP 3 — FORM + SUMMARY
   ────────────────────────────────────── */
.bk-step3-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Summary card */
.bk-summary-card {
  border: 1px solid rgba(196, 169, 125, 0.3);
  padding: 24px;
  background: rgba(196, 169, 125, 0.04);
}

.bk-summary-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(196, 169, 125, 0.2);
}

.bk-summary-icon {
  width: 40px;
  height: 40px;
  background: var(--gold, #c4a97d);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.bk-summary-icon svg { width: 18px; height: 18px; }

.bk-summary-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark, #181614);
  line-height: 1.2;
}

.bk-summary-card-sub {
  font-size: 11px;
  color: var(--gold, #c4a97d);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bk-summary-rows { display: flex; flex-direction: column; gap: 12px; }

.bk-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bk-summary-row-icon {
  width: 16px;
  height: 16px;
  color: var(--gold, #c4a97d);
  flex-shrink: 0;
  margin-top: 2px;
}

.bk-summary-row-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--text, #2e2b28);
  line-height: 1.5;
}

.bk-summary-row-text strong {
  font-weight: 500;
  display: block;
}

/* Form */
.bk-form { display: flex; flex-direction: column; gap: 16px; }

.bk-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bk-field { display: flex; flex-direction: column; gap: 6px; }

.bk-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid, #8a857e);
}

.bk-field input,
.bk-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--light, #f0ece4);
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text, #2e2b28);
  outline: none;
  transition: border-color var(--bk-transition), background var(--bk-transition), box-shadow var(--bk-transition);
  border-radius: var(--bk-radius, 2px);
  appearance: none;
}

.bk-field input:focus,
.bk-field textarea:focus {
  border-color: var(--gold, #c4a97d);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 169, 125, 0.15);
}

.bk-field input.invalid,
.bk-field textarea.invalid {
  border-color: var(--bk-error-color, #b94040) !important;
  box-shadow: 0 0 0 3px rgba(185, 64, 64, 0.1) !important;
}

.bk-field textarea {
  height: 90px;
  resize: vertical;
}

.bk-field-error {
  font-size: 11px;
  color: var(--bk-error-color, #b94040);
  font-weight: 400;
  display: none;
  line-height: 1.4;
}

.bk-field-error.visible { display: block; }

/* Submit button */
.bk-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--dark, #181614);
  color: var(--warm-white, #faf8f5);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--bk-transition);
  border-radius: var(--bk-radius, 2px);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bk-submit-btn:hover { background: var(--gold, #c4a97d); }
.bk-submit-btn svg { width: 16px; height: 16px; transition: transform 0.25s; }
.bk-submit-btn:hover svg { transform: translateX(4px); }

/* ──────────────────────────────────────
   BOOKING NAV (back button row)
   ────────────────────────────────────── */
.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  min-height: 44px;
}

.bk-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid, #8a857e);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color var(--bk-transition);
  padding: 0;
}

.bk-back-btn:hover { color: var(--dark, #181614); }
.bk-back-btn svg { width: 16px; height: 16px; transition: transform 0.25s; }
.bk-back-btn:hover svg { transform: translateX(-3px); }
.bk-back-btn[hidden] { visibility: hidden; pointer-events: none; }

.bk-step-hint {
  font-size: 12px;
  color: var(--mid, #8a857e);
  font-weight: 300;
}

/* ──────────────────────────────────────
   CONFIRMATION SCREEN
   ────────────────────────────────────── */
.booking-confirmation[hidden] { display: none !important; }

.booking-confirmation {
  animation: bkStepIn var(--bk-transition) forwards;
}

.bk-confirm-wrap {
  background: #fff;
  border: 1px solid rgba(196, 169, 125, 0.15);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.05);
  padding: 64px 48px;
  text-align: center;
}

.bk-confirm-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.bk-confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold, #c4a97d);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bkCheckBounce 0.4s var(--bk-check-easing) forwards;
  transform-origin: center;
}

.bk-confirm-icon svg { width: 36px; height: 36px; color: #fff; }

@keyframes bkCheckBounce {
  0%   { transform: scale(0);    opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1);    opacity: 1; }
}

.bk-confirm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--dark, #181614);
  margin-bottom: 16px;
  line-height: 1.15;
}

.bk-confirm-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid, #8a857e);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 40px;
}

.bk-confirm-sub strong { color: var(--text, #2e2b28); font-weight: 500; }

.bk-confirm-summary {
  max-width: 440px;
  margin: 0 auto 40px;
  text-align: left;
}

.bk-confirm-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid, #8a857e);
  background: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all var(--bk-transition);
  border-radius: var(--bk-radius, 2px);
}

.bk-confirm-back-btn:hover {
  border-color: var(--dark, #181614);
  color: var(--dark, #181614);
}

/* ──────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────── */
@media (max-width: 768px) {
  .booking-section { padding: 80px 0; }
  .booking-section .container { padding: 0 20px; }
  .booking-card-wrap { padding: 28px 20px; min-height: auto; }

  .bk-type-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bk-type-card { height: 160px; }
  .bk-card-desc { max-height: 40px !important; }

  .bk-date-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bk-step3-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bk-form-row { grid-template-columns: 1fr; }

  /* Smaller progress on mobile */
  :root { --bk-progress-size: 36px; }
  .bk-progress-label { display: none; }
  .booking-progress { margin-bottom: 36px; }

  .bk-confirm-wrap { padding: 40px 24px; }

  .bk-slots-grid { grid-template-columns: repeat(3, auto); }
}

@media (max-width: 480px) {
  .bk-calendar-grid { gap: 1px; }
  .bk-day { font-size: 12px; }
  .bk-slots-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-slot-pill { text-align: center; }
}
