/* ============================
   PlayBox Kashmir - Booking Page Styles
   ============================ */

.booking-page { background: #f3f4f6; }

/* Booking Hero */
.booking-hero {
  background: linear-gradient(135deg, #111827 0%, #14532d 50%, #111827 100%);
  padding: 120px 2rem 2.5rem;
  text-align: center;
}

.booking-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.booking-hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Booking Steps Indicator */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.bstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.bstep.active, .bstep.completed { opacity: 1; }

.bstep-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.bstep.active .bstep-num {
  background: #15803d;
  border-color: #22c55e;
}

.bstep.completed .bstep-num {
  background: #10b981;
  border-color: #10b981;
}

.bstep-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  white-space: nowrap;
}

.bstep-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.2);
  min-width: 30px;
  max-width: 60px;
  margin-bottom: 20px;
}

/* Back to Home btn */
.btn-back-home {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-back-home:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Booking Container */
.booking-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Step Cards */
.booking-step {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.step-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;
}

.step-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.4rem;
}

.step-header p { color: #6b7280; font-size: 0.95rem; }

/* Sports Grid */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sport-card {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.sport-card:hover { border-color: #15803d; box-shadow: 0 8px 24px rgba(21,128,61,0.15); }
.sport-card.selected { border-color: #15803d; background: rgba(21,128,61,0.03); }

.sport-img { height: 140px; overflow: hidden; }
.sport-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.sport-card:hover .sport-img img { transform: scale(1.05); }

.sport-info { padding: 1.25rem; }

.sport-icon-wrap {
  width: 40px; height: 40px;
  background: rgba(21,128,61,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}

.sport-icon-wrap i { color: #15803d; font-size: 1.2rem; }

.sport-info h3 { font-size: 1.1rem; font-weight: 700; color: #111827; margin-bottom: 0.25rem; }
.sport-info p { font-size: 0.85rem; color: #6b7280; margin-bottom: 0.5rem; }
.sport-price { font-size: 0.85rem; font-weight: 700; color: #15803d; }

.sport-check {
  position: absolute;
  top: 1rem; right: 1rem;
  color: #15803d;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.sport-card.selected .sport-check { opacity: 1; }

/* Facility Selector */
.facility-selector {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.facility-selector-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.facilities-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.facility-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  background: #fff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.facility-btn:hover { border-color: #15803d; color: #15803d; }
.facility-btn.selected { background: #15803d; border-color: #15803d; color: #fff; }

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
}

.btn-next {
  background: #15803d;
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  margin-left: auto;
}

.btn-next:hover:not(:disabled) { background: #1e40af; transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-back {
  background: #f3f4f6;
  color: #374151;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-back:hover { background: #e5e7eb; }

/* Calendar */
.datetime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.calendar-section {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.5rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cal-month-year { font-size: 1rem; font-weight: 700; color: #111827; }

.cal-nav {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 32px; height: 32px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: #374151;
  transition: all 0.2s;
}

.cal-nav:hover { background: #15803d; color: #fff; border-color: #15803d; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

#calDays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  grid-column: 1 / -1;
  width: 100%;
}

.cal-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  padding: 0.25rem;
  text-transform: uppercase;
}

.cal-day {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  color: #374151;
}

.cal-day:hover:not(.disabled):not(.empty) { background: rgba(21,128,61,0.1); color: #15803d; }
.cal-day.today { background: rgba(245,158,11,0.15); color: #d97706; font-weight: 700; }
.cal-day.selected { background: #15803d; color: #fff !important; }
.cal-day.disabled { color: #d1d5db; cursor: not-allowed; opacity: 0.4; }
.cal-day.empty { cursor: default; }

/* Time Slots */
.slots-section { padding-left: 1rem; }

.selected-date-display {
  background: rgba(21,128,61,0.08);
  border: 1px solid rgba(21,128,61,0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #15803d;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-height: 200px;
}

.slots-placeholder {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #9ca3af;
  padding: 2rem;
  text-align: center;
}

.slots-placeholder i { font-size: 2rem; }
.slots-placeholder p { font-size: 0.9rem; }

.slot-btn {
  padding: 0.9rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.slot-btn:hover:not(.booked):not(.selected) {
  border-color: #15803d;
  background: rgba(21,128,61,0.05);
}

.slot-btn .slot-time { font-size: 0.875rem; font-weight: 700; color: #111827; display: block; }
.slot-btn .slot-price { font-size: 0.75rem; color: #6b7280; }

.slot-btn.selected { background: #15803d; border-color: #15803d; }
.slot-btn.selected .slot-time,
.slot-btn.selected .slot-price { color: #fff; }

.slot-btn.booked { background: #f9fafb; border-color: #e5e7eb; cursor: not-allowed; opacity: 0.6; }
.slot-btn.booked .slot-time { color: #9ca3af; text-decoration: line-through; }

.slot-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #6b7280; }

.legend-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-dot.available { background: #fff; border: 2px solid #e5e7eb; }
.legend-dot.booked { background: #f9fafb; border: 2px solid #e5e7eb; }
.legend-dot.selected { background: #15803d; border: 2px solid #15803d; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.form-full { grid-column: span 2; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #111827;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21,128,61,0.1);
}

.field-error { color: #ef4444; font-size: 0.8rem; margin-top: 0.25rem; display: block; }

/* Booking Summary */
.booking-summary {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.booking-summary h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: #6b7280; }
.summary-row .value { color: #111827; font-weight: 600; }

/* Promo Code */
.promo-section {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.promo-section h4 { font-size: 0.9rem; font-weight: 700; color: #374151; margin-bottom: 0.75rem; }

.promo-input-wrap { display: flex; gap: 0.75rem; }

.promo-input-wrap input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.promo-input-wrap input:focus { border-color: #15803d; }

.btn-apply-promo {
  background: #15803d;
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-apply-promo:hover { background: #1e40af; }

.promo-result { margin-top: 0.5rem; font-size: 0.85rem; }
.promo-result.success { color: #10b981; }
.promo-result.error { color: #ef4444; }

/* Payment Layout */
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.order-summary {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.5rem;
}

.order-summary h3 { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 1.25rem; }

.price-breakdown { margin-top: 1.5rem; border-top: 1px solid #e5e7eb; padding-top: 1rem; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #374151;
}

.total-row {
  border-top: 2px solid #e5e7eb;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1rem;
  color: #111827;
}

/* Payment Section */
.payment-section { display: flex; flex-direction: column; gap: 1.25rem; }

.secure-badge {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 600;
}

.payment-methods {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pm-item {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cancellation-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #92400e;
}

.cancellation-notice i { flex-shrink: 0; margin-top: 2px; color: #d97706; }

.btn-pay {
  background: #15803d;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(21,128,61,0.4);
  width: 100%;
}

.btn-pay:hover { background: #1e40af; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(21,128,61,0.5); }

.payment-note {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Confirmation Screen */
.confirmation-screen { text-align: center; padding: 2rem 1rem; }

.confirm-icon {
  font-size: 5rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  animation: confirmPop 0.6s ease;
}

@keyframes confirmPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.confirmation-screen h2 { font-size: 2rem; font-weight: 900; color: #111827; margin-bottom: 0.75rem; }
.confirmation-screen p { color: #6b7280; font-size: 1.05rem; margin-bottom: 2rem; }

.confirm-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  text-align: left;
}

.confirm-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-home {
  background: #111827;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-home:hover { background: #1f2937; }

.btn-book-another {
  background: var(--primary, #15803d);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 1rem;
}

.btn-book-another:hover { background: #1e40af; }

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.loading-spinner { text-align: center; color: #fff; }

.spinner {
  width: 56px; height: 56px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #15803d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

#loadingText { font-size: 1rem; font-weight: 600; }

/* Reservation Timer */
.reservation-timer {
  position: fixed;
  top: 80px; right: 1rem;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  z-index: 1001;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.timer-content { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.timer-content i { color: #f59e0b; }
.timer-content strong { color: #f59e0b; font-size: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  .booking-step { padding: 1.5rem; }
  .datetime-grid { grid-template-columns: 1fr; }
  .slots-section { padding-left: 0; margin-top: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }
  .payment-layout { grid-template-columns: 1fr; }
  .sports-grid { grid-template-columns: 1fr; }
  .booking-steps { gap: 0.25rem; }
  .bstep-label { font-size: 0.65rem; }
  .bstep-connector { min-width: 15px; }
}

/* ===== COMING SOON (booking) ===== */
.sport-card.coming-soon-card { opacity: 0.7; cursor: not-allowed; pointer-events: none; }
.sport-card.coming-soon-card img { filter: grayscale(70%); }
.sport-card.coming-soon-card .sport-info h3,
.sport-card.coming-soon-card .sport-info p { color: #6b7280; }
.sport-card.coming-soon-card .sport-check { display: none; }
.coming-soon-tag { color: #6b7280 !important; font-weight: 700; }
.sport-img { position: relative; }
.coming-soon-ribbon {
  position: absolute; top: 12px; right: 12px;
  background: #6b7280; color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 50px; text-transform: uppercase;
}
