/* ==========================================
   RESERVATION PAGE
   ========================================== */
.reservation-page {
  padding: 8rem 1.25rem 4rem;
  min-height: 100vh;
}

/* ---- Stepper ---- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2.5rem auto 3rem;
  max-width: 600px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--card);
  transition: all 0.3s;
}
.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.step.active .step-number {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.step.active .step-label { color: var(--gold); }
.step.done .step-number {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.step.done .step-label { color: var(--text); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  margin-bottom: 1.2rem;
  transition: background 0.3s;
}
.step-line.done { background: var(--gold); }

/* ---- Steps ---- */
.booking-step { max-width: 800px; margin: 0 auto; }
.booking-step.hidden { display: none; }
.step-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--white);
}

/* ---- Activity Grid ---- */
.activity-grid-booking {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.activity-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text);
  font-family: var(--font-body);
}
.activity-option:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.activity-option.selected {
  border-color: var(--gold);
  background: rgba(212,160,23,0.1);
  box-shadow: 0 0 16px rgba(212,160,23,0.2);
}
.ao-icon { font-size: 2rem; }
.ao-price {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

/* ---- Calendar ---- */
.calendar-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .calendar-wrapper { grid-template-columns: 1fr 280px; }
}
.calendar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-month {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.cal-nav {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.cal-nav:hover { color: var(--gold); background: rgba(255,255,255,0.05); }
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: default;
  color: var(--text-dim);
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: var(--font-body);
}
.cal-day.empty { visibility: hidden; }
.cal-day.available {
  color: var(--text);
  cursor: pointer;
  background: rgba(255,255,255,0.03);
}
.cal-day.available:hover {
  background: rgba(212,160,23,0.15);
  color: var(--gold);
}
.cal-day.selected {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}
.cal-day.today {
  border: 1px solid var(--gold);
}
.cal-day.past {
  color: var(--text-dim);
  opacity: 0.4;
}

/* Date details */
.date-details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.date-details-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}
.date-session {
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.date-session:hover { border-color: rgba(212,160,23,0.3); }
.date-session.selected { border-color: var(--gold); background: rgba(212,160,23,0.08); }
.date-session-time {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}
.date-session-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.date-session-spots {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* Participants */
.participants-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-weight: 600;
}
.participants-row.hidden { display: none; }
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--card);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--gold); color: var(--bg); }
.qty-selector input {
  width: 50px;
  height: 40px;
  text-align: center;
  background: var(--bg2);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
}

/* ---- Booking Form ---- */
.booking-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ---- Step Actions ---- */
.step-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---- Recap ---- */
.recap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.recap-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.recap-label { color: var(--text-muted); }
.recap-value { color: var(--white); font-weight: 600; }
.recap-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}
.recap-total .recap-value {
  color: var(--gold);
  font-size: 1.3rem;
}
.recap-total .recap-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* ---- Payment ---- */
.payment-methods {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}
.payment-methods h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.payment-option {
  cursor: pointer;
}
.payment-option input { display: none; }
.po-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: all 0.2s;
}
.payment-option input:checked + .po-content {
  border-color: var(--gold);
  background: rgba(212,160,23,0.08);
  color: var(--white);
}
.po-content:hover { border-color: rgba(212,160,23,0.4); }

/* Card form */
.card-form {
  max-width: 500px;
  margin: 1rem auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-form.hidden { display: none; }

.btn-pay {
  padding: 0.85rem 2.5rem;
  font-size: 1.05rem;
}

/* ---- Success ---- */
.success-container {
  text-align: center;
  padding: 3rem 1rem;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-size: 2.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: popIn 0.5s ease;
}
@keyframes popIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.success-desc {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.success-ref {
  background: var(--card);
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.success-ref strong { color: var(--gold); }

/* ==========================================
   RESPONSIVE — Reservation page
   ========================================== */
@media (max-width: 479px) {
  .reservation-page { padding: 6rem 1rem 3rem; }

  /* Stepper compact */
  .stepper { margin: 1.5rem auto 2rem; }
  .step-number { width: 30px; height: 30px; font-size: 0.8rem; }
  .step-label { font-size: 0.65rem; }
  .step-line { margin: 0 0.25rem; margin-bottom: 1rem; }

  .step-title { font-size: 1.15rem; }

  /* Activity options */
  .activity-grid-booking { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .activity-option { padding: 1rem 0.75rem; }
  .ao-icon { font-size: 1.5rem; }
  .activity-option strong { font-size: 0.85rem; text-align: center; }

  /* Calendar */
  .calendar { padding: 1rem; }
  .cal-day { font-size: 0.8rem; }

  /* Forms */
  .booking-form { padding: 1.25rem; }
  .card-form { padding: 1rem; }

  /* Recap */
  .recap-card { padding: 1.25rem; }
  .recap-row { font-size: 0.9rem; }

  /* Actions */
  .step-actions { flex-direction: column; align-items: stretch; }
  .step-actions .btn { justify-content: center; min-height: 44px; }

  /* Pay button */
  .btn-pay { padding: 0.85rem 1.5rem; font-size: 0.95rem; }

  /* Payment options */
  .po-content { padding: 0.75rem; font-size: 0.9rem; }

  /* Success */
  .success-container { padding: 2rem 0.5rem; }
  .success-icon { width: 60px; height: 60px; font-size: 2rem; }
}

@media (min-width: 480px) and (max-width: 699px) {
  .reservation-page { padding: 7rem 1.25rem 3rem; }
  .activity-grid-booking { grid-template-columns: repeat(2, 1fr); }
}

/* Touch-friendly inputs on mobile */
@media (max-width: 767px) {
  .booking-form input,
  .booking-form textarea,
  .card-form input {
    font-size: 1rem;
    min-height: 44px;
  }
  .qty-btn { width: 44px; height: 44px; }
  .qty-selector input { width: 54px; height: 44px; }
}
