.hidden-content {
  display: none !important;
}

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

.nhs-maternity-calculator-shell {
  margin-top: 26px;
}

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

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

.nhs-maternity-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nhs-maternity-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.nhs-maternity-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(0, 94, 184, 0.1);
  color: var(--nhs-blue);
  font-size: 15px;
}

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

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

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

.nhs-maternity-field input,
.nhs-maternity-field select {
  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;
}

.nhs-maternity-field small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.nhs-maternity-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 94, 184, 0.12);
  color: var(--nhs-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}

.nhs-maternity-awe-helper {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--nhs-border);
  border-radius: 16px;
  background: var(--nhs-surface-soft);
}

.nhs-maternity-awe-helper h3,
.nhs-maternity-phase-breakdown h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.nhs-maternity-awe-info {
  margin: 0 0 14px;
  color: #415163;
}

.nhs-maternity-awe-btn,
.nhs-maternity-schedule-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--nhs-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nhs-maternity-awe-result {
  margin: 12px 0 0;
  color: #23425f;
}

.nhs-maternity-warning-note {
  color: #9a6700 !important;
}

.nhs-maternity-banner {
  margin-top: 20px;
}

.nhs-maternity-banner-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.nhs-maternity-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 20px;
  font-weight: 800;
  flex: 0 0 auto;
}

.nhs-maternity-banner.success-banner .nhs-maternity-banner-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.nhs-maternity-banner.warning-banner .nhs-maternity-banner-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.nhs-maternity-banner.error-banner .nhs-maternity-banner-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.nhs-maternity-banner-copy h2 {
  margin: 0 0 4px;
}

.nhs-maternity-banner-copy p {
  margin: 0;
  color: #415163;
}

.nhs-maternity-key-dates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.key-date-box {
  padding: 14px;
  border-radius: 14px;
  background: var(--nhs-surface-soft);
  border: 1px solid var(--nhs-border);
}

.key-date-box small {
  display: block;
  margin-bottom: 6px;
  color: #526277;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nhs-maternity-results-top {
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: var(--nhs-blue);
  color: #fff;
}

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

.nhs-maternity-results-top .nhs-home-results-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.nhs-maternity-phase-breakdown {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--nhs-border);
}

.nhs-maternity-phase-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nhs-maternity-phase-item span {
  color: #64748b;
}

.nhs-maternity-ma-box,
.nhs-maternity-disclaimer {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--nhs-surface-soft);
  border: 1px solid var(--nhs-border);
}

.nhs-maternity-ma-box h3 {
  margin: 0 0 8px;
}

.nhs-maternity-schedule-toggle {
  margin-top: 18px;
}

.nhs-maternity-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.schedule-week {
  padding: 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--nhs-border);
}

.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.week-num {
  color: #526277;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-pay {
  font-weight: 800;
}

.week-type {
  color: #526277;
  font-size: 14px;
  line-height: 1.5;
}

.nhs-maternity-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.nhs-maternity-rate-grid article {
  padding: 14px;
  border-radius: 14px;
  background: var(--nhs-surface-soft);
  border: 1px solid #e5edf6;
}

.nhs-maternity-rate-grid small {
  display: block;
  margin-bottom: 6px;
  color: #526277;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nhs-maternity-rate-grid strong {
  color: #173f66;
}

.nhs-maternity-disclaimer {
  color: #415163;
  font-size: 13px;
  line-height: 1.6;
}

.text-neg,
#res-tax,
#res-ni,
#res-pension {
  color: #c81e1e;
}

.nhs-maternity-image-wrap {
  margin: 0 0 16px;
}

.nhs-maternity-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--nhs-border);
}

.nhs-maternity-quote {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--nhs-blue);
  background: rgba(0, 94, 184, 0.06);
  color: #29445f;
  border-radius: 0 14px 14px 0;
}

.nhs-maternity-read-guide {
  margin: 14px 0 0;
  color: var(--nhs-blue);
  font-weight: 700;
}

.nhs-maternity-number-list {
  margin: 0 0 16px 20px;
  padding: 0;
  color: #415163;
}

.nhs-maternity-number-list li + li {
  margin-top: 8px;
}

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

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

  .nhs-maternity-key-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nhs-maternity-form-grid,
  .nhs-maternity-key-dates,
  .nhs-maternity-schedule-grid,
  .nhs-maternity-rate-grid {
    grid-template-columns: 1fr;
  }

  .nhs-maternity-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
