/* ============================================
   BOOKING SYSTEM — Volt Raceway
   ============================================ */

/* ---- BOOKING HERO ---- */
.booking-hero {
  padding: 8rem 0 2rem;
  background: linear-gradient(135deg, var(--black) 0%, #1a0a0e 100%);
  position: relative;
  overflow: hidden;
}
.booking-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(227,24,55,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.booking-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.booking-hero-content p {
  color: var(--gray-400); font-size: 1.1rem;
}
.checkout-hero { padding-bottom: 1.5rem; }

/* ---- CART FLOAT ---- */
.cart-float {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 900;
  animation: slideUp 0.4s ease-out;
}
.cart-float-inner {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--black-card);
  border: 1px solid var(--red);
  border-radius: 60px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px var(--red-glow);
}
.cart-float-icon { font-size: 1.2rem; }
.cart-float-count {
  background: var(--red); color: white;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
}
.cart-float-text { color: var(--gray-400); font-size: 0.85rem; }
.cart-float-total {
  font-family: var(--font-display); font-weight: 700;
  color: var(--white); font-size: 1.1rem;
}
.cart-float .btn-sm { padding: 0.5rem 1.2rem; font-size: 0.75rem; }

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---- STEPS ---- */
.booking-steps {
  background: var(--black-light);
  border-bottom: 1px solid var(--gray-800);
  padding: 1.5rem 0;
}
.steps-track {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  opacity: 0.35; transition: all 0.3s;
}
.step.active, .step.done { opacity: 1; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  border: 2px solid var(--gray-700); color: var(--gray-500);
  transition: all 0.3s;
}
.step.active .step-num {
  background: var(--red); border-color: var(--red); color: var(--white);
}
.step.done .step-num {
  background: var(--red); border-color: var(--red); color: var(--white);
  font-size: 1rem;
}
.step-label {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500);
}
.step.active .step-label { color: var(--white); }
.step.done .step-label { color: var(--gray-300); }
.step-line {
  width: 60px; height: 2px; background: var(--gray-800);
  margin: 0 0.75rem; margin-bottom: 1.2rem;
}
.step-line.done, .step-line.active { background: var(--red); }

/* ---- CATEGORY FILTER ---- */
.category-filter {
  display: flex; gap: 0.5rem; margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 0.55rem 1.4rem;
  background: var(--black-card); border: 1px solid var(--gray-800);
  color: var(--gray-400); border-radius: 50px; cursor: pointer;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.25s;
}
.cat-btn:hover { border-color: var(--gray-700); color: var(--white); }
.cat-btn.active {
  background: var(--red); border-color: var(--red); color: var(--white);
}

/* ---- VENUE GRID ---- */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.venue-card {
  background: var(--black-card);
  border: 1px solid var(--gray-800);
  border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: all 0.35s;
  position: relative;
}
.venue-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px var(--red-glow);
}
.venue-card-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
}
.venue-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.venue-card:hover .venue-card-img img { transform: scale(1.05); }
.venue-card-category {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.3rem 0.75rem;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px;
}
.venue-card-price {
  position: absolute; bottom: 1rem; right: 1rem;
  padding: 0.35rem 0.8rem;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--white);
}
.venue-card-body { padding: 1.25rem 1.5rem; }
.venue-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.venue-card-body p {
  color: var(--gray-400); font-size: 0.9rem; line-height: 1.5;
  margin-bottom: 0.75rem;
}
.venue-card-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.venue-meta-item {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; color: var(--gray-500);
}
.venue-meta-item strong { color: var(--gray-300); }

/* ---- MODAL ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--black-light);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--gray-700);
  color: var(--white); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; z-index: 10;
}
.modal-close:hover { background: var(--red); border-color: var(--red); }

.modal-header {
  display: flex; gap: 1.5rem; padding: 1.5rem;
  border-bottom: 1px solid var(--gray-800);
}
.modal-venue-img {
  width: 180px; height: 130px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  background: var(--gray-900);
}
.modal-venue-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-venue-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.modal-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.modal-meta-item {
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  font-size: 0.8rem; color: var(--gray-300);
}
.modal-venue-info p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.5; }

.modal-section { padding: 1.5rem; border-bottom: 1px solid var(--gray-800); }
.modal-section h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 1rem;
}

/* ---- DATE PICKER ---- */
.date-picker {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.date-btn {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  background: var(--black-card); border: 1px solid var(--gray-800);
  border-radius: 10px; cursor: pointer;
  text-align: center; transition: all 0.2s;
  min-width: 80px;
}
.date-btn:hover { border-color: var(--gray-600); }
.date-btn.selected { background: var(--red); border-color: var(--red); }
.date-btn .date-day {
  display: block; font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 0.25rem;
}
.date-btn.selected .date-day { color: rgba(255,255,255,0.8); }
.date-btn .date-num {
  display: block; font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; color: var(--white);
  line-height: 1;
}
.date-btn .date-month {
  display: block; font-size: 0.65rem; color: var(--gray-500);
  margin-top: 0.15rem;
}
.date-btn.selected .date-month { color: rgba(255,255,255,0.7); }

/* ---- QUANTITY PICKER ---- */
.qty-picker {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--gray-700); border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 44px; height: 44px;
  background: var(--black-card); border: none;
  color: var(--white); font-size: 1.2rem;
  cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--gray-800); }
.qty-value {
  width: 50px; text-align: center;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--white);
}
.qty-subtotal {
  margin-top: 0.75rem;
  font-family: var(--font-display); font-size: 0.9rem;
  color: var(--gray-400);
}
.qty-subtotal strong { color: var(--red); font-size: 1.1rem; }

/* ---- TIME SLOTS ---- */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  max-height: 280px; overflow-y: auto;
  padding-right: 0.5rem;
}
.time-slot {
  padding: 0.65rem 0.5rem;
  background: var(--black-card); border: 1px solid var(--gray-800);
  border-radius: 8px; text-align: center;
  cursor: pointer; transition: all 0.2s;
}
.time-slot:hover:not(.unavailable) { border-color: var(--red); background: rgba(227,24,55,0.08); }
.time-slot.selected { background: var(--red); border-color: var(--red); }
.time-slot.unavailable {
  opacity: 0.3; cursor: not-allowed;
  text-decoration: line-through;
}
.time-slot .slot-time {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  color: var(--white);
}
.time-slot .slot-avail {
  font-size: 0.65rem; color: var(--gray-500); margin-top: 0.15rem;
}
.time-slot.selected .slot-avail { color: rgba(255,255,255,0.7); }
.time-slot.low .slot-avail { color: #f59e0b; }

/* ---- MODAL FOOTER ---- */
.modal-footer { padding: 1.5rem; }
.btn-full { width: 100%; justify-content: center; font-size: 1rem; }
.btn-full:disabled {
  background: var(--gray-800); color: var(--gray-500);
  cursor: not-allowed; transform: none; box-shadow: none;
}

/* ---- LOADING ---- */
.loading-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem; gap: 1rem;
  color: var(--gray-500);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-800);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- CHECKOUT ---- */
.checkout-layout {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem;
  align-items: start;
}
.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 1.25rem;
}

/* Cart Items */
.checkout-item {
  display: flex; gap: 1rem; padding: 1rem;
  background: var(--black-card); border: 1px solid var(--gray-800);
  border-radius: 10px; margin-bottom: 0.75rem;
  position: relative;
}
.checkout-item-img {
  width: 80px; height: 60px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0;
}
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-info { flex: 1; }
.checkout-item-info h4 {
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 600; text-transform: uppercase; margin-bottom: 0.25rem;
}
.checkout-item-info .item-detail {
  font-size: 0.8rem; color: var(--gray-500);
}
.checkout-item-price {
  font-family: var(--font-display); font-weight: 700;
  color: var(--white); font-size: 1rem; white-space: nowrap;
}
.checkout-item-remove {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: none;
  color: var(--gray-500); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all 0.2s;
}
.checkout-item-remove:hover { background: var(--red); color: white; }

.add-more-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--gray-700); border-radius: 10px;
  color: var(--gray-400); font-size: 0.9rem;
  transition: all 0.2s; margin-bottom: 2rem;
}
.add-more-link:hover { border-color: var(--red); color: var(--red); }
.add-more-link span {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(227,24,55,0.15); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Food Grid */
.checkout-food-section { margin-bottom: 2rem; }
.checkout-food-desc { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1rem; }
.food-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.food-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem;
  background: var(--black-card); border: 1px solid var(--gray-800);
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.food-card:hover { border-color: var(--gray-600); }
.food-card.in-cart { border-color: var(--red); background: rgba(227,24,55,0.05); }
.food-card-info { flex: 1; }
.food-card-info h5 {
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; margin-bottom: 0.15rem;
}
.food-card-info span { font-size: 0.75rem; color: var(--gray-500); }
.food-card-price {
  font-family: var(--font-display); font-weight: 700;
  color: var(--red); font-size: 0.9rem;
}
.food-card-qty {
  display: flex; align-items: center; gap: 0.25rem;
}
.food-qty-btn {
  width: 24px; height: 24px; border-radius: 4px;
  background: var(--gray-800); border: none;
  color: white; cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.food-qty-btn:hover { background: var(--red); }
.food-qty-val {
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 700; min-width: 20px; text-align: center;
}

/* Order Summary */
.order-summary {
  background: var(--black-card); border: 1px solid var(--gray-800);
  border-radius: 12px; padding: 1.5rem;
}
.summary-lines { margin-bottom: 1rem; }
.summary-line {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0; font-size: 0.9rem;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-800);
}
.summary-line:last-child { border-bottom: none; }
.summary-line .line-price { color: var(--white); font-weight: 500; }
.summary-total {
  display: flex; justify-content: space-between;
  padding-top: 1rem; border-top: 2px solid var(--red);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.summary-total span:last-child { color: var(--red); }

/* Payment Form */
.checkout-payment {
  position: sticky; top: 100px;
}
.checkout-form { }
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--font-display); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-400);
}
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--black-card); border: 1px solid var(--gray-800);
  border-radius: 8px; color: var(--white);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--gray-700);
}

.payment-card-wrap {
  background: var(--black-card); border: 1px solid var(--gray-800);
  border-radius: 10px; padding: 1rem;
  margin-bottom: 1.5rem;
}
#card-container { min-height: 50px; }

.checkout-btn {
  gap: 1rem; font-size: 1.05rem; padding: 1rem 2rem;
}
.pay-amount {
  background: rgba(255,255,255,0.15); padding: 0.25rem 0.75rem;
  border-radius: 4px;
}
.checkout-secure {
  text-align: center; color: var(--gray-500);
  font-size: 0.8rem; margin-top: 1rem;
}

/* ---- CONFIRMATION ---- */
.confirm-modal { text-align: center; padding: 3rem 2rem; max-width: 500px; }
.confirm-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700;
  margin: 0 auto 1.5rem;
}
.confirm-modal h2 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.confirm-ref {
  color: var(--gray-400); font-size: 1rem; margin-bottom: 1.5rem;
}
.confirm-ref strong { color: var(--red); }
#confirmDetails {
  text-align: left; margin-bottom: 1.5rem;
  background: var(--black-card); border-radius: 10px; padding: 1rem;
}
.confirm-email {
  color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1.5rem;
}
.confirm-email strong { color: var(--white); }
.confirm-actions { display: flex; gap: 1rem; justify-content: center; }

/* ---- EMPTY CART ---- */
.empty-cart {
  text-align: center; padding: 4rem 2rem;
}
.empty-cart-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-cart h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.empty-cart p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .venue-grid { grid-template-columns: 1fr; }
  .modal { margin: 1rem; max-height: 95vh; border-radius: 12px; }
  .modal-header { flex-direction: column; }
  .modal-venue-img { width: 100%; height: 160px; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-payment { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .steps-track { gap: 0; }
  .step-line { width: 30px; margin: 0 0.3rem; }
  .step-label { font-size: 0.55rem; }
  .cart-float-text { display: none; }
  .food-grid { grid-template-columns: 1fr; }
  .date-picker { gap: 0.35rem; }
  .date-btn { min-width: 65px; padding: 0.6rem 0.7rem; }
}
