/* =============================================================
   request-form.css
   Styles for the public access request form (request-access.html)
   and the in-app request-invite.js page.

   Two-track selection, captcha, and form layouts.
   ============================================================= */

/* ── Track selection buttons ─────────────────────────────────── */

.track-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.track-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.track-btn:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.track-btn.selected {
  border-color: var(--teal);
  background: var(--teal-light);
}

.track-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.track-body {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.4;
}

.track-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.track-arrow {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Request form wrapper ─────────────────────────────────────── */

.request-form-page {
  min-height: 100vh;
  background: var(--bg-secondary);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 60px;
}

.request-form-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 520px;
}

.request-form-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.request-form-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.request-form-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
}

.request-form-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.request-form-subtext {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Non-member notice ───────────────────────────────────────── */

.nonmember-notice {
  background: var(--amber-light);
  border: 1px solid #f5d9a0;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 11px;
  color: var(--amber-dark);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* ── Captcha ─────────────────────────────────────────────────── */

.captcha-box {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.captcha-question {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.captcha-input {
  width: 120px;
}

/* ── Success / error states ──────────────────────────────────── */

.request-success {
  text-align: center;
  padding: 32px 16px;
}

.request-success-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.request-success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

.request-success-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Back link ───────────────────────────────────────────────── */

.back-to-login {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.back-to-login a {
  color: var(--teal);
  text-decoration: none;
}

.back-to-login a:hover {
  text-decoration: underline;
}

/* ── Form step indicator ─────────────────────────────────────── */

.form-step-indicator {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.form-step-indicator .step-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.2s;
}

.form-step-indicator .step-dot.active {
  background: var(--teal);
}

.form-step-indicator .step-dot.done {
  background: var(--amber);
}

/* ── Mobile adjustments ──────────────────────────────────────── */

@media (max-width: 560px) {
  .request-form-card {
    padding: 20px 16px;
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }

  .request-form-page {
    padding: 0;
  }

  .track-btn {
    padding: 12px 14px;
    gap: 10px;
  }

  .track-icon {
    font-size: 20px;
    width: 28px;
  }
}
