/* ============================================================
   Booking Page – Mobile & Responsive Overrides
   Loaded after pages.css so these take precedence.
   ============================================================ */

/* Hide "Why Choose Us" box on mobile */
@media (max-width: 768px) {
  .booking-sidebar > .summary-box:first-child {
    display: none;
  }
}

/* Ensure the booking layout stacks properly on tablets & phones */
@media (max-width: 1024px) {
  .booking-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .booking-sidebar {
    position: static !important;
  }
}

/* Tighter spacing and full-width controls on small screens */
@media (max-width: 768px) {
  /* Page title tweak */
  .booking-layout + h2,
  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
  }

  /* Card padding reduction */
  .booking-form-section {
    padding: 1rem !important;
  }

  .summary-box {
    padding: 1rem !important;
  }

  /* Stack form rows vertically */
  .booking-form-section .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
  }

  .booking-form-section .form-group {
    width: 100% !important;
    margin-bottom: 0.75rem;
  }

  /* Full-width form controls */
  .booking-form-section input,
  .booking-form-section select,
  .booking-form-section textarea,
  .booking-form-section .form-control {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Summary rows stay horizontal but tighter */
  .summary-row {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }

  .summary-row .label {
    font-size: 0.85rem;
  }

  .summary-row .value {
    font-size: 0.9rem;
  }

  /* Submit button full width with good tap area */
  #submit-btn {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
  }

  /* Sidebar gets a top margin when stacked below form */
  .booking-sidebar {
    margin-top: 0.5rem;
  }

  /* Account info grid stacks on small screens */
  .booking-form-section div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* Extra-small screens (phones in portrait) */
@media (max-width: 480px) {
  .booking-form-section {
    padding: 0.75rem !important;
  }

  .summary-box {
    padding: 0.75rem !important;
  }

  .booking-form-section h3 {
    font-size: 1.05rem;
  }

  .summary-box h3 {
    font-size: 1.05rem;
  }

  /* Tighter summary rows */
  .summary-row {
    padding: 0.4rem 0;
  }
}
