/* Quiz styles — pre-VSL gate. Stripped from old /apply page. */

.apply-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
.apply-shell::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 720px;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: 0;
}

.apply-progress {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  max-width: 640px; margin: 28px auto 8px;
  padding: 0 24px; width: 100%;
}
.apply-progress-track { flex: 1; display: flex; gap: 6px; }
.apply-progress-seg {
  flex: 1; height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden; position: relative;
}
.apply-progress-seg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 380ms var(--ease-out);
}
.apply-progress-seg.is-filled::after { transform: scaleX(1); }
.apply-progress-seg.is-active::after { transform: scaleX(0.55); }
.apply-progress-label {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.apply-stage {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 24px 80px;
  width: 100%;
}
.apply-card {
  width: 100%; max-width: 600px;
  display: flex; flex-direction: column; gap: 24px;
}

.apply-step { animation: step-in 320ms var(--ease-out); }
@keyframes step-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.apply-eyebrow {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.apply-q {
  font-family: var(--font-display);
  font-weight: 700; font-size: 32px;
  letter-spacing: -0.025em; line-height: 1.12;
  color: var(--fg); margin: 0;
  text-wrap: balance;
}
.apply-sub {
  font-family: var(--font-body);
  font-size: 15px; color: var(--fg-2);
  line-height: 1.55; margin: 0; max-width: 540px;
}

.opt-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.opt-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 56px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer;
  font-family: var(--font-body);
  font-size: 15.5px; color: var(--fg-1);
  text-align: left;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.opt-row:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.opt-row:active { transform: scale(0.99); }
.opt-row.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--fg);
}
.opt-radio {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elev);
  transition: border-color 180ms var(--ease-out);
}
.opt-row.is-selected .opt-radio { border-color: var(--accent); }
.opt-radio::after {
  content: ""; width: 10px; height: 10px;
  border-radius: 999px; background: var(--accent);
  transform: scale(0);
  transition: transform 180ms var(--ease-out);
}
.opt-row.is-selected .opt-radio::after { transform: scale(1); }

.opt-other-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px; color: var(--fg);
  transition: border-color 180ms var(--ease-out);
}
.opt-other-input::placeholder { color: var(--fg-4); }
.opt-other-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.opt-other-input.has-error {
  border-color: #E0584A;
}

.phone-row { display: flex; gap: 10px; }
.phone-cc {
  width: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  font-family: var(--font-body);
  font-size: 14px; color: var(--fg);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%239B9B9B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px; cursor: pointer;
}
.phone-cc:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.phone-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px; color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.phone-input::placeholder { color: var(--fg-4); }
.phone-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.phone-input.has-error { border-color: #E0584A; }

.apply-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 8px; flex-wrap: wrap;
}
.apply-back {
  background: transparent; border: none;
  color: var(--fg-3);
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 4px;
  transition: color 180ms var(--ease-out);
}
.apply-back:hover { color: var(--fg-1); }
.apply-back svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2.25;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.apply-cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 700; font-size: 15px;
  border: none; border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 180ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 220ms var(--ease-out);
}
.apply-cta:hover {
  background: var(--accent-hover);
  box-shadow: var(--cta-glow);
  transform: translateY(-1px);
}
.apply-cta:active { transform: translateY(0) scale(0.98); }
.apply-cta:disabled {
  background: var(--surface-2);
  color: var(--fg-4);
  cursor: not-allowed; box-shadow: none; transform: none;
}
.apply-cta .arr {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2.25;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 220ms var(--ease-out);
}
.apply-cta:hover .arr { transform: translateX(3px); }

.apply-micro {
  font-family: var(--font-body);
  font-size: 12.5px; color: var(--fg-3);
  margin: 0;
}
.apply-micro svg {
  width: 12px; height: 12px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -2px; margin-right: 5px;
  color: var(--accent);
}
.field-err {
  color: #E0584A;
  font-family: var(--font-body);
  font-size: 12.5px;
  margin-top: -2px;
}

.apply-intro h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--fg); margin: 0;
  text-wrap: balance;
}

@media (max-width: 600px) {
  .apply-progress { padding: 0 16px; margin: 18px auto 4px; gap: 10px; }
  .apply-progress-label { font-size: 11px; }
  .apply-stage { padding: 24px 16px 56px; }
  .apply-q { font-size: 24px; }
  .apply-sub { font-size: 14px; }
  .apply-intro h1 { font-size: 28px; }
  .opt-row { font-size: 14.5px; padding: 14px 14px; }
  .apply-cta { width: 100%; justify-content: center; padding: 14px 20px; }
  .phone-cc { width: 84px; font-size: 13px; }
}

/* =============================================================
   Thank-you screen (soft DQ)
   ============================================================= */
.thanks-stage {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}
.thanks-card {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 40px 36px;
  position: relative;
  overflow: hidden;
}
.thanks-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(61,220,151,0.4), rgba(61,220,151,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.thanks-mark {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.thanks-mark svg {
  width: 28px; height: 28px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.thanks-eyebrow {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.thanks-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 34px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin: 0 0 16px;
  text-wrap: balance;
}
.thanks-lede {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 4px;
}
.thanks-lede strong { color: var(--fg); font-weight: 600; }
.thanks-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0 24px;
}
.thanks-sub {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 16px;
}
.thanks-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.thanks-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-family: var(--font-body);
  font-size: 14.5px; line-height: 1.55;
  color: var(--fg-2);
}
.thanks-list li strong { color: var(--fg); font-weight: 600; }
.thanks-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.thanks-sign {
  font-family: var(--font-body);
  font-size: 14.5px; line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 28px;
  font-style: italic;
}
.thanks-sign-name {
  color: var(--fg);
  font-weight: 600;
  font-style: normal;
}
.thanks-cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 600px) {
  .thanks-stage { padding: 32px 16px; }
  .thanks-card { padding: 28px 22px; border-radius: 18px; }
  .thanks-title { font-size: 26px; }
  .thanks-lede { font-size: 15px; }
}
