/* ============================================================
   INTAKE — "Become A Client" form + shared CTA button
   Builds on styles.css tokens. Kept in its own file so the
   long-lived cache on styles.css never serves stale form styles.
   ============================================================ */

/* ---------- Shared CTA button (used on home + intake) ---------- */

.cta-btn {
  --btn-glow: var(--c-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #001a12;
  background: var(--c-glow);
  border: 1px solid var(--c-glow);
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.05s ease, color 0.18s ease;
  box-shadow: 0 0 18px var(--c-glow-soft), 0 0 36px var(--c-glow-soft);
  -webkit-appearance: none;
  appearance: none;
}
.cta-btn::before,
.cta-btn::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  pointer-events: none;
}
.cta-btn::before { top: -2px; left: -2px; border-top: 1px solid #fff; border-left: 1px solid #fff; }
.cta-btn::after  { bottom: -2px; right: -2px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; }

.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--c-glow-bright);
  box-shadow: 0 0 26px var(--c-glow-strong), 0 0 54px var(--c-glow-mid);
  outline: none;
}
.cta-btn:active { transform: translateY(1px); }

.cta-btn--ghost {
  color: #fff;
  background: transparent;
  border-color: var(--c-line);
  box-shadow: none;
}
.cta-btn--ghost:hover,
.cta-btn--ghost:focus-visible {
  background: rgba(95, 255, 206, 0.06);
  border-color: var(--c-glow);
  color: var(--c-glow-bright);
  box-shadow: 0 0 18px var(--c-glow-soft);
}

.cta-btn[disabled] { opacity: 0.55; pointer-events: none; }
.cta-btn.is-loading .btn-label { opacity: 0.5; }

/* Home-page CTA placement */
.home-cta { margin: 4px auto 0; display: inline-flex; }

/* ---------- Intake layout ---------- */

.intake-body { overflow-y: auto; }

.intake-stage { align-items: flex-start; padding-top: 84px; }

.intake-inner {
  max-width: 720px;
  text-align: center;
}

.back-link {
  color: var(--c-muted);
  text-decoration: none;
  letter-spacing: 0.24em;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
.back-link:hover,
.back-link:focus-visible {
  color: var(--c-glow-bright);
  text-shadow: 0 0 12px var(--c-glow);
  outline: none;
}

.intake-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 6vw, 58px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 0 22px var(--c-glow-strong), 0 0 60px var(--c-glow-soft);
}

.intake-panel {
  max-width: 720px;
  margin-top: 30px;
  text-align: left;
}

/* ---------- Form ---------- */

.intake-form { padding: 22px 22px 26px; }

.field { margin-bottom: 20px; border: 0; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-fg-soft);
  margin-bottom: 9px;
}
.field-label.req::after {
  content: ' *';
  color: var(--c-glow);
  text-shadow: 0 0 8px var(--c-glow-mid);
}

.input {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--c-line);
  color: var(--c-fg);
  font-family: var(--f-mono);
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--c-muted); }
.input:hover { border-color: rgba(255, 255, 255, 0.32); }
.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--c-glow);
  background: rgba(95, 255, 206, 0.035);
  box-shadow: 0 0 0 1px var(--c-glow-soft), 0 0 18px var(--c-glow-soft);
}
textarea.input { resize: vertical; min-height: 96px; line-height: 1.6; }

.input.has-error {
  border-color: #c77b7b;
  box-shadow: 0 0 0 1px rgba(199, 123, 123, 0.3);
}

/* ---------- Project-type chips ---------- */

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-fg-soft);
  border: 1px solid var(--c-line);
  background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  user-select: none;
}
.chip:hover span { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.chip input:checked + span {
  color: #001a12;
  background: var(--c-glow);
  border-color: var(--c-glow);
  box-shadow: 0 0 16px var(--c-glow-soft);
  font-weight: 700;
}
.chip input:focus-visible + span {
  outline: 1px solid var(--c-glow);
  outline-offset: 2px;
}

/* ---------- Dropzone ---------- */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 26px 18px;
  border: 1px dashed var(--c-line);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--c-glow);
  background: rgba(95, 255, 206, 0.05);
  box-shadow: inset 0 0 24px var(--c-glow-soft);
}
.dropzone-icon {
  font-size: 20px;
  color: var(--c-glow);
  text-shadow: 0 0 12px var(--c-glow-mid);
}
.dropzone-text { font-size: 13px; color: var(--c-fg); letter-spacing: 0.04em; }
.dropzone-hint { font-size: 10.5px; color: var(--c-muted); letter-spacing: 0.08em; }

.file-list { list-style: none; margin: 10px 0 0; padding: 0; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-fg-soft);
  border: 1px solid var(--c-line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.file-list .file-meta { color: var(--c-muted); font-size: 11px; white-space: nowrap; }
.file-list .file-remove {
  background: none;
  border: none;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s ease;
}
.file-list .file-remove:hover { color: #c77b7b; }

/* ---------- Errors + submit ---------- */

.form-error {
  margin: 4px 0 16px;
  padding: 10px 13px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #e6b3b3;
  border: 1px solid rgba(199, 123, 123, 0.5);
  background: rgba(199, 123, 123, 0.08);
}

.cta-btn--submit {
  width: 100%;
  margin-top: 22px;
  padding: 15px 26px;
  font-size: 13px;
}

/* ---------- Success state ---------- */

.intake-success {
  padding: 44px 26px 48px;
  text-align: center;
}
.success-mark {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #001a12;
  background: var(--c-glow);
  border-radius: 50%;
  box-shadow: 0 0 26px var(--c-glow-strong), 0 0 54px var(--c-glow-mid);
}
.success-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 0 16px var(--c-glow-mid);
}
.success-text {
  font-size: 13px;
  color: var(--c-fg-soft);
  line-height: 1.75;
  max-width: 420px;
  margin: 0 auto 26px;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .intake-stage { padding: 60px 16px 40px; }
  .intake-panel { margin-top: 22px; }
  .intake-form { padding: 18px 16px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 20px; }
}
