.booking-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
  color: var(--secondary-color);
}

.booking-hero {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232, 232, 233, 0.1);
}

.booking-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.booking-title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 1.1rem;
  color: var(--secondary-color);
}

.booking-lead {
  font-size: 1.05rem;
  line-height: 1.62;
  font-weight: 400;
  margin: 0 0 1.35rem;
  max-width: 38rem;
  color: var(--secondary-color);
  opacity: 0.92;
}

.booking-lead strong {
  font-weight: 600;
  color: var(--secondary-color);
  opacity: 1;
}

.booking-local-hint {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 1.35rem;
  max-width: 36rem;
  opacity: 0.65;
  font-weight: 400;
}

.booking-footnote {
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
  max-width: 36rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(16, 172, 132, 0.45);
  color: var(--secondary-color);
  opacity: 0.82;
}

.booking-footnote-sep {
  margin-left: 0.35rem;
  margin-right: 0.1rem;
}

.booking-footnote a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 172, 132, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.booking-footnote a:hover {
  border-bottom-color: var(--primary-color);
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .booking-title {
    font-size: 1.75rem;
  }

  .booking-lead {
    font-size: 1rem;
  }

  .booking-hero {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .booking-page {
    padding: 1.5rem 1.1rem 3rem;
  }

  .booking-title {
    font-size: 1.45rem;
  }
}

.booking-banner {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(232, 232, 233, 0.2);
}

.booking-banner--success {
  border-color: var(--primary-color);
  background: rgba(16, 172, 132, 0.12);
}

.booking-banner--error {
  border-color: #e17055;
  background: rgba(225, 112, 85, 0.1);
}

.booking-banner--warn {
  border-color: rgba(243, 156, 18, 0.65);
  background: rgba(243, 156, 18, 0.12);
  font-size: 0.92rem;
  line-height: 1.5;
}

.booking-banner--warn code {
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(8, 9, 11, 0.35);
}

/* Calendly-style: month + times side by side */
.booking-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 1.75rem 2rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.booking-picker__calendar-wrap {
  min-width: 0;
}

.booking-picker__times {
  border: 1px solid rgba(232, 232, 233, 0.14);
  border-radius: 16px;
  background: rgba(8, 9, 11, 0.45);
  overflow: hidden;
  min-height: 280px;
}

.booking-times-header {
  padding: 1.1rem 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(232, 232, 233, 0.08);
}

.booking-times-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}

.booking-times-sub {
  font-size: 0.82rem;
  opacity: 0.72;
  margin: 0.35rem 0 0;
  font-weight: 400;
}

.booking-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.booking-month-nav h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  flex: 1;
  text-align: center;
}

.booking-month-nav button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(232, 232, 233, 0.18);
  background: rgba(8, 9, 11, 0.4);
  color: var(--secondary-color);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.booking-month-nav button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.booking-month-nav button:active {
  transform: scale(0.96);
}

.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.booking-cal-head {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  opacity: 0.55;
  padding: 0.4rem 0;
}

.booking-cal-cell {
  box-sizing: border-box;
  min-height: 2.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: inherit;
}

.booking-cal-cell--pad {
  border: none;
  background: transparent;
  min-height: 0.5rem;
}

/* No availability — grey, not interactive */
.booking-cal-cell--empty-day {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0.28;
  pointer-events: none;
}

/* Clickable day (has slots) */
button.booking-cal-cell--has-slots {
  border: 1px solid rgba(232, 232, 233, 0.14);
  background: rgba(8, 9, 11, 0.35);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

button.booking-cal-cell--has-slots:hover {
  border-color: rgba(16, 172, 132, 0.55);
  background: rgba(16, 172, 132, 0.12);
}

button.booking-cal-cell--has-slots:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.booking-cal-cell--selected {
  border-color: var(--primary-color) !important;
  background: rgba(16, 172, 132, 0.18) !important;
  box-shadow: 0 0 0 1px var(--primary-color);
}

.booking-cal-cell--today:not(.booking-cal-cell--selected) {
  border-color: rgba(232, 232, 233, 0.28);
}

.booking-cal-daynum {
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

.booking-slots-panel {
  padding: 0.75rem 1rem 1.25rem;
  margin: 0;
  border: none;
}

.booking-slots-panel h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.booking-slots-empty {
  margin: 0;
  padding: 1rem 0.25rem;
  font-size: 0.92rem;
  opacity: 0.82;
  line-height: 1.5;
}

.booking-slot-list {
  list-style: none;
  margin: 0;
  padding: 0 0.15rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(52vh, 420px);
  /* Always show vertical scrollbar so students see more times below */
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 172, 132, 0.55) rgba(8, 9, 11, 0.55);
}

.booking-slot-list::-webkit-scrollbar {
  width: 10px;
  -webkit-appearance: none;
}

.booking-slot-list::-webkit-scrollbar-track {
  background: rgba(8, 9, 11, 0.55);
  border-radius: 999px;
  margin: 4px 0;
}

.booking-slot-list::-webkit-scrollbar-thumb {
  background: rgba(232, 232, 233, 0.28);
  border-radius: 999px;
  border: 2px solid rgba(8, 9, 11, 0.55);
  min-height: 40px;
}

.booking-slot-list::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 172, 132, 0.55);
}

.booking-slot-item {
  margin: 0;
  list-style: none;
}

/* Full row clickable — Calendly-style row + custom checkbox */
.booking-slot-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 232, 233, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}

.booking-slot-row:hover {
  border-color: rgba(16, 172, 132, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.booking-slot-row:has(.booking-slot-input:checked) {
  border-color: var(--primary-color);
  background: rgba(16, 172, 132, 0.12);
  box-shadow: 0 0 0 1px rgba(16, 172, 132, 0.25);
}

/* Custom checkbox — no default white square */
.booking-slot-input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid rgba(232, 232, 233, 0.38);
  border-radius: 7px;
  background: rgba(8, 9, 11, 0.75);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.booking-slot-input:hover {
  border-color: rgba(16, 172, 132, 0.55);
}

.booking-slot-input:focus {
  outline: none;
}

.booking-slot-input:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.booking-slot-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.3' stroke='%23e8e8e9' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.booking-slot-input:active {
  transform: scale(0.94);
}

.booking-slot-time {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--secondary-color);
  user-select: none;
}

@media (hover: none) {
  .booking-slot-row:hover {
    border-color: rgba(232, 232, 233, 0.12);
    background: rgba(255, 255, 255, 0.03);
  }

  .booking-slot-row:has(.booking-slot-input:checked) {
    border-color: var(--primary-color);
    background: rgba(16, 172, 132, 0.12);
  }
}

.booking-selected {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(16, 172, 132, 0.08);
  margin-bottom: 1.5rem;
}

.booking-selected h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.booking-selected-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.booking-selected-total {
  margin: 0.75rem 0 0;
}

.booking-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.booking-form input[type="text"],
.booking-form input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 232, 233, 0.2);
  background: rgba(8, 9, 11, 0.5);
  color: var(--secondary-color);
  font-family: inherit;
  margin-bottom: 1rem;
}

.booking-pay-btn {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 20px;
  border: 2px solid var(--primary-color);
  background: var(--primary-color);
  color: var(--secondary-color);
  cursor: pointer;
  font-family: inherit;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.booking-pay-btn:hover:not(:disabled) {
  background: transparent;
  color: var(--primary-color);
}

.booking-pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-back-link {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 232, 233, 0.08);
  font-size: 0.9rem;
}

.booking-back-link a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.booking-back-link a:hover {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 768px) {
  .booking-picker {
    grid-template-columns: 1fr;
  }

  .booking-picker__times {
    min-height: 200px;
  }

  .booking-cal-cell {
    min-height: 2.5rem;
    font-size: 0.82rem;
  }
}

@media (hover: none) {
  button.booking-cal-cell--has-slots:hover {
    border-color: rgba(232, 232, 233, 0.14);
    background: rgba(8, 9, 11, 0.35);
  }

  .booking-cal-cell--selected {
    border-color: var(--primary-color) !important;
    background: rgba(16, 172, 132, 0.18) !important;
  }
}
