/*
   ARALAS CREATIVE — Waitlist Page
   /waitlist — dark design system, two-column hero, form-first.
   Loaded automatically by functions.php when slug = 'waitlist'.
*/

/* ============================================================
   LAYOUT
   ============================================================ */
.wl-page {
  background: var(--bg-primary);
}

.wl-container {
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 64px);
}


/* ============================================================
   SECTION 1: HERO + FORM — two-column grid
   ============================================================ */
.wl-hero {
  padding: 160px 0 120px;
  position: relative;
}

.wl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 151, 168, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.wl-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: start;
}

/* Left column */
.wl-hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Right column — sticky date card */
.wl-hero-right {
  position: sticky;
  top: 104px;
}

/* Status badge */
.wl-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
}

/* Dot — two states, toggled via JS class swap */
.wl-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wl-status-dot--fully_booked {
  background: #E8795A;
  box-shadow: 0 0 0 3px rgba(232, 121, 90, 0.2);
}

.wl-status-dot--batch_filling {
  background: #D4AC3A;
  box-shadow: 0 0 0 3px rgba(212, 172, 58, 0.22);
}

/* Headline */
.wl-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Sub */
.wl-sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Cohort note — visible for batch_filling, hidden for fully_booked */
.wl-cohort-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(212, 172, 58, 0.06);
  border: 1px solid rgba(212, 172, 58, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 100%;
}

/* Fix: display:flex would beat the bare [hidden] UA rule */
.wl-cohort-note[hidden] {
  display: none !important;
}

.wl-cohort-note svg {
  color: #D4AC3A;
  flex-shrink: 0;
  margin-top: 2px;
}

.wl-cohort-note span {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.wl-cohort-note strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Form wrapper — separated from hero copy with a subtle rule */
.wl-form-wrap {
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  margin-top: 4px;
}

/* Package select */
.wl-package-select-wrap {
  margin-bottom: 20px;
}

.wl-field-label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.wl-select-wrapper {
  position: relative;
}

.wl-package-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 48px 16px 18px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.wl-package-select:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(59, 151, 168, 0.12);
}

.wl-package-select option,
.wl-package-select optgroup {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.wl-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Fluent Forms overrides — match site design system */
.wl-form-wrap .ff-el-group {
  margin-bottom: 16px;
}

.wl-form-wrap .ff-el-input--label label {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.wl-form-wrap input[type="text"],
.wl-form-wrap input[type="email"],
.wl-form-wrap input[type="url"],
.wl-form-wrap textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  -webkit-appearance: none;
}

.wl-form-wrap textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.wl-form-wrap input[type="text"]:focus,
.wl-form-wrap input[type="email"]:focus,
.wl-form-wrap input[type="url"]:focus,
.wl-form-wrap textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(59, 151, 168, 0.12);
}

.wl-form-wrap input::placeholder {
  color: var(--text-muted);
}

/* Submit button — exact pattern from contact page, needs !important to beat Fluent's own CSS */
.aralas-waitlist-form .ff-btn-submit,
.aralas-waitlist-form button[type="submit"] {
  width: 100% !important;
  background: #ede8e0 !important;
  color: #0d1114 !important;
  font-family: var(--font-ui) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 15px 36px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  letter-spacing: 0.01em !important;
  margin-top: 8px !important;
}

.aralas-waitlist-form .ff-btn-submit:hover,
.aralas-waitlist-form button[type="submit"]:hover {
  background: var(--color-accent-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(232, 213, 183, 0.2) !important;
}

.aralas-waitlist-form .ff-btn-submit:focus-visible,
.aralas-waitlist-form button[type="submit"]:focus-visible {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 3px !important;
}

/* Validation errors */
.wl-form-wrap .error {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #E8795A;
  margin-top: 4px;
}

/* Success message */
.wl-form-wrap .ff-message-success {
  background: rgba(59, 151, 168, 0.08);
  border: 1px solid var(--color-brand-dim);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Form error fallback */
.wl-form-error {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
}

.wl-form-error a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Privacy note */
.wl-form-note {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

/* "want to talk it through" note — link uses global .btn-text */
.wl-book-call {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
}


/* ============================================================
   SECTION 2: STEPS
   ============================================================ */
.wl-what {
  background: var(--bg-elevated);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.wl-section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.wl-section-headline {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.wl-section-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
}

.wl-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.wl-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.wl-step-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  background: rgba(59, 151, 168, 0.08);
  border: 1px solid var(--color-brand-dim);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.wl-step-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.wl-step-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}


/* ============================================================
   DATE CARD — lives in hero right column
   ============================================================ */
.wl-date-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.wl-date-card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-brand), transparent);
}

.wl-date-card-label {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 16px;
}

.wl-date-card-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
}

.wl-date-card-note {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}


/* ============================================================
   SECTION 4: BOTTOM
   ============================================================ */
.wl-bottom {
  background: var(--bg-primary);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.wl-bottom-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.wl-bottom-text {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-secondary);
}

.wl-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* section 4 buttons use global .btn-primary and .btn-secondary — no local overrides needed */


/* ============================================================
   RESPONSIVE — 900px: collapse hero to single column
   ============================================================ */
@media (max-width: 900px) {

  .wl-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Right card moves below form on tablet — reorder visually */
  .wl-hero-right {
    position: static;
    max-width: 480px;
    order: -1; /* card sits above the form on tablet/mobile */
  }

  .wl-date-card-value {
    font-size: clamp(36px, 8vw, 56px);
  }
}

/* ============================================================
   RESPONSIVE — 600px: mobile adjustments
   ============================================================ */
@media (max-width: 600px) {

  .wl-hero {
    padding: 100px 0 64px;
  }

  .wl-hero-left {
    gap: 20px;
  }

  .wl-form-wrap {
    padding-top: 24px;
  }

  .wl-hero-right {
    max-width: 100%;
  }

  .wl-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wl-step-number {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .wl-bottom-links {
    flex-direction: column;
    width: 100%;
  }
}
