/* ═══════════════════════════════════════
   GOOD AI — Join / Form Page Styles
   ═══════════════════════════════════════ */

.form-page {
  min-height: 100vh;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

/* Subtle background */
.form-page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(86,56,93,.25) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(57,53,44,.4) 0%, transparent 60%),
    var(--ink);
}
.form-page-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  opacity: .4;
}

.form-wrap {
  position: relative; z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

/* ── Form header ── */
.form-header {
  margin-bottom: 64px;
  opacity: 0; animation: up .8s .1s forwards;
}
.form-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(242,239,235,.4); font-size: .65rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  margin-bottom: 40px; transition: color .3s; cursor: none;
}
.form-back:hover { color: var(--lilac); }
.form-back svg { transition: transform .3s; }
.form-back:hover svg { transform: translateX(-4px); }

.form-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: .95; letter-spacing: -.025em; margin-bottom: 20px;
}
.form-header h1 em { font-style: italic; color: var(--lilac); }
.form-header p {
  font-size: .72rem; line-height: 1.9;
  color: rgba(242,239,235,.45);
  max-width: 100%;
}

/* ── Role selector ── */
.role-section {
  margin-bottom: 48px;
  opacity: 0; animation: up .8s .2s forwards;
}
.role-label {
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--lilac); margin-bottom: 16px; display: block;
}
.role-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  align-items: stretch;
}
.role-card { position: relative; cursor: none; height: 100%; }
.role-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.role-card label {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 18px;
  height: 100%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor: none; transition: border-color .25s, background .25s;
}
.role-card label:hover {
  border-color: rgba(161,129,183,.3);
  background: rgba(86,56,93,.08);
}
.role-card input:checked + label {
  border-color: var(--lilac);
  background: rgba(86,56,93,.18);
  box-shadow: inset 0 0 0 1px var(--lilac);
}
.role-icon { font-size: 18px; }
.role-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: -.01em;
}
.role-desc { font-size: .62rem; line-height: 1.5; color: rgba(242,239,235,.4); }

/* ── Form sections ── */
.form-section { display: none; }
.form-section.active {
  display: block;
  animation: up .5s ease both;
}

/* ── Card ── */
.f-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  padding: 36px;
  margin-bottom: 16px;
}
.f-card-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.f-card-title::before {
  content: ''; display: block;
  width: 20px; height: 1px; background: var(--lilac); opacity: .5;
}

/* ── Fields ── */
.f-field { margin-bottom: 24px; }
.f-field:last-child { margin-bottom: 0; }

.f-field label {
  display: block; font-size: .65rem; font-weight: 400;
  color: rgba(242,239,235,.7); letter-spacing: .06em;
  margin-bottom: 10px;
}
.f-field label .req { color: var(--lilac); margin-left: 2px; }

.f-field input[type="text"],
.f-field input[type="email"],
.f-field input[type="tel"],
.f-field textarea,
.f-field select {
  width: 100%;
  background: rgba(36,36,36,.8);
  border: 1px solid rgba(255,255,255,.1);
  padding: 13px 16px;
  color: var(--cream);
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
  border-radius: 0;
}
.f-field textarea { resize: vertical; min-height: 96px; }
.f-field input:focus,
.f-field textarea:focus,
.f-field select:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(161,129,183,.1);
}
.f-field input::placeholder,
.f-field textarea::placeholder { color: rgba(242,239,235,.2); }
.f-field select option { background: #2a2a2a; color: var(--cream); }

/* Select arrow */
.f-select-wrap { position: relative; }
.f-select-wrap::after {
  content: '';
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--lilac);
  pointer-events: none;
}

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Checkboxes ── */
.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(36,36,36,.5);
  cursor: none; transition: border-color .2s, background .2s;
}
.check-item:hover { border-color: rgba(161,129,183,.25); background: rgba(86,56,93,.06); }
.check-item input[type="checkbox"] {
  width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--lilac); cursor: none;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
}
.check-item span { font-size: .68rem; line-height: 1.55; color: rgba(242,239,235,.65); }
.other-detail-text {
  display: none;
  margin-top: 10px;
  min-height: 74px;
}
.other-detail-text.show {
  display: block;
}

/* ── Radio pills ── */
.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill label {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.1);
  font-size: .65rem; letter-spacing: .06em;
  cursor: none; transition: border-color .2s, color .2s, background .2s;
  color: rgba(242,239,235,.45);
}
.radio-pill label:hover { border-color: rgba(161,129,183,.4); color: var(--cream); }
.radio-pill input:checked + label {
  border-color: var(--lilac);
  background: rgba(86,56,93,.2);
  color: var(--cream);
}

/* ── Scale ── */
.scale-q { margin-bottom: 28px; }
.scale-q:last-child { margin-bottom: 0; }
.scale-q-label {
  font-size: .65rem; color: rgba(242,239,235,.7);
  letter-spacing: .06em; margin-bottom: 14px; display: block;
}
.scale-track {
  display: flex; align-items: center; gap: 12px;
}
.scale-end {
  font-size: .58rem; color: rgba(242,239,235,.3);
  min-width: 60px; line-height: 1.3;
}
.scale-end:last-child { text-align: right; }
.scale-buttons { display: flex; gap: 6px; flex: 1; }
.scale-btn { flex: 1; position: relative; }
.scale-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale-btn label {
  display: flex; align-items: center; justify-content: center;
  height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(36,36,36,.6);
  font-size: .65rem; color: rgba(242,239,235,.35);
  cursor: none; transition: all .15s;
}
.scale-btn label:hover { border-color: rgba(161,129,183,.4); color: var(--cream); }
.scale-btn input:checked + label {
  background: var(--purple);
  border-color: var(--lilac);
  color: var(--cream);
  font-weight: 600;
}

/* ── Divider ── */
.f-divider { height: 1px; background: rgba(255,255,255,.07); margin: 28px 0; }

/* ── Submit area ── */
.submit-area {
  margin-top: 36px;
  opacity: 0; animation: up .6s .3s forwards;
}
#submitArea { display: none; }
#submitArea.visible { display: block; }

.submit-btn {
  width: 100%;
  padding: 18px 40px;
  background: var(--purple); color: var(--cream);
  border: none; cursor: none;
  font-family: 'DM Mono', monospace; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; overflow: hidden; transition: color .3s;
}
.submit-btn:disabled {
  opacity: .78;
}
.submit-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--lilac); transform: translateX(-100%);
  transition: transform .4s ease;
}
.submit-btn:hover::before { transform: translateX(0); }
.submit-btn-text { position: relative; z-index: 1; }

.submit-error {
  display: none;
  margin-top: 12px;
  font-size: .64rem;
  line-height: 1.7;
  color: #f2b6c8;
}
.submit-error.show {
  display: block;
}

.privacy-note {
  text-align: center; font-size: .6rem;
  color: rgba(242,239,235,.25); margin-top: 14px; line-height: 1.7;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ── Success screen ── */
.success-screen {
  display: none; text-align: center;
  padding: 100px 24px;
}
.success-screen.show { display: block; animation: up .7s ease both; }
.success-icon {
  font-size: 3rem; margin-bottom: 28px;
  display: block;
}
.success-screen h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; letter-spacing: -.02em; margin-bottom: 16px;
}
.success-screen h2 em { font-style: italic; color: var(--lilac); }
.success-screen p {
  font-size: .72rem; line-height: 1.9;
  color: rgba(242,239,235,.4); max-width: 420px; margin: 0 auto 40px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-wrap { padding: 0 20px 80px; }
  .form-page { padding-top: 96px; }
  .role-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .f-card { padding: 24px 20px; }
  .scale-end { min-width: 40px; font-size: .52rem; }
}
