/* === LEAD FORM STYLES — matches ScaffoldBridge theme === */

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-bottom: 1px solid var(--surface-2);
}
.nav-inner { display: flex; align-items: center; gap: 10px; }
.nav-logo, .nav-brand { /* inherited from theme.css */ }
.nav-actions { margin-left: auto; }
.nav-back {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: #71717a;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--fg); }

/* HERO */
.lead-hero {
  padding: 120px 24px 48px;
  background: var(--bg);
  position: relative;
}
.lead-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, transparent 100%);
  pointer-events: none;
}
.lead-hero-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.lead-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 6px 14px;
  margin-bottom: 20px;
}
.lead-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 16px;
}
.lead-highlight { color: var(--accent); }
.lead-sub {
  font-size: 1rem;
  color: #71717a;
  line-height: 1.7;
  margin-bottom: 20px;
}
.lead-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #52525b;
}
.trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

/* FORM */
.lead-form-section {
  padding: 0 24px 64px;
  background: var(--bg);
}
.lead-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  padding: 14px 16px;
  color: #fca5a5;
  font-size: 0.9rem;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #a1a1aa;
  text-transform: uppercase;
}
.form-required { color: var(--accent); }
.form-input, .form-select {
  background: var(--surface);
  border: 1.5px solid var(--surface-2);
  border-radius: 6px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: #52525b; }
.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-hint {
  font-size: 0.78rem;
  color: #52525b;
  line-height: 1.4;
}
.form-select-wrapper { position: relative; }
.form-select { padding-right: 40px; cursor: pointer; }
.form-select-arrow {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #71717a;
  pointer-events: none;
}

/* SUBMIT */
.form-submit {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  padding: 16px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
  position: relative;
}
.form-submit:hover { background: #d97706; }
.form-submit:active { transform: scale(0.99); }
.form-submit.loading .submit-spinner { display: inline-block; }
.form-submit.loading .submit-text { opacity: 0.7; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.submit-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(24,24,27,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-disclaimer {
  font-size: 0.8rem;
  color: #52525b;
  text-align: center;
  line-height: 1.5;
}

/* WHY US */
.lead-why {
  padding: 48px 24px 64px;
  background: var(--surface);
  border-top: 1px solid var(--surface-2);
}
.why-items {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 4px;
}
.why-desc {
  font-size: 0.9rem;
  color: #71717a;
  line-height: 1.6;
}

/* FOOTER */
.lead-footer {
  background: var(--bg);
  border-top: 1px solid var(--surface-2);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 0.8rem;
  color: #52525b;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.85rem;
  background: var(--accent);
  color: var(--bg);
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
  text-align: center;
  background: var(--bg);
}
.success-icon {
  width: 72px; height: 72px;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 32px;
}
.success-headline {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3rem;
  color: var(--fg);
  margin-bottom: 16px;
}
.success-body {
  font-size: 1.05rem;
  color: #a1a1aa;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 40px;
}
.success-body strong { color: var(--fg); }
.success-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 32px;
}
.sc-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
}
.sc-row:last-child { border-bottom: none; }
.sc-label { color: #71717a; font-size: 0.85rem; }
.sc-val { font-weight: 600; color: var(--fg); font-size: 0.95rem; }
.success-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #52525b;
  margin-bottom: 40px;
}
.hint-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.success-back {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: #71717a;
  text-decoration: none;
  transition: color 0.2s;
}
.success-back:hover { color: var(--fg); }

@media (max-width: 600px) {
  .lead-hero { padding: 100px 16px 40px; }
  .lead-form-section { padding: 0 16px 48px; }
  .lead-why { padding: 40px 16px 48px; }
}