/* ================================================================
   BOOKING PAGE STYLES
   ================================================================ */

/* ===== HERO ===== */
.booking-hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--darker) 0%, var(--dark) 40%, var(--secondary) 100%);
  text-align: center;
}

.booking-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(247, 127, 0, 0.2) 0%, transparent 40%);
}

.booking-hero-content { position: relative; z-index: 2; }

.booking-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.6s ease-out;
}

.booking-hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.booking-hero > .container > p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}

.hero-trust-signals {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.trust-item i { color: var(--primary-light); }

.booking-hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.booking-hero-wave svg { display: block; width: 100%; }

/* ===== BOOKING MAIN ===== */
.booking-main {
  padding: 40px 0 80px;
  background: var(--light);
  min-height: 60vh;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light);
  transition: all 0.4s ease;
}

.step-circle i { display: none; font-size: 1rem; }

.progress-step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 119, 182, 0.3);
}

.progress-step.completed .step-circle {
  background: var(--success, #10b981);
  border-color: var(--success, #10b981);
  color: #fff;
}

.progress-step.completed .step-circle span { display: none; }
.progress-step.completed .step-circle i { display: block; }

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-lighter);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
  color: var(--dark);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  max-width: 120px;
}

.progress-line.active {
  background: var(--primary);
}

/* ===== STEP CONTENT ===== */
.booking-step {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.4s ease-out;
}

.step-header {
  margin-bottom: 2rem;
}

.step-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.step-number-text {
  color: var(--primary);
}

.step-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ===== SCHOOL CARDS ===== */
.schools-booking-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}


.school-booking-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.school-booking-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.school-booking-card.selected {
  border-color: var(--primary);
  background: rgba(0, 119, 182, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.school-booking-card.contact-school {
  opacity: 0.75;
  cursor: default;
}

.sbc-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.sbc-icon.international {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.sbc-content { flex: 1; }

.sbc-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.sbc-location {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.sbc-location i { color: var(--primary); font-size: 0.75rem; }

.sbc-details {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.sbc-details span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text);
}

.sbc-details span i { color: var(--primary); font-size: 0.75rem; }

.sbc-price {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.sbc-per-session {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.sbc-per-session small {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}

.sbc-total {
  font-size: 0.82rem;
  color: var(--text-light);
}

.sbc-contact-note {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
}

.sbc-status { margin-left: auto; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.open {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-badge.open i { font-size: 0.5rem; animation: pulse 2s ease-in-out infinite; }

.status-badge.contact {
  background: rgba(0, 119, 182, 0.1);
  color: var(--primary);
}

.status-badge.closed {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.school-booking-card.closed-school {
  opacity: 0.6;
  cursor: default;
}

.sbc-select-indicator {
  color: var(--primary);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.school-booking-card.selected .sbc-select-indicator { opacity: 1; }

/* Selected Summary */
.selected-school-summary {
  padding: 1.25rem 1.5rem;
  background: rgba(0, 119, 182, 0.04);
  border: 1px solid rgba(0, 119, 182, 0.15);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.summary-header h3 { font-size: 1rem; color: var(--dark); }
.summary-header h3 span { color: var(--primary); }
.summary-header i { font-size: 1.1rem; }

.summary-details {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text);
}

.summary-item i { color: var(--primary); font-size: 0.85rem; }

/* ===== FORM STYLES ===== */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.form-section-title i { color: var(--primary); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.required { color: #dc2626; }

.form-hint {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.35rem;
  min-height: 1rem;
}

.consent-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  border-color: var(--primary-light);
  background: rgba(0, 119, 182, 0.02);
}

.radio-option input { display: none; }

.radio-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.radio-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.radio-option input:checked + .radio-custom {
  border-color: var(--primary);
}

.radio-option input:checked + .radio-custom::after {
  transform: scale(1);
}

.radio-option input:checked ~ .radio-label {
  color: var(--dark);
  font-weight: 500;
}

.radio-label {
  font-size: 0.92rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-label i { font-size: 0.85rem; }
.text-success { color: #10b981; }
.text-danger { color: #dc2626; }

/* Checkbox */
.terms-checkbox {
  margin: 1.5rem 0;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.checkbox-option input { display: none; }

.checkbox-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 4px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.checkbox-option input:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-option input:checked + .checkbox-custom::after {
  opacity: 1;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.checkbox-label a { color: var(--primary); text-decoration: underline; }

/* ===== STEP ACTIONS ===== */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-ghost:hover { color: var(--primary); background: rgba(0,119,182,0.05); }

.btn-submit { min-width: 220px; }

/* ===== REVIEW CARDS ===== */
.review-container { margin-bottom: 1rem; }

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.review-card-header i { color: var(--primary); font-size: 1.1rem; }

.review-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--dark);
  flex: 1;
}

.edit-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.edit-btn:hover { background: rgba(0,119,182,0.06); }

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-item-value {
  font-size: 0.92rem;
  color: var(--dark);
  font-weight: 500;
}

/* Payment Summary */
.payment-summary { border: 2px solid var(--primary); }

.payment-details { margin-bottom: 1rem; }

.payment-line {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.92rem;
  color: var(--text);
}

.payment-line.total {
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
}

.payment-note {
  font-size: 0.82rem;
  color: var(--text-light);
  background: var(--light);
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.5;
}

.payment-note i { color: var(--primary); margin-top: 3px; }

/* ===== SUCCESS ===== */
.success-container {
  text-align: center;
  padding: 3rem;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.success-icon {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.success-container h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.success-container > p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.success-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  text-align: left;
}

.success-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--light);
  border-radius: var(--radius-sm);
}

.success-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; }
.success-item strong { display: block; color: var(--dark); margin-bottom: 0.15rem; }
.success-item span { font-size: 0.88rem; color: var(--text-light); }

.success-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.success-note {
  font-size: 0.88rem;
  color: var(--text-light);
}

.success-note a { color: var(--primary); font-weight: 600; }

.pending-icon { color: #d97706 !important; }

.success-ref-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 12px 28px;
  margin-bottom: 2rem;
}

.success-ref-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #92400e;
}

.success-ref-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #78350f;
  letter-spacing: 1px;
}

/* ===== FAQ ===== */
.booking-faq {
  padding: 60px 0 80px;
  background: #fff;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item-detail {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item-detail[open] {
  box-shadow: var(--shadow-sm);
  border-color: rgba(0,119,182,0.15);
}

.faq-item-detail summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.faq-item-detail summary::-webkit-details-marker { display: none; }
.faq-item-detail summary i { color: var(--primary); width: 20px; text-align: center; }

.faq-item-detail p {
  padding: 0 1.25rem 1.25rem 3.25rem;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .booking-hero { padding: 120px 0 80px; }
  .booking-hero h1 { font-size: 2rem; }
  .hero-trust-signals { flex-direction: column; align-items: center; gap: 0.75rem; }
  
  .progress-bar { flex-wrap: wrap; gap: 0.5rem; padding: 1.5rem 1rem; }
  .progress-line { display: none; }
  .step-label { font-size: 0.7rem; }
  .step-circle { width: 40px; height: 40px; font-size: 0.85rem; }
  
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .review-grid { grid-template-columns: 1fr; }
  
  .school-booking-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .sbc-status { margin-left: 0; }
  .sbc-select-indicator { position: absolute; top: 1rem; right: 1rem; }
  
  .summary-details { flex-direction: column; gap: 0.5rem; }
  .step-actions { flex-direction: column-reverse; gap: 1rem; }
  .step-actions .btn { width: 100%; justify-content: center; }
  
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; justify-content: center; }
}