/* ============================================================
   LIMITLESS CRICKET ACADEMY — booking.css
   Styles for booking.html and contact.html
   Developed by Brown's Digital
   ============================================================ */

/* ── Layout ───────────────────────────────────────────────── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: calc(100vh - 78px);
  position: relative;
  z-index: 1;
}

.booking-main {
  padding: 72px 64px 80px;
  border-right: 1px solid var(--gold-line);
}

.booking-main a:not(.btn):link,
.booking-main a:not(.btn):visited,
.booking-sidebar a:not(.btn):link,
.booking-sidebar a:not(.btn):visited,
.summary-note a:link,
.summary-note a:visited {
  color: var(--gold-mid);
  text-decoration: none;
}
.booking-main a:not(.btn):hover,
.booking-sidebar a:not(.btn):hover,
.summary-note a:hover {
  color: var(--gold-light);
}

.booking-sidebar {
  padding: 72px 44px 80px;
  background: var(--ink-2);
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  overflow-y: auto;
}

/* ── Step tabs ────────────────────────────────────────────── */
.step-tabs {
  display: flex;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 52px;
}

.step-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  cursor: default;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s, border-color 0.25s;
  user-select: none;
}

.step-tab.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-mid);
}

.step-tab.complete {
  color: var(--text-2);
}

/* ── Panels ───────────────────────────────────────────────── */
.step-panel {
  display: none;
}

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

/* ── Programme cards ──────────────────────────────────────── */
.prog-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 44px;
}

.prog-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--gold-line);
  cursor: pointer;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
}

.prog-card:hover {
  border-color: rgba(218, 165, 32, 0.35);
}

.prog-card.selected {
  border-color: var(--gold-mid);
  background: rgba(218, 165, 32, 0.04);
}

/* Radio circle */
.prog-card::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--text-3);
  border-radius: 50%;
  margin-top: 3px;
  transition: background 0.2s, border-color 0.2s;
}

.prog-card.selected::before {
  background: var(--gold-mid);
  border-color: var(--gold-mid);
}

.prog-body {
  flex: 1;
}

.prog-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}

.prog-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

.prog-price {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold-light);
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}

.prog-price.free {
  font-size: 16px;
  color: var(--gold-mid);
  letter-spacing: 0.08em;
}

/* ── Calendar ─────────────────────────────────────────────── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cal-month-label {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
}

.cal-nav-btn {
  background: none;
  border: 1px solid var(--gold-line);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
  font-size: 16px;
  line-height: 1;
}

.cal-nav-btn:hover {
  border-color: var(--gold-mid);
  color: var(--gold-light);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 28px;
}

.cal-dow {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 8px 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-3);
  border: 1px solid transparent;
  transition: all 0.18s;
  position: relative;
}

.cal-day.avail {
  color: var(--text-2);
  cursor: pointer;
}

.cal-day.avail:hover {
  border-color: var(--gold-mid);
  color: var(--white);
}

/* available dot */
.cal-day.avail::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-mid);
  opacity: 0.5;
}

.cal-day.today {
  color: var(--gold-light);
  font-weight: 500;
}

.cal-day.selected {
  background: var(--gold-mid);
  color: var(--ink);
  border-color: var(--gold-mid);
  font-weight: 600;
}

.cal-day.selected::after {
  display: none;
}

.cal-day.past,
.cal-day.empty {
  cursor: default;
  opacity: 0.3;
}

/* ── Time slots ───────────────────────────────────────────── */
.time-section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 12px 6px;
  text-align: center;
  font-size: 13px;
  border: 1px solid var(--gold-line);
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.2s;
}

.time-slot:hover {
  border-color: var(--gold-mid);
  color: var(--white);
}

.time-slot.selected {
  background: var(--gold-mid);
  color: var(--ink);
  border-color: var(--gold-mid);
  font-weight: 600;
}

.time-slot.booked {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.booked-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-top: 2px;
}

.time-slot:not(.booked) .booked-label {
  color: var(--gold-mid);
}

.slots-hint {
  font-size: 13px;
  color: var(--text-3);
  grid-column: 1 / -1;
}

/* ── Detail form ──────────────────────────────────────────── */
.detail-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

/* ── Cancellation consent ─────────────────────────────────── */
.cancel-policy {
  padding: 18px 18px 16px;
  border: 1px solid var(--gold-line);
  background: rgba(212, 175, 105, 0.06);
}

.cancel-policy-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 10px;
}

.cancel-policy-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 16px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-1, var(--white));
}

.consent-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-mid);
  cursor: pointer;
}

.consent-check span {
  flex: 1;
}

/* ── Step controls ────────────────────────────────────────── */
.step-controls {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ── Success state ────────────────────────────────────────── */
#booking-success {
  display: none;
  text-align: center;
  padding: 48px 0;
}

.success-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-ring svg {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

/* ── Booking summary sidebar ──────────────────────────────── */
.summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 32px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-line);
  gap: 16px;
}

.summary-key {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  flex-shrink: 0;
}

.summary-val {
  font-size: 13.5px;
  color: var(--white);
  text-align: right;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  margin-top: 6px;
}

.summary-total-key {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

.summary-total-val {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--gold-light);
}

.summary-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-3);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-line);
}

/* EFT payment details */
.eft-details {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-line);
}

.eft-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eft-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.eft-list li span {
  color: var(--text-3);
  flex-shrink: 0;
}

.eft-list li strong {
  color: var(--white);
  font-weight: 500;
  text-align: right;
}

.eft-ref-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-3);
}

/* What to bring list */
.bring-list {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-line);
}

.bring-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 14px;
}

.bring-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bring-items li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}

.bring-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--gold-mid);
}

/* ── Contact grid ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gold-line);
  position: relative;
  z-index: 1;
}

.contact-form-col {
  padding: 64px 56px;
  border-right: 1px solid var(--gold-line);
}

.contact-info-col {
  padding: 64px 56px;
  background: var(--ink-2);
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 8px;
}

.contact-detail-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-mid);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-item-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 15px;
  color: var(--white);
}

.contact-item-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  border-top: 1px solid var(--gold-line);
}

.faq-item {
  border-bottom: 1px solid var(--gold-line);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  gap: 16px;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--gold-light);
}

.faq-icon {
  font-size: 22px;
  color: var(--gold-mid);
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}

.faq-icon.open {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding-bottom: 22px;
}

.faq-a p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-2);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-main {
    padding: 48px 16px 56px;
    border-right: none;
  }

  .booking-sidebar {
    position: static;
    height: auto;
    padding: 36px 16px calc(36px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--gold-line);
  }

  .time-slots {
    grid-template-columns: repeat(3, 1fr);
  }

  .time-slot,
  .cal-day.avail,
  .cal-nav-btn {
    min-height: 44px;
  }

  .prog-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .step-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .step-controls .btn {
    width: 100%;
  }

  .step-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-col {
    padding: 36px 16px;
    border-right: none;
    border-bottom: 1px solid var(--gold-line);
  }

  .contact-info-col {
    padding: 36px 16px;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-embed-wrap {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .map-facts {
    padding: 24px 16px;
  }

  .cancel-policy {
    padding: 14px;
  }

  .consent-check {
    gap: 10px;
    font-size: 14px;
  }

  .consent-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 600px) {
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .prog-price {
    align-self: flex-start;
  }

  .eft-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .eft-list li strong {
    text-align: left;
  }
}

/* ── Contact map ──────────────────────────────────────────── */
.map-lead {
  max-width: 56ch;
  margin: 0;
  color: var(--text-2);
  line-height: 1.7;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px;
  border: 1px solid var(--gold-line);
}

.map-embed-wrap {
  position: relative;
  min-height: 420px;
  background: var(--ink);
}

.map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.map-facts {
  background: var(--ink);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.map-facts-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin: 0;
}

.map-facts-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-facts-list div {
  display: grid;
  gap: 4px;
}

.map-facts-list dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.map-facts-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.map-facts-list a {
  color: var(--gold-light);
  text-decoration: none;
}

.map-facts-list a:hover {
  color: var(--gold);
}

.map-facts .btn {
  align-self: flex-start;
  margin-top: auto;
}
