/* ===== ROOT — Logo Colour Scheme ===== */
:root {
  --navy: #3B3F5C;
  --navy-dark: #2C2F47;
  --navy-deeper: #1E2038;
  --navy-light: #ECEEF6;
  --navy-mid: #9396AE;
  --navy-pale: #F4F5F9;

  --red: #D92B2B;
  --red-dark: #B52222;
  --red-light: #FCEAEA;
  --red-mid: #E87070;

  --dark: #1A1C2E;
  --text: #2D2F45;
  --text-muted: #6B6E87;
  --white: #FFFFFF;
  --border: #D0D2E0;

  --shadow: 0 4px 20px rgba(59,63,92,0.12);
  --shadow-lg: 0 16px 48px rgba(59,63,92,0.18);
  --shadow-red: 0 4px 18px rgba(217,43,43,0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', sans-serif;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--text);
  background: linear-gradient(135deg, #ECEEF6 0%, #F4F5F9 60%, #FCEAEA 100%);
  min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--navy-light);
  box-shadow: 0 2px 16px rgba(59,63,92,0.08);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 42px; height: 42px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 14px; font-weight: 800; color: var(--dark); }
.logo-tagline { font-size: 10px; color: var(--text-muted); }
.back-link {
  font-size: 13px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 50px;
  border: 2px solid var(--navy-light);
  transition: var(--transition);
}
.back-link:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ===== PAGE WRAPPER ===== */
.booking-page {
  min-height: 100vh;
  padding: 84px 20px 40px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== CARD ===== */
.booking-card {
  width: 100%;
  max-width: 900px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 560px;
}

/* ===== SIDEBAR ===== */
.booking-sidebar {
  background: var(--navy-deeper);
  padding: 36px 26px 28px;
  display: flex; flex-direction: column;
}
.sidebar-badge {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--red-mid); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; line-height: 1.2;
  color: white; margin-bottom: 12px;
}
.sidebar-title em {
  font-style: italic; color: var(--red-mid);
  font-family: 'Playfair Display', serif;
}
.sidebar-desc {
  font-size: 12px; color: rgba(255,255,255,0.58); line-height: 1.7;
  margin-bottom: 24px;
}
.sidebar-selection { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.selection-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.07); border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.10);
  transition: var(--transition);
}
.selection-item.active { border-color: var(--red); background: rgba(217,43,43,0.12); }
.selection-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(217,43,43,0.18); color: var(--red-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.selection-label {
  display: block; font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--red-mid); margin-bottom: 1px;
}
.selection-value {
  display: block; font-size: 14px; font-weight: 700; color: white;
}
.sidebar-hours {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.10); padding-top: 16px; margin-top: auto;
}

/* ===== BOOKING PANEL ===== */
.booking-panel {
  display: none;
  flex-direction: column;
  overflow-y: auto;
  max-height: 82vh;
}
.booking-panel.active { display: flex; }
.panel-scroll { flex: 1; padding: 32px 36px; }

/* ===== CALENDAR ===== */
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.month-title { font-size: 20px; font-weight: 700; color: var(--dark); }
.cal-nav { display: flex; gap: 6px; }
.cal-nav-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--border); background: white;
  font-size: 18px; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-family: var(--font); line-height: 1;
}
.cal-nav-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-pale); }

.calendar-grid { width: 100%; }
.cal-day-name {
  display: inline-block; width: calc(100% / 7);
  text-align: center; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; color: var(--text-muted);
  padding-bottom: 8px;
}
.cal-days-wrapper {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-top: 2px;
}
.cal-day {
  aspect-ratio: 1; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
  background: var(--navy-pale);
}
.cal-day:hover:not(.past):not(.empty) { border-color: var(--navy-mid); background: var(--navy-light); color: var(--navy); }
.cal-day.today { border-color: var(--navy-mid); color: var(--navy); font-weight: 700; }
.cal-day.selected { background: var(--red); color: white; border-color: var(--red); font-weight: 700; box-shadow: var(--shadow-red); }
.cal-day.past { color: #C5CDD4; cursor: not-allowed; background: var(--navy-pale); }
.cal-day.empty { background: transparent; cursor: default; border: none; }

/* ===== SLOTS ===== */
.slots-section { margin-top: 22px; }
.slots-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-muted); margin-bottom: 12px;
}
.slots-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.slot-btn {
  padding: 9px 6px; border-radius: 8px;
  border: 2px solid var(--border);
  background: white; font-size: 12px; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: var(--transition); font-family: var(--font);
  text-align: center;
}
.slot-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-pale); }
.slot-btn.selected { background: var(--red); color: white; border-color: var(--red); box-shadow: var(--shadow-red); }
.slot-btn.unavailable { color: #C5CDD4; cursor: not-allowed; background: var(--navy-pale); border-color: #E0E2EC; }

/* ===== CONTINUE BUTTON ===== */
.panel-footer { display: flex; justify-content: flex-end; margin-top: 24px; }
.btn-continue {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--navy);
  color: white; border: none; border-radius: 50px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--font); transition: var(--transition);
  box-shadow: 0 4px 16px rgba(59,63,92,0.32);
}
.btn-continue:hover { background: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-red); }

/* ===== STEP 2: FORM ===== */
.back-step-btn {
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  font-family: var(--font); padding: 0; margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.back-step-btn:hover { color: var(--navy); }
.step2-title {
  font-size: 22px; font-weight: 700; color: var(--dark);
  margin-bottom: 24px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-group label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--text-muted);
}
.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-icon {
  position: absolute; left: 12px; color: var(--text-muted);
  pointer-events: none; flex-shrink: 0;
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%; padding: 11px 14px 11px 36px;
  border: 2px solid var(--border); border-radius: 10px;
  font-size: 13px; color: var(--text); background: var(--navy-pale);
  font-family: var(--font); outline: none; transition: var(--transition);
}
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--navy); background: white;
  box-shadow: 0 0 0 3px rgba(59,63,92,0.10);
}
.phone-wrap { gap: 0; }
.phone-code {
  padding: 11px 12px 11px 34px; background: var(--navy-light);
  border: 2px solid var(--border); border-right: none;
  border-radius: 10px 0 0 10px; font-size: 13px; font-weight: 600;
  color: var(--navy-dark); white-space: nowrap; flex-shrink: 0;
}
.phone-wrap input {
  border-radius: 0 10px 10px 0; border-left: none; padding-left: 14px;
}
.phone-wrap .input-icon { left: 12px; }
.select-wrap select { padding-left: 14px; appearance: none; }
.textarea-wrap textarea { padding-left: 36px; resize: vertical; min-height: 80px; }
.textarea-icon { top: 12px; align-self: flex-start; position: absolute; }

.btn-confirm {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: white; border: none; border-radius: 50px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--font); transition: var(--transition);
  box-shadow: var(--shadow-red);
  margin-top: 6px;
}
.btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(217,43,43,0.42); }

/* ===== SUCCESS ===== */
.success-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 32px;
  gap: 16px;
}
.success-animation { margin-bottom: 4px; }
.success-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(34,197,94,0.38);
  animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-title { font-size: 24px; font-weight: 800; color: var(--dark); }
.success-msg { font-size: 14px; color: var(--text-muted); max-width: 340px; line-height: 1.7; }
.success-details {
  background: var(--navy-pale); border: 2px solid var(--navy-light);
  border-radius: var(--radius); padding: 16px 24px;
  font-size: 13px; color: var(--text); line-height: 1.9; text-align: left;
  width: 100%; max-width: 380px;
}
.success-details strong { color: var(--navy-dark); }
.success-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.btn-whatsapp-confirm {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; background: #25D366; color: white;
  border-radius: 50px; font-size: 14px; font-weight: 700;
  box-shadow: 0 5px 18px rgba(37,211,102,0.35);
  transition: var(--transition);
}
.btn-whatsapp-confirm:hover { background: #1cb85b; transform: translateY(-2px); }
.btn-home {
  display: block; padding: 12px 24px;
  border: 2px solid var(--border); border-radius: 50px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: var(--transition); text-align: center;
}
.btn-home:hover { border-color: var(--navy); color: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 750px) {
  .booking-card {
    grid-template-columns: 1fr;
    max-height: none;
    border-radius: 16px;
  }
  .booking-sidebar {
    padding: 28px 22px 22px;
    border-bottom: 2px solid rgba(255,255,255,0.10);
  }
  .sidebar-title { font-size: 22px; }
  .panel-scroll { padding: 24px 20px; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-panel { max-height: none; }
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-scroll { padding: 20px 16px; }
}
