/* =========================================================
   Qualification form + outcome pages
   Matches the editorial / fiduciary style in styles.css
   ========================================================= */

.form-main {
  background: var(--paper);
  padding: 64px 0 96px;
  min-height: calc(100vh - 200px);
  border-top: 1px solid var(--rule);
}

.form-intro {
  text-align: center;
  margin-bottom: 48px;
}
.form-intro h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 42px);
  color: var(--ink);
  margin: 12px 0 16px;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.form-intro .lede {
  font-family: var(--serif);
  color: var(--ink-2);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- Form shell ---------- */
.qualify-form {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 48px;
}

/* ---------- Progress ---------- */
.progress-bar {
  height: 2px;
  background: var(--rule-soft);
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  width: 16.66%;
  background: var(--accent);
  transition: width 0.3s ease;
}
.progress-label {
  text-align: right;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 36px;
  font-weight: 500;
}

/* ---------- Steps ---------- */
.step {
  border: 0;
  margin: 0;
  padding: 0;
  display: none;
  animation: fadeIn 0.25s ease;
}
.step.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.step legend {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.step-sub {
  margin: -18px 0 28px;
  color: var(--ink-3);
  font-size: 16px;
  font-family: var(--serif);
}

/* ---------- Radio cards (now editorial style) ---------- */
.radio-cards {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-soft);
}
.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 20px 18px 48px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--white);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.radio-card:hover {
  background: var(--paper);
}
.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--white);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.radio-card:has(input:checked) {
  background: var(--paper-2);
  color: var(--ink);
}
.radio-card:has(input:checked)::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--paper-2);
}

/* ---------- Text inputs ---------- */
.text-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.text-inputs label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.text-inputs label:nth-child(3),
.text-inputs label:nth-child(4) {
  grid-column: 1 / -1;
}
.text-inputs input {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  outline: none;
  transition: border-color 0.15s ease;
  border-radius: 0;
}
.text-inputs input::placeholder { color: var(--ink-3); font-style: italic; }
.text-inputs input:focus {
  border-bottom-color: var(--accent);
}

.fineprint {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* ---------- Nav buttons ---------- */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 12px;
}
.form-nav .btn-primary {
  margin-left: auto;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  text-align: center;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ---------- Outcome pages (qualified / thank-you) ---------- */
.outcome-main {
  background: var(--paper);
  padding: 80px 0;
  min-height: calc(100vh - 200px);
  border-top: 1px solid var(--rule);
}
.outcome-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 56px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.outcome-mark {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.outcome-card h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 40px);
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.outcome-card p {
  font-family: var(--serif);
  color: var(--ink-2);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 14px;
  line-height: 1.55;
}
.outcome-card .next-steps {
  margin-top: 40px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: 28px 32px;
}
.outcome-card .next-steps h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.outcome-card .next-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
}
.outcome-card .next-steps li { margin-bottom: 8px; }

.calendly-wrap {
  margin-top: 40px;
  border: 1px solid var(--rule);
  background: var(--white);
  min-height: 700px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .qualify-form { padding: 28px 22px; }
  .text-inputs { grid-template-columns: 1fr; gap: 22px; }
  .text-inputs label:nth-child(3),
  .text-inputs label:nth-child(4) { grid-column: auto; }
  .outcome-card { padding: 36px 24px; }
}
