/* ═══════════════════════════════════════════════════════════════════
   CONTACT / BOOKING PAGE
   Variables, base reset, and font stack come from styles.css.
   All interactive controls use border-radius: 999px — matched from
   .hero-actions a (the "Engage" / "Research" pill buttons) in
   styles.css. The <textarea> uses 16px because pill shapes don't suit
   multi-line text entry.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Ribbon ─────────────────────────────────────────────────────── */
.booking-ribbon {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 13, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.booking-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: 80px;
}

.booking-ribbon-home {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.46);
  transition: color 200ms ease;
}

.booking-ribbon-home:hover {
  color: var(--white);
}

/* ── Page shell ─────────────────────────────────────────────────── */
.booking-page {
  min-height: 100vh;
  padding-top: 80px;
}

.booking-container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(80px, 12vw, 160px);
}

/* ── Page headline ──────────────────────────────────────────────── */
.booking-headline {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 clamp(40px, 6vw, 80px);
}

/* ── Step wrappers ──────────────────────────────────────────────── */
/* Steps shown/hidden by JS; transitions applied via inline style. */
.booking-step {
  max-width: 680px;
}

/* ── Date grid ──────────────────────────────────────────────────── */
.date-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  min-height: 60px;     /* prevent CLS jump on load */
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 108px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.date-btn:hover {
  border-color: rgba(244, 244, 246, 0.46);
  background: rgba(244, 244, 246, 0.04);
}

.date-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.date-btn.selected .date-weekday {
  color: rgba(0, 0, 0, 0.65);
}

.date-weekday {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.5);
}

.date-day {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Slot section ───────────────────────────────────────────────── */
.slot-section {
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 320ms cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}

.slot-section.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slot-heading {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.4);
  margin: 0 0 16px;
}

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

.slot-btn {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.slot-btn:hover {
  border-color: rgba(244, 244, 246, 0.46);
  background: rgba(244, 244, 246, 0.04);
}

.slot-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* ── Step action buttons ────────────────────────────────────────── */
.step-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
}

/* Primary CTA — matches .hero-actions a pill (border-radius: 999px) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 200ms ease, transform 220ms ease;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.86;
  transform: scale(1.02);
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(244, 244, 246, 0.42);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.btn-back:hover {
  color: var(--white);
  text-decoration-color: rgba(244, 244, 246, 0.32);
}

/* ── Booking form ───────────────────────────────────────────────── */
.booking-form {
  max-width: 460px;
}

.field-wrap {
  margin-bottom: 12px;
}

/* Pill input — border-radius: 999px matches .hero-actions a */
.booking-input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 244, 246, 0.03);
  color: var(--white);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 220ms ease;
}

.booking-input::placeholder {
  color: rgba(244, 244, 246, 0.28);
}

.booking-input:focus {
  border-color: var(--gold);
}

.booking-input.is-invalid {
  border-color: #c84545;
}

/* Textarea — 16px radius: pill semantically wrong for multi-line */
.booking-textarea {
  display: block;
  width: 100%;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(244, 244, 246, 0.03);
  color: var(--white);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color 220ms ease;
}

.booking-textarea::placeholder {
  color: rgba(244, 244, 246, 0.28);
}

.booking-textarea:focus {
  border-color: var(--gold);
}

/* ── Field-level error ──────────────────────────────────────────── */
.field-error {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: #c84545;
  margin: 6px 0 0 22px;
}

.form-error {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: #c84545;
  margin: 0 0 14px;
  min-height: 1.2em;
}

/* ── State messages ─────────────────────────────────────────────── */
.state-msg {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.state-msg--loading { color: rgba(244, 244, 246, 0.38); }
.state-msg--empty   { color: rgba(244, 244, 246, 0.38); }
.state-msg--error   { color: #c84545; }

/* ── Confirmation ───────────────────────────────────────────────── */
.confirmation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.confirmation-check {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
}

.confirmation-check svg {
  width: 100%;
  height: 100%;
}

.confirmation-heading {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

.confirmation-time {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--white);
  margin: 0;
}

.confirmation-sub {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: rgba(244, 244, 246, 0.46);
  margin: 0;
}

.confirmation-home {
  margin-top: 16px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 734px) {
  .booking-headline {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .date-btn {
    min-width: 90px;
    padding: 12px 14px;
  }

  .booking-form {
    max-width: 100%;
  }
}

@media (max-width: 320px) {
  .booking-container {
    padding-top: 44px;
  }
  .date-btn {
    min-width: 76px;
    padding: 10px 10px;
  }
}

/* ── prefers-reduced-motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .slot-section,
  .date-btn,
  .slot-btn,
  .btn-primary,
  .btn-back,
  .booking-input,
  .booking-textarea,
  .booking-ribbon-home {
    transition: none;
  }
}
