/* =====================================================
   ROOT & RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Color palette ── */
  --cream:        #ffffff;
  --cream-alt:    #FFFFFF;
  --cream-border: #E0D9CE;
  --white:        #FDFAF5;
  --coal:         #1A1816;
  --coal-soft:    #2E2C2A;
  --muted:        #000000;
  --muted-light:  #A7A04F;
  --border:       #434329;
  --accent:       #A7A04F;
  --accent-dark:  #434329;

  /* ── Typography ── */
  --font-display: 'Inter', Helvetica, Arial, sans-serif;
  --font-body:  'Inter', Helvetica, Arial, sans-serif;

  /* ── Layout ── */
  --container:  700px;
  --radius:     3px;
  --radius-lg:  6px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--coal);
  font-size: 12px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   CONTAINER
   ===================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.015em;
  color: var(--coal);
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-text {
  max-width: 400px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--coal);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.scroll-cta:hover {
  color: var(--accent);
}

/* =====================================================
   SECTION STRUCTURE
   ===================================================== */
.booking-section {
  padding: 24px 0 0;
}

.form-section {
  padding: 24px 0;
}

.step-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-light);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.step-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--coal);
  line-height: 1.2;
}

/* =====================================================
   CALENDAR
   ===================================================== */
.calendar-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

/* Navigation */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.cal-month-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--coal);
}

.cal-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--coal);
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.cal-nav-btn:hover:not(:disabled) {
  background: var(--cream-alt);
  border-color: var(--muted-light);
}

.cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-day-header {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-align: center;
  padding: 12px 0 6px;
}

.cal-day {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-light);
  cursor: default;
  position: relative;
  user-select: none;
  transition: background 0.12s;
}

/* Empty cells */
.cal-day.empty { background: transparent; }

/* Past / unavailable */
.cal-day.unavailable {
  color: var(--cream-border);
  cursor: not-allowed;
}

/* Available days */
.cal-day.available {
  cursor: pointer;
  color: var(--coal);
  font-weight: 500;
}

.cal-day.available:hover {
  background: var(--muted-light);
  border-radius: 100px;
}

/* Availability dot */
.cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* Selected */
.cal-day.selected {
  background: var(--coal) !important;
  color: var(--white) !important;
  border-radius: 100px;
  font-weight: 500;
}

.cal-day.selected::after {
  background: rgba(255,255,255,0.5) !important;
}

/* Today */
.cal-day.today:not(.unavailable):not(.selected) {
  color: var(--accent);
  font-weight: 600;
}

/* =====================================================
   TIME SLOTS
   ===================================================== */
.time-slots-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.time-slots-date {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--coal);
  margin-bottom: 0px;
  letter-spacing: -0.01em;
}

.time-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--coal);
  background: var(--white);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.time-slot:hover:not(.booked) {
  border-color: var(--accent);
  background: var(--cream-alt);
}

.time-slot.selected {
  background: var(--coal);
  color: var(--white);
  border-color: var(--coal);
}

.time-slot.booked {
  color: var(--muted-light);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--cream-border);
}

.time-slots-location {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 18px;
}

.time-slots-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  font-style: italic;
}

.time-slots-empty {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* =====================================================
   SESSION SUMMARY CARD
   ===================================================== */
.session-card {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 34px;
  animation: slideDown 0.2s ease;
}

.session-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sc-label {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.sc-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--coal);
  line-height: 1.2;
}

.sc-location {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.sc-change {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.sc-change:hover {
  border-color: var(--coal);
  color: var(--coal);
}

/* =====================================================
   NO-TIME WARNING
   ===================================================== */
.no-time-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FEF8EE;
  border: 1px solid #EAD8B4;
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 10px;
  color: #7A6540;
  margin-bottom: 28px;
  animation: slideDown 0.2s ease;
}

.no-time-warning svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* =====================================================
   FORM
   ===================================================== */
.form-section {
  padding-bottom: 18px;
}

.form-group {
  margin-bottom: 28px;
}

/* Section label — "YOUR INFORMATION" */
.form-section-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coal);
  margin-bottom: 24px;
}

/* Labels — plain weight, normal case */
label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--coal);
  margin-bottom: 8px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.label-block {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--coal);
  margin-bottom: 10px;
  line-height: 1.45;
}

.label-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.req {
  color: var(--coal);
  text-decoration: none;
  font-style: normal;
}

/* ── Underline-only inputs (YOUR INFORMATION) ── */
.form-group--underline input[type="text"],
.form-group--underline input[type="email"],
.form-group--underline input[type="tel"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #434329;
  border-radius: 0;
  padding: 6px 0 9px;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--coal);
  outline: none;
  transition: border-color 0.18s;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.form-group--underline input::placeholder {
  color: var(--muted-light);
}

.form-group--underline input:focus {
  border-bottom-color: var(--coal);
  outline: none;
}

.form-group--underline input.error {
  border-bottom-color: #C0392B;
}

/* ── Textareas (Practice Teaching Form) ── */
textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid #434329;
  border-radius: 0;
  padding: 7px 10px;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--coal);
  outline: none;
  resize: vertical;
  min-height: 34px;
  line-height: 1.6;
  transition: background 0.15s, border-color 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

textarea:focus {
  background: var(--cream-alt);
  border-color: var(--coal);
  outline: none;
}

textarea.error {
  border-color: #C0392B;
  background: var(--cream);
}

/* ── "Practice Teaching Form" section heading ── */
.practice-form-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--coal);
  margin-top: 48px;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ── Checkboxes ── */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--coal);
  line-height: 1.4;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin-top: 2px;
  border-radius: 2px;
  cursor: pointer;
  accent-color: var(--coal);
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: auto;
}

.checkbox-item span {
  line-height: 1.45;
}

/* =====================================================
   FORM ERROR
   ===================================================== */
.disclaimer-group {
  margin-top: 8px;
}

.disclaimer-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}

.disclaimer-label input[type="checkbox"] {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--coal);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FDF0EE;
  border: 1px solid #E8C4BE;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 12px;
  color: #8B3A3A;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* =====================================================
   SUBMIT BUTTON — outlined, matches main page CTA
   ===================================================== */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 16px;
}

.btn-submit:hover:not(:disabled) {
  background: #000000;
  color: #FFFFFF;
}

.btn-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Spinner animation */
.spinner {
  flex-shrink: 0;
  animation: spin 0.75s linear infinite;
  stroke-dasharray: 40;
  stroke-dashoffset: 12;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =====================================================
   CONFIRMATION OVERLAY
   ===================================================== */
.confirmation {
  position: fixed;
  inset: 0;
  background: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirmation[style*="display: flex"] {
  display: flex !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.confirmation-inner {
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.conf-mark {
  display: block;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 28px;
  animation: gentleRotate 24s linear infinite;
}

@keyframes gentleRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.confirmation-inner h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--coal);
  margin-bottom: 20px;
  line-height: 1.1;
}

.confirmation-inner p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.confirmation-inner p strong {
  color: var(--coal);
  font-weight: 500;
}

.confirmation-inner a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.conf-details {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 20px 0 20px;
  text-align: left;
}

.conf-details-label {
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-bottom: 4px !important;
}

.conf-details-value {
  font-family: var(--font-display);
  font-size: 12px !important;
  font-weight: 400;
  color: var(--coal) !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0 !important;
}

/* =====================================================
   GENERAL INQUIRY TOGGLE
   ===================================================== */
.inquiry-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.inquiry-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted-light);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inquiry-or::before,
.inquiry-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.4;
}

.inquiry-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  cursor: pointer;
  margin-bottom: 0;
}

.inquiry-toggle-label input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  min-width: 15px;
  cursor: pointer;
  accent-color: var(--coal);
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: auto;
}

.inquiry-toggle-text {
  font-size: 12px;
  color: var(--coal);
  line-height: 1.65;
}

.inquiry-toggle-text strong {
  font-weight: 500;
}

/* Dims the calendar when inquiry mode is active */
.booking-section {
  transition: opacity 0.2s;
}
.booking-section.inquiry-mode {
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 620px) {

  .hero h1 {
    margin-bottom: 20px;
  }

  .booking-section {
    padding: 26px 0 0;
  }

  .form-section {
    padding: 26px 0;
  }

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

  .session-card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sc-change {
    align-self: flex-start;
  }

  .step-label {
    font-size: 14px;
  }

  .container {
    padding: 0 36px;
  }

  .inquiry-section {
    padding: 24px 0;
  }

  .inquiry-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--muted-light);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .inquiry-or::before,
  .inquiry-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    opacity: 0.4;
  }
}

@media (max-width: 380px) {
  .cal-day {
    font-size: 12px;
  }

  .cal-day-header {
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .time-slot {
    font-size: 12px;
    padding: 7px 14px;
  }
}
