/* ============================================================
   Kakefrue — Booking Flow Styles
   ============================================================ */

/* ============================================================
   Progress Bar
   ============================================================ */
.booking-progress {
  background: var(--white);
  border-bottom: 1px solid rgba(201, 168, 132, 0.15);
  padding: 16px 24px;
  position: sticky;
  top: 72px;
  z-index: 100;
}
.progress-inner {
  max-width: 700px;
  margin: 0 auto;
}
.progress-bar-bg {
  height: 4px;
  background: rgba(201, 168, 132, 0.2);
  border-radius: 100px;
  margin-bottom: 12px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  border-radius: 100px;
  transition: width 0.4s ease;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-step {
  font-size: 0.75rem;
  color: var(--brown);
  opacity: 0.4;
  text-align: center;
  flex: 1;
  transition: opacity 0.3s;
}
.progress-step.active { opacity: 1; color: var(--gold-dark); font-weight: 700; }
.progress-step.done { opacity: 0.7; }
.step-num {
  display: flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201, 168, 132, 0.2);
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.3s;
}
.progress-step.active .step-num {
  background: var(--gold);
  color: var(--white);
}
.progress-step.done .step-num {
  background: var(--sage);
  color: var(--white);
}

/* ============================================================
   Booking Container
   ============================================================ */
.booking-wrap {
  min-height: calc(100vh - 72px - 60px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
}
.booking-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 680px;
  overflow: hidden;
}
.booking-card-header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid rgba(201, 168, 132, 0.12);
}
.booking-step-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.booking-step-sub {
  color: var(--brown);
  opacity: 0.6;
  font-size: 0.9rem;
}
.booking-card-body {
  padding: 32px 36px;
}
.booking-card-footer {
  padding: 24px 36px;
  border-top: 1px solid rgba(201, 168, 132, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   Step Sections
   ============================================================ */
.step { display: none; }
.step.active { display: block; }

/* ============================================================
   Calendar
   ============================================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.calendar-month {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}
.calendar-nav {
  background: none;
  border: 1.5px solid rgba(74,55,40,0.15);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--brown);
  transition: all 0.2s;
}
.calendar-nav:hover { border-color: var(--gold); color: var(--gold-dark); }
.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  opacity: 0.4;
  padding: 8px 0;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: default;
  color: var(--brown);
  opacity: 0.25;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}
.calendar-day.available {
  background: rgba(139, 158, 122, 0.1);
  color: var(--brown);
  opacity: 1;
  cursor: pointer;
  border-color: rgba(139, 158, 122, 0.2);
}
.calendar-day.available:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.calendar-day.selected {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  opacity: 1;
}
.calendar-day.today {
  font-weight: 700;
}
.calendar-day.other-month { opacity: 0.1; }

/* ============================================================
   Option Cards (selectable)
   ============================================================ */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.option-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.option-card {
  padding: 16px 12px;
  border: 2px solid rgba(74, 55, 40, 0.1);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  background: var(--cream);
}
.option-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 132, 0.08);
}
.option-card.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 132, 0.12);
  box-shadow: 0 2px 12px rgba(201, 168, 132, 0.2);
}
.option-card.selected .option-icon { transform: scale(1.1); }
.option-icon { font-size: 2rem; margin-bottom: 6px; }
.option-label { font-size: 0.85rem; font-weight: 700; color: var(--brown); }
.option-sublabel { font-size: 0.75rem; color: var(--brown); opacity: 0.6; margin-top: 2px; }

/* ============================================================
   Allergen / Checkbox Options
   ============================================================ */
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid rgba(74, 55, 40, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  background: var(--cream);
}
.checkbox-label:hover { border-color: var(--gold); }
.checkbox-label input[type=checkbox] { display: none; }
.checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(74,55,40,0.2);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.7rem;
}
.checkbox-label.checked { border-color: var(--rose); background: rgba(232, 170, 170, 0.08); }
.checkbox-label.checked .checkbox-box {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}
.checkbox-text { flex: 1; }
.checkbox-text strong { display: block; font-size: 0.9rem; }
.checkbox-text span { font-size: 0.8rem; opacity: 0.6; }
.checkbox-surcharge { font-size: 0.8rem; color: var(--rose); font-weight: 700; }

/* ============================================================
   Sub-step Forms (step 6)
   ============================================================ */
.sub-step {
  display: none;
}
.sub-step.active { display: block; }
.sub-step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 168, 132, 0.2);
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid rgba(201, 168, 132, 0.2);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--brown);
  opacity: 0.5;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-weight: 700;
}
.tab-btn.active { opacity: 1; color: var(--gold-dark); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   Design Level Cards
   ============================================================ */
.design-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 2px solid rgba(74, 55, 40, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cream);
  margin-bottom: 12px;
  align-items: flex-start;
}
.design-card:hover { border-color: var(--gold); }
.design-card.selected { border-color: var(--gold); background: rgba(201,168,132,0.08); }
.design-card-icon { font-size: 2.5rem; flex-shrink: 0; }
.design-card-info { flex: 1; }
.design-card-title { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 4px; }
.design-card-desc { font-size: 0.85rem; opacity: 0.7; margin-bottom: 8px; }
.design-card-price { font-weight: 700; color: var(--gold-dark); font-size: 0.9rem; }
.design-card-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(74,55,40,0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 4px;
}
.design-card.selected .design-card-check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ============================================================
   Summary
   ============================================================ */
.summary-section { margin-bottom: 24px; }
.summary-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201,168,132,0.1);
  font-size: 0.9rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row strong { font-weight: 700; }
.summary-total {
  border-top: 2px solid rgba(201,168,132,0.2);
  margin-top: 16px;
  padding-top: 16px;
}
.summary-total .summary-row {
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
}
.deposit-note {
  background: rgba(139, 158, 122, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.85rem;
  margin-top: 16px;
}
.deposit-note strong { color: var(--sage); }

/* ============================================================
   Season/Sesong Quantity
   ============================================================ */
.sesong-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201,168,132,0.1);
}
.sesong-item:last-child { border-bottom: none; }
.sesong-info h4 { font-size: 1rem; margin-bottom: 2px; }
.sesong-info p { font-size: 0.85rem; opacity: 0.6; margin: 0; }
.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(74,55,40,0.15);
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.qty-value { font-weight: 700; min-width: 24px; text-align: center; font-size: 1rem; }

/* ============================================================
   Success Screen
   ============================================================ */
.success-screen {
  text-align: center;
  padding: 48px 36px;
}
.success-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}
.success-screen h2 { margin-bottom: 16px; }
.success-screen p { opacity: 0.7; max-width: 420px; margin: 0 auto 24px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .booking-card-header,
  .booking-card-body,
  .booking-card-footer { padding: 24px 20px; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .option-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .progress-step { display: none; }
  .progress-step.active, .progress-step.done:last-of-type { display: block; }
}
