/* ============================
   BOOKING PAGE (STANDALONE)
============================= */

/* Page Hero */
.booking-hero {
  background: linear-gradient(135deg, var(--deep) 0%, #3a2a15 100%);
  padding: 140px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.booking-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(184,150,46,0.15), transparent 60%);
  pointer-events: none;
}
.booking-hero .sec-tag { color: var(--gold-light); }
.booking-hero .sec-title { color: white; font-size: 48px; margin-bottom: 12px; }
.booking-hero .sec-title em { color: var(--gold-light); }
.booking-hero .sec-subtitle {
  color: rgba(255,255,255,0.6);
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Breadcrumb */
.booking-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
}
.booking-breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.booking-breadcrumb a:hover { color: var(--gold-light); }
.booking-breadcrumb .sep { color: rgba(255,255,255,0.25); }
.booking-breadcrumb .current { color: var(--gold-light); }

/* Main Layout */
.booking-main {
  padding: 60px 40px 80px;
  background: var(--cream);
}
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Form Card */
.bf-card {
  background: white;
  border-radius: 24px;
  padding: 36px;
  border: 1px solid var(--cream-dark, #E5D9C5);
}
.bf-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--cream-dark, #E5D9C5);
}
.bf-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bf-section-title {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bf-section-title .bf-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Service/Package Selector */
.bf-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.bf-select-item {
  padding: 14px 16px;
  border: 1.5px solid var(--cream-dark, #E5D9C5);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bf-select-item:hover { border-color: var(--gold-light); }
.bf-select-item.selected {
  border-color: var(--gold);
  background: rgba(184,150,46,0.06);
}
.bf-select-item .bf-si-img {
  width: 44px; height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.bf-select-item .bf-si-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bf-si-info { flex: 1; min-width: 0; }
.bf-si-name {
  font-family: 'El Messiri', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bf-si-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.bf-si-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--cream-dark, #E5D9C5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
  font-size: 12px;
  color: transparent;
}
.bf-select-item.selected .bf-si-check {
  border-color: var(--gold);
  background: var(--gold);
  color: white;
}

/* Date & Time */
.bf-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bf-field { margin-bottom: 16px; }
.bf-field:last-child { margin-bottom: 0; }
.bf-field label {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 6px;
}
.bf-field input,
.bf-field select,
.bf-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark, #E5D9C5);
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  color: var(--deep);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bf-field input:focus,
.bf-field select:focus,
.bf-field textarea:focus { border-color: var(--gold); }
.bf-field textarea { resize: vertical; min-height: 80px; }

/* Time Slots */
.bf-slots-wrap { margin-bottom: 16px; }
.bf-slots-label {
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 10px;
}
.bf-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bf-slot {
  padding: 10px 6px;
  border: 1.5px solid var(--cream-dark, #E5D9C5);
  border-radius: 10px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.25s;
}
.bf-slot:hover { border-color: var(--gold-light); color: var(--gold); }
.bf-slot.selected { border-color: var(--gold); background: var(--gold); color: white; }
.bf-slot.unavailable { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.bf-slots-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

/* Staff Picker */
.bf-staff-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bf-staff-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s;
}
.bf-staff-item:hover { background: var(--cream); }
.bf-staff-item.selected { background: rgba(184,150,46,0.08); }
.bf-staff-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--cream-dark, #E5D9C5);
  transition: border-color 0.3s;
}
.bf-staff-item.selected .bf-staff-avatar { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,46,0.2); }
.bf-staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bf-staff-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.bf-staff-item.selected .bf-staff-name { color: var(--gold); font-weight: 600; }

/* Coupon Row */
.bf-coupon-row {
  display: flex;
  gap: 10px;
  align-items: start;
}
.bf-coupon-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark, #E5D9C5);
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  color: var(--deep, #2A2010);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bf-coupon-row input:focus {
  border-color: var(--gold, #B8962E);
  outline: none;
}
.bf-coupon-btn {
  padding: 12px 20px;
  background: var(--cream);
  border: 1.5px solid var(--cream-dark, #E5D9C5);
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.bf-coupon-btn:hover { background: var(--gold); color: white; border-color: var(--gold); }
.bf-coupon-msg {
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
}
.bf-coupon-msg.success { color: #2d7a3a; }
.bf-coupon-msg.error { color: #c44; }

/* ============================
   ORDER SUMMARY SIDEBAR
============================= */
.order-sidebar {
  position: sticky;
  top: 100px;
}
.os-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--cream-dark, #E5D9C5);
}
.os-header {
  background: var(--deep);
  padding: 24px;
  text-align: center;
}
.os-header-title {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
}
.os-header-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.os-body { padding: 24px; }
.os-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--cream-dark, #E5D9C5);
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
}
.os-row:last-child { border-bottom: none; }
.os-label { color: var(--muted); }
.os-val { color: var(--deep); font-weight: 500; }
.os-val.gold { color: var(--gold); font-weight: 700; }

.os-divider {
  height: 1px;
  background: var(--cream-dark, #E5D9C5);
  margin: 16px 0;
}
.os-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
}
.os-total-label {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
}
.os-total-val {
  font-family: 'El Messiri', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}
.os-total-val sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.os-discount-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  color: #2d7a3a;
}

.os-submit {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.os-submit:hover {
  background: var(--gold-dark, #8A6E20);
  transform: translateY(-2px);
}
.os-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.os-note {
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* Success */
.booking-success-card {
  background: white;
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--cream-dark, #E5D9C5);
}
.booking-success-card .success-icon { font-size: 56px; margin-bottom: 16px; }
.booking-success-card .success-title {
  font-family: 'El Messiri', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 8px;
}
.booking-success-card .success-msg {
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.booking-success-card .success-number {
  display: inline-block;
  padding: 10px 24px;
  background: var(--cream);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}
.success-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}
.success-btn-gold {
  background: var(--gold, #B8962E);
  color: #fff;
  border: 2px solid var(--gold, #B8962E);
}
.success-btn-gold:hover {
  background: var(--mid, #4A3820);
  border-color: var(--mid, #4A3820);
}
.success-btn-outline {
  background: transparent;
  color: var(--gold, #B8962E);
  border: 2px solid var(--cream-dark, #E5D9C5);
}
.success-btn-outline:hover {
  border-color: var(--gold, #B8962E);
  background: var(--cream, #F8F3EB);
}

/* ============================
   RESPONSIVE
============================= */
@media (max-width: 1024px) {
  .bf-selector { grid-template-columns: 1fr; }
  .bf-slots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .booking-hero { padding: 120px 22px 60px; }
  .booking-hero .sec-title { font-size: 36px; }
  .booking-main { padding: 30px 16px 60px; }
  .booking-layout { grid-template-columns: 1fr; }
  .order-sidebar { position: static; }
  .bf-card { padding: 24px 18px; }
  .bf-date-row { grid-template-columns: 1fr; }
  .bf-slots { grid-template-columns: repeat(3, 1fr); }
}
