/* ── Intake form — matches RecoupCAM landing design tokens ─────────────── */

/* Layout */
.intake-body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Nav */
.intake-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.nav-brand:hover { color: var(--accent); }

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* Main layout */
.intake-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 80px;
}

.intake-wrap {
  width: 100%;
  max-width: 680px;
}

/* Progress bar */
.progress-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  margin-bottom: 40px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 25%;
}

/* Step indicators */
.step-indicators {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  gap: 0;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-dot span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: all 0.25s;
}

.step-dot label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}

.step-dot.active span {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0f1a;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.step-dot.active label { color: var(--accent); }

.step-dot.done span {
  background: rgba(34, 211, 167, 0.2);
  border-color: var(--accent);
  color: var(--accent);
  content: '✓';
}

.step-connector {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 8px;
  margin-bottom: 22px; /* align with circle center */
}

/* Form steps */
.form-step { display: none; }
.form-step.active { display: block; }

/* Step header */
.step-header { margin-bottom: 40px; }

.step-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(34, 211, 167, 0.2);
  margin-bottom: 20px;
}

.step-header h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}

.step-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Form fields */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group.full { grid-column: 1 / -1; }

.field-group label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.req { color: var(--accent); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

select {
  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='%238b95a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select option { background: var(--bg-card); }

textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 120px;
}

input::placeholder, textarea::placeholder { color: rgba(139,149,168,0.5); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}

/* Upload zones */
.upload-zone {
  background: var(--bg-card);
  border: 1.5px dashed rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(34, 211, 167, 0.04);
}

.upload-zone.has-file {
  border-color: rgba(34, 211, 167, 0.4);
  border-style: solid;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.upload-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-label strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.upload-label span {
  font-size: 14px;
  color: var(--fg-muted);
}

.file-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.upload-hint {
  font-size: 12px !important;
  color: rgba(139,149,168,0.6) !important;
}

.upload-selected {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--accent-dim);
  border-radius: 8px;
}

.upload-note {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Step actions */
.step-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.btn-next,
.btn-submit {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #0a0f1a;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: -0.01em;
}

.btn-next:hover,
.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-next:active, .btn-submit:active { transform: translateY(0); }

.btn-submit {
  padding: 15px 32px;
  font-size: 16px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-right: auto;
}

.btn-back:hover { color: var(--fg); border-color: rgba(255,255,255,0.2); }

/* Submit summary */
.submit-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 167, 0.15);
  border-radius: 10px;
  margin-bottom: 28px;
}

.summary-check {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #0a0f1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.submit-summary p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Success state */
.success-state {
  text-align: center;
  padding: 80px 24px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--accent);
  color: #0a0f1a;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 0 0 12px var(--accent-dim);
}

.success-state h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.success-state p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.success-sub { font-size: 15px !important; }

.btn-home {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(34, 211, 167, 0.3);
  border-radius: 10px;
  padding: 12px 24px;
  transition: background 0.2s, color 0.2s;
}

.btn-home:hover {
  background: var(--accent);
  color: #0a0f1a;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .intake-nav { padding: 16px 20px; }
  .nav-tagline { display: none; }
  .intake-main { padding: 32px 16px 60px; }

  .field-row { grid-template-columns: 1fr; }

  .step-indicators .step-dot label { display: none; }
  .step-connector { flex: 1; }

  .upload-zone { flex-direction: column; align-items: flex-start; gap: 12px; }

  .step-actions { flex-wrap: wrap; }
  .btn-back { margin-right: 0; width: 100%; text-align: center; }
  .btn-next, .btn-submit { width: 100%; text-align: center; }
}
