/* ── Signal Loom AI — Intake Page Styles ── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --bg-deep:     #060912;
  --bg-surface:  #0d1424;
  --bg-surface2: #111c33;
  --border:      #1a2744;
  --accent:      #7c5cfc;
  --accent-bright: #a78bfa;
  --accent-glow: rgba(124,92,252,0.35);
  --cyan:        #00d4ff;
  --text:        #e8eef8;
  --text-dim:    #8899bb;
  --text-muted:  #6b7fa3;
  --green:       #10b981;
  --white:       #ffffff;
  --gold:        #c4961a;
}

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── SHELL: single column — brand on top, form below ── */
.intake-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOP: brand panel ── */
.intake-brand {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.brand-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.brand-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.brand-headline {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.brand-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

.brand-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent-bright);
  background: rgba(124,92,252,0.08);
}

.brand-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: auto;
}

.brand-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.trust-icon {
  color: var(--green);
  font-size: 16px;
  width: 20px;
  flex-shrink: 0;
}

.brand-contact {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.brand-contact a { color: var(--cyan); text-decoration: none; }
.brand-contact a:hover { text-decoration: underline; }

/* ── BOTTOM: form ── */
.intake-form-wrap {
  padding: 48px 56px;
  max-width: 860px;
  width: 100%;
}

.intake-form { display: flex; flex-direction: column; gap: 36px; }

/* ── FIELD SECTIONS ── */
.form-section {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-legend {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

/* ── FIELD ROW: 2-col ── */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }

/* ── LABELS ── */
label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── INPUTS / TEXTAREA / SELECT ── */
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  border-radius: 6px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 90px; }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238899bb' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── RADIO CARDS ── */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-group-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-surface2);
}
.radio-card:hover { border-color: var(--accent); }
.radio-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.radio-label {
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(124,92,252,0.10);
}

/* ── FAQ SECTION ── */
.faq-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.faq-toggle {
  background: var(--bg-surface);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.faq-toggle:hover { color: var(--text); }
.faq-content {
  padding: 20px 24px;
  background: var(--bg-surface2);
  display: none;
}
.faq-group { margin-bottom: 24px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.faq-item { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.faq-a { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ── SUBMIT FOOTER ── */
.form-footer { display: flex; flex-direction: column; gap: 10px; }
.btn-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-submit:hover:not(:disabled) { background: #6a4be8; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.form-note { font-size: 12px; color: var(--text-muted); }

/* ── STATE MESSAGES ── */
.form-success {
  padding: 20px 24px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px;
  color: var(--green);
  font-size: 14px;
}
.form-error {
  padding: 20px 24px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 14px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .intake-brand {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 24px;
  }
  .brand-right {
    margin-left: 0;
    width: 100%;
  }
  .brand-trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .intake-form-wrap { padding: 32px 28px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .intake-brand { padding: 24px 20px; }
  .intake-form-wrap { padding: 24px 20px; }
  .brand-headline { font-size: 20px; }
  .brand-left { max-width: 100%; }
}