.nhs-early-retirement-page .nhs-home-hero p {
  max-width: 880px;
}

.nhs-early-calculator-shell {
  margin-top: 24px;
}

.nhs-early-calculator-shell + .nhs-home-card {
  margin-top: 24px;
}

.nhs-early-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.nhs-early-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--nhs-border);
  border-radius: 999px;
  background: #fff;
  color: var(--nhs-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nhs-early-tab.is-active {
  border-color: var(--nhs-blue);
  background: var(--nhs-blue);
  color: #fff;
}

.nhs-early-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.nhs-early-card-stack {
  display: grid;
  gap: 18px;
}

.nhs-early-form-grid,
.nhs-early-info-grid,
.nhs-early-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.nhs-early-field span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #526277;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nhs-early-field strong {
  color: var(--nhs-blue);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
}

.nhs-early-field input:not([type="range"]) {
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--nhs-border);
  border-radius: 14px;
  background: #fff;
  color: var(--nhs-ink);
  font: inherit;
  box-sizing: border-box;
  appearance: none;
}

.nhs-early-field input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nhs-blue) 0%, var(--nhs-blue) var(--slider-fill, 0%), #c9d9f2 var(--slider-fill, 0%), #c9d9f2 100%);
  appearance: none;
  outline: none;
}

.nhs-early-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--nhs-blue);
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.28);
  cursor: pointer;
}

.nhs-early-field input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--nhs-blue);
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.28);
  cursor: pointer;
}

.nhs-early-scheme-copy,
.nhs-early-results-note {
  margin: 0 0 14px;
  color: #526277;
}

.nhs-early-results-note {
  margin-top: 12px;
  padding-top: 6px;
}

.nhs-early-info-box,
.nhs-early-comparison-card {
  padding: 14px;
  border: 1px solid var(--nhs-border);
  border-radius: 14px;
  background: var(--nhs-surface-soft);
}

.nhs-early-info-box small,
.nhs-early-comparison-card small {
  display: block;
  margin-bottom: 6px;
  color: #526277;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nhs-early-info-box strong,
.nhs-early-comparison-card strong {
  display: block;
  color: var(--nhs-ink);
}

.nhs-early-comparison-card p {
  margin: 4px 0 0;
  color: #526277;
}

.nhs-early-results-card {
  position: sticky;
  top: 18px;
}

.nhs-early-results-top .nhs-home-results-label,
.nhs-early-results-top .nhs-home-results-value,
.nhs-early-results-top .nhs-home-results-badge {
  color: #fff;
}

.nhs-early-results-top .nhs-home-results-badge {
  background: rgba(255, 255, 255, 0.12);
}

.nhs-early-active-row {
  background: rgba(0, 94, 184, 0.06);
}

.nhs-early-active-row td {
  font-weight: 700;
}

@media (max-width: 980px) {
  .nhs-early-calc-grid {
    grid-template-columns: 1fr;
  }

  .nhs-early-results-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .nhs-early-form-grid,
  .nhs-early-info-grid,
  .nhs-early-comparison-grid {
    grid-template-columns: 1fr;
  }
}
