/* ============================================
   CHAAT.CA — Book a Discovery Call Page
   ============================================ */

/* =========== HERO =========== */

.book-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
}

.book-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(232, 168, 56, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(217, 79, 48, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.book-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 7rem;
  padding-bottom: var(--space-2xl);
  max-width: 760px;
}

.book-hero__content .section-label {
  justify-content: center;
  margin-bottom: var(--space-md);
}

.book-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-light);
  color: var(--text-primary);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-md);
  letter-spacing: var(--ls-tight);
}

.book-hero__subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-loose);
}


/* =========== BOOK FORM SECTION =========== */

.book-form-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.book-form {
  max-width: 720px;
}

.book-form__step-sub {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 540px;
  margin: -1rem auto var(--space-lg);
  line-height: var(--lh-body);
}


/* =========== RADIO "CHOICE" CARDS =========== */

.book-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.book-choice--inline {
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.4em;
}

.book-choice__option {
  display: block;
  cursor: pointer;
}

.book-choice__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.book-choice__card {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  padding: var(--space-md);
  border: 1px solid var(--text-faint);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  transition: all var(--duration-fast) var(--ease-out);
  height: 100%;
  position: relative;
}

.book-choice__card--compact {
  padding: 0.75em 1em;
  align-items: center;
  text-align: center;
  gap: 0;
}

.book-choice__card:hover {
  border-color: var(--saffron-dim);
  background: var(--bg-elevated);
}

.book-choice__option input:checked + .book-choice__card {
  border-color: var(--saffron);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--saffron-glow);
}

.book-choice__option input:focus-visible + .book-choice__card {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

.book-choice__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}

.book-choice__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

.book-choice.error .book-choice__card {
  border-color: var(--tamarind);
}


/* =========== BOOKING (CALENDLY) STEP =========== */

.book-form__booking {
  text-align: center;
}

.book-form__welcome {
  margin-bottom: var(--space-lg);
}

.book-form__welcome .franchise-form__step-title {
  margin-bottom: var(--space-sm);
}

.book-form__welcome-text {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-md);
  line-height: var(--lh-loose);
}

.book-form__welcome-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.book-form__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-small);
  color: var(--saffron);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}

.book-form__calendly {
  background: var(--bg-surface);
  border: 1px solid var(--text-faint);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: opacity var(--duration-med) var(--ease-out);
}

.book-form__booking-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.book-form__booking-note a {
  color: var(--saffron);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.book-form__booking-note a:hover {
  color: var(--saffron-dim);
}


/* =========== BOOKED CONFIRMATION (after Calendly event) =========== */

.book-form__booked {
  display: none;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  margin-top: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--mint);
  border-radius: var(--radius-md);
  animation: stepFadeIn 0.5s var(--ease-out);
}

.book-form__booked.active {
  display: block;
}

.book-form__booked-icon {
  margin-bottom: var(--space-md);
}

.book-form__booked h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}

.book-form__booked p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: var(--lh-loose);
}

.book-form__booked a {
  color: var(--saffron);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}


/* =========== DISQUALIFIED MESSAGES =========== */

.book-form__decline {
  text-align: center;
  padding: var(--space-xl) 0;
  max-width: 600px;
  margin: 0 auto;
}

.book-form__decline.active {
  display: block;
}

.book-form__decline-icon {
  margin-bottom: var(--space-md);
}

.book-form__decline-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
}

.book-form__decline-text {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-md);
  text-align: left;
}

.book-form__decline-text strong {
  color: var(--saffron);
  font-weight: var(--fw-semibold);
}

.book-form__decline-text--soft {
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-style: italic;
}

.book-form__decline-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}


/* =========== RESPONSIVE =========== */

@media (max-width: 720px) {
  .book-choice {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .book-choice--inline {
    grid-template-columns: 1fr 1fr;
  }

  .book-form__welcome-meta {
    gap: var(--space-sm);
  }

  .book-form__decline-text {
    text-align: left;
  }

  .book-form__decline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .book-form__decline-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .book-form__calendly {
    height: 1000px !important;
  }
}

@media (max-width: 480px) {
  .book-hero {
    min-height: 40vh;
  }

  .book-form__welcome-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
}
