/* Surrender Calculator v1 — prefix: nsc- */

/* ── Layout ─────────────────────────────────────────────── */
.nsc-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Hero ───────────────────────────────────────────────── */
.nsc-hero {
  background: var(--nli-hero);
  padding: 48px 20px;
  text-align: center;
  margin-bottom: 40px;
}
.nsc-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.nsc-hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.nsc-hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.2;
}
.nsc-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 0;
  line-height: 1.6;
}

/* ── Section wrappers ───────────────────────────────────── */
.nsc-section {
  margin-bottom: 48px;
}
.nsc-section-title {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 20px;
}

/* ── Calculator card ────────────────────────────────────── */
.nsc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
@media (max-width: 600px) {
  .nsc-card { padding: 20px 16px; }
}

.nsc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 560px) {
  .nsc-form-grid { grid-template-columns: 1fr; }
}

.nsc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nsc-field--full {
  grid-column: 1 / -1;
}
.nsc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-s);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.nsc-select,
.nsc-input {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  width: 100%;
  box-sizing: border-box;
}
.nsc-select:focus,
.nsc-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.nsc-field-hint {
  font-size: 11px;
  color: var(--ink-s);
  opacity: .7;
}

.nsc-error {
  color: var(--red);
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

.nsc-calc-btn {
  width: 100%;
  height: 52px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .15s;
}
.nsc-calc-btn:hover { background: var(--red-d); }

/* ── Results ────────────────────────────────────────────── */
.nsc-results {
  display: none;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.nsc-results--visible { display: block; }

.nsc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 560px) {
  .nsc-metrics { grid-template-columns: 1fr; }
}

.nsc-metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.nsc-metric__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-s);
  margin-bottom: 6px;
}
.nsc-metric__val {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  word-break: break-word;
}
.nsc-metric__sub {
  font-size: 11px;
  color: var(--ink-s);
  margin-top: 4px;
}
.nsc-metric--fd    { border-color: var(--green-l); background: var(--green-bg); }
.nsc-metric--fd    .nsc-metric__val { color: var(--green); }
.nsc-metric--stay  { border-color: var(--navy); background: var(--navy-bg); }
.nsc-metric--stay  .nsc-metric__val { color: var(--navy); }

/* ── Verdict ────────────────────────────────────────────── */
.nsc-verdict {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: none;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
/* Neutral comparison framing — surrender is a trade-off to weigh, not an alarm
   (red = action, navy = structure per the design system). See ADR-0017. */
.nsc-verdict--neutral {
  background: var(--navy-bg);
  border-left: 4px solid var(--navy);
}
.nsc-verdict--stay {
  background: var(--green-bg);
  border-left: 4px solid var(--green-l);
}
.nsc-verdict__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.nsc-verdict__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}
.nsc-verdict__body {
  font-size: 13px;
  color: var(--ink-s);
  margin: 0;
  line-height: 1.5;
}

/* ── Maturity message (past maturity) ───────────────────── */
.nsc-maturity-msg {
  background: var(--navy-bg);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink);
  display: none;
  margin-top: 20px;
}

/* ── Surrender checklist ────────────────────────────────── */
.nsc-checklist {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 48px;
}
@media (max-width: 600px) {
  .nsc-checklist { padding: 20px 16px; }
}
.nsc-checklist-title {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 16px;
}
.nsc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.nsc-steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-s);
  line-height: 1.55;
}
.nsc-steps li:last-child { border-bottom: none; }
.nsc-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  min-width: 24px;
  padding-top: 2px;
}
.nsc-steps strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.nsc-nia-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.nsc-nia-link:hover { text-decoration: underline; }

/* ── Lead form ──────────────────────────────────────────── */
.nsc-lead-section {
  background: var(--bg);
  padding: 48px 20px;
  margin-left: -20px;
  margin-right: -20px;
}
.nsc-lead-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.nsc-lead-inner h2 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 8px;
}
.nsc-lead-inner p {
  font-size: 14px;
  color: var(--ink-s);
  margin: 0 0 24px;
}
.nsc-lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .nsc-lead-form { grid-template-columns: 1fr; }
}
.nsc-inp {
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  width: 100%;
  box-sizing: border-box;
}
.nsc-inp:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.nsc-inp--full { grid-column: 1 / -1; }
.nsc-submit-btn {
  grid-column: 1 / -1;
  height: 52px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.nsc-submit-btn:hover { background: var(--red-d); }
.nsc-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.nsc-wa-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}
.nsc-wa-btn:hover { background: #1ebe5d; }
.nsc-ok {
  display: none;
  text-align: center;
  padding: 32px 0;
}
.nsc-ok-icon { font-size: 36px; margin-bottom: 8px; }
.nsc-section-title--sm{margin-bottom:16px}

@media(max-width:600px){.nsc-section{margin-bottom:32px}.nsc-hero{padding:32px 16px;margin-bottom:24px}}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}