* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3b5323; /* Forest Green from logo */
  --primary-dark: #2b3d19; /* Dark Forest Green for hover */
  --accent: #d9f522;
  --dark: #14220c; /* Deep Olive Black matching logo background */
  --gray: #556652; /* Slate Sage Gray */
  --light: #f4f6f3; /* Light Sage White */
  --border: #d0dbcd; /* Subtle Light Sage Border */
  --white: #ffffff;
  --success: #2e7d32;
  --danger: #d32f2f;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Anchor targets clear the sticky navbar */
[id] {
  scroll-margin-top: 5.5rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly elements */
button,
a,
input,
select {
  -webkit-tap-highlight-color: rgba(59, 83, 35, 0.2);
}

/* Improve touch targets */
.btn,
.nav-link,
.court-card {
  min-height: 44px;
  min-width: 44px;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--dark);
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-ball {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-text .accent {
  color: var(--primary);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-btn {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.9375rem;
  min-height: auto;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background: #c9e60f;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--dark);
}

/* Hero */
.hero {
  background: radial-gradient(1100px 520px at 82% -12%, rgba(217, 245, 34, 0.10), transparent 60%),
              linear-gradient(135deg, #14220c 0%, #3b5323 100%);
  color: white;
  padding: 4rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(217, 245, 34, 0.15);
  border: 1px solid rgba(217, 245, 34, 0.3);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.court-illustration {
  width: 100%;
  max-width: 400px;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--light);
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: 2.25rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--gray);
  font-size: 1.125rem;
}

/* Courts Showcase */
.courts-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.showcase-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.showcase-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.showcase-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

.showcase-card h3 {
  margin-bottom: 0.5rem;
}

.showcase-card p {
  color: var(--gray);
  font-size: 0.9375rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid var(--accent);
}

.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(59, 83, 35, 0.15);
  margin-bottom: 0.5rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--gray);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.price-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.price-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 50px;
}

.price-card h3 {
  color: var(--gray);
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
}

.price-per {
  display: block;
  font-size: 0.875rem;
  color: var(--success);
  margin: 0.5rem 0 1.5rem;
}

.price-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.price-card li {
  padding: 0.5rem 0;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}

.price-card li:last-child {
  border-bottom: none;
}

/* Booking */
.wizard-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.steps-indicator {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin-bottom: 2rem;
}

.step-ind {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.875rem;
}

.step-dot {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--border);
  color: var(--gray);
  font-weight: 700;
}

.step-ind.active {
  color: var(--primary);
}

.step-ind.active .step-dot {
  background: var(--primary);
  color: white;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.wizard-hint {
  text-align: center;
  color: var(--gray);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.wizard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.wizard-actions .btn {
  flex: 1;
}

/* Forms */
fieldset {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

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

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 83, 35, 0.15);
}

a:focus-visible,
button:focus-visible,
.court-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.selected-court-line {
  background: var(--light);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Court Grid */
.court-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.court-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.court-card:hover {
  border-color: var(--primary);
}

.court-card.selected {
  border-color: var(--primary);
  background: #f0f7eb;
}

.court-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.court-card.selected .court-number {
  background: var(--accent);
  color: var(--dark);
}

.court-name {
  font-weight: 600;
}

.court-status {
  font-size: 0.75rem;
  color: var(--gray);
}

.court-status.available {
  color: var(--success);
}

/* Payment */
.booking-summary {
  background: var(--light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.booking-summary h3 {
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-item.total {
  border-top: 2px solid var(--primary);
  border-bottom: none;
  font-weight: 700;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.pay-option {
  border: 2px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.pay-option:has(input:checked),
.pay-option-selected {
  border-color: var(--primary);
  background: #f0f7eb;
}

.pay-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option-body {
  padding: 1rem;
}

.pay-option-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pay-option-icon {
  font-size: 1.5rem;
}

.gcash-details,
.counter-details {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.gcash-details.expanded,
.counter-details.expanded {
  display: block;
}

.gcash-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.gcash-qr {
  width: 150px;
  height: 150px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: white;
  display: block;
  margin: 0 auto;
}

.btn-view-qr {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.25rem;
}

.btn-view-qr:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* QR Full-view Modal */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: pointer;
}

.qr-modal.open {
  display: flex;
  animation: fadeInQr 0.2s ease;
}

@keyframes fadeInQr {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.qr-modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  max-width: 340px;
  width: 100%;
  cursor: default;
  animation: scaleInQr 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleInQr {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.qr-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  background: var(--light);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qr-modal-close:hover {
  background: var(--border);
  color: var(--dark);
}

.qr-modal-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.qr-modal-img {
  width: 240px;
  height: 240px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: white;
  display: block;
  margin: 0 auto 1rem;
}

.qr-modal-hint {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.gcash-number-box {
  background: var(--light);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.gcash-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin: 0.25rem 0;
}

/* GCash reference fill-up form */
.gcash-ref-form {
  background: #f0f7ff;
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.gcash-ref-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.gcash-ref-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.gcash-ref-header strong {
  display: block;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.gcash-ref-header p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
}

.gcash-ref-label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  cursor: default;
}

.gcash-ref-input-group {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: border-color 0.2s;
}

.gcash-ref-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 83, 35, 0.12);
}

.gcash-ref-prefix {
  background: var(--light);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  border-right: 2px solid var(--border);
  white-space: nowrap;
  user-select: none;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.gcash-ref-input-group input#gcashRef {
  border: none !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex: 1;
  width: 100%;
  box-shadow: none !important;
  background: white;
  color: var(--dark);
  cursor: text;
  pointer-events: auto !important;
  -webkit-user-select: text !important;
  user-select: text !important;
  outline: none;
}

.gcash-ref-input-group input#gcashRef:focus {
  outline: none;
  box-shadow: none !important;
  border: none !important;
}

.gcash-ref-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.5rem;
  font-style: italic;
}

.qr-note {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--dark);
  color: white;
  border-radius: 8px;
  font-weight: 600;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--gray);
}

.close:hover {
  color: var(--dark);
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-size: 2rem;
  font-weight: bold;
}

.success-modal-content {
  text-align: center;
}

.success-text {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.receipt-summary {
  background: var(--light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-note {
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   RESPONSIVE — Mobile-first fixes
   ============================================= */

/* ── 768px and below ─────────────────────── */
@media (max-width: 768px) {

  /* Container */
  .container { padding: 0 16px; }

  /* ── Navbar ── */
  .navbar { padding: 0.75rem 0; }

  .navbar .container {
    flex-direction: row;          /* keep logo + nav on same line */
    justify-content: center;      /* center the logo since nav is empty */
    align-items: center;
  }

  .logo-image { height: 40px; }

  .nav-links { display: none; }   /* nothing in it — hide entirely */

  /* ── Hero ── */
  .hero { padding: 2.5rem 0 2rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-badge { font-size: 0.75rem; padding: 0.4rem 0.875rem; }

  .hero-content h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    margin-bottom: 0.875rem;
  }

  .hero-content p {
    font-size: 0.9375rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-actions .btn { width: 100%; max-width: 320px; }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }

  .hero-stat strong { font-size: 1.5rem; }
  .hero-stat span   { font-size: 0.75rem; }

  .hero-visual { justify-content: center; }
  .court-illustration { max-width: 260px; width: 100%; }

  /* ── Sections ── */
  .section { padding: 2.5rem 0; }

  .section-head {
    margin-bottom: 2rem;
    padding: 0 8px;
  }

  .section-head h2 { font-size: clamp(1.4rem, 5vw, 1.875rem); }
  .section-head p  { font-size: 0.9375rem; }

  /* ── Courts & Steps grids ── */
  .courts-showcase,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .showcase-card,
  .step-card { padding: 1.25rem 1rem; }

  /* ── Booking wizard ── */
  .booking-section { padding: 2rem 0; }

  .steps-indicator {
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 0 4px;
  }

  .step-ind { gap: 0.3rem; font-size: 0.75rem; }
  .step-label { display: none; }

  .step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .wizard-container {
    padding: 1.25rem 1rem;
    border-radius: 10px;
    margin: 0 0 1rem;
  }

  fieldset { padding: 1rem 0.875rem; }
  legend   { font-size: 0.8125rem; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  /* ── Court cards ── */
  .court-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .court-card   { padding: 1rem 0.625rem; }
  .court-number { width: 34px; height: 34px; font-size: 1rem; }
  .court-name   { font-size: 0.8125rem; }
  .court-status { font-size: 0.6875rem; }

  /* ── Wizard buttons ── */
  .wizard-actions { flex-direction: column; gap: 0.625rem; }
  .wizard-actions .btn { width: 100%; }

  /* ── Buttons ── */
  .btn    { padding: 0.75rem 1.25rem; font-size: 0.9375rem; }
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }

  /* ── Payment options ── */
  .pay-option-body { padding: 0.875rem; }
  .pay-option-icon { font-size: 1.25rem; }

  .pay-option-head strong { font-size: 0.9375rem; }
  .pay-option-head small  { font-size: 0.8125rem; }

  .gcash-qr    { width: 130px; height: 130px; }
  .gcash-number { font-size: 1.125rem; }

  .price-display {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    padding: 0.875rem;
  }
  .price { font-size: 1.375rem; }

  /* ── GCash ref form ── */
  .gcash-ref-form { padding: 1rem; }
  .gcash-ref-header { gap: 0.5rem; }
  .gcash-ref-icon { font-size: 1.25rem; }
  .gcash-ref-header strong { font-size: 0.875rem; }
  .gcash-ref-header p { font-size: 0.78rem; }

  /* ── Summary / Receipt ── */
  .booking-summary,
  .receipt-summary { padding: 0.875rem; }
  .summary-item    { font-size: 0.875rem; }

  /* ── Modal ── */
  .modal-content {
    width: 95%;
    margin: 8% auto;
    padding: 1.5rem 1.25rem;
  }

  .success-icon     { width: 50px; height: 50px; font-size: 1.5rem; }
  .success-actions  { gap: 0.625rem; }

  /* ── Footer ── */
  .footer      { padding: 2rem 0; }
  .footer-note { font-size: 0.8125rem; }
  .footer-copy { font-size: 0.75rem; }
}

/* ── 480px and below ─────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  .hero { padding: 2rem 0 1.75rem; }
  .hero-content h1 { font-size: clamp(1.5rem, 7vw, 1.875rem); }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    text-align: center;
  }

  .hero-stat { flex: unset; }
  .hero-stat strong { font-size: 1.25rem; }
  .hero-stat span   { font-size: 0.6875rem; }

  .section-head h2 { font-size: clamp(1.25rem, 6vw, 1.5rem); }

  .wizard-container { padding: 1rem 0.875rem; }

  /* single-column courts on very small screens */
  .court-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* prevent iOS zoom on inputs */
  input, select { font-size: 16px !important; }
}

/* ── 360px and below (small phones) ──────── */
@media (max-width: 360px) {
  .hero-content h1 { font-size: 1.375rem; }

  .court-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .court-card { padding: 0.875rem 0.5rem; }
}

/* ── Reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

