/**
 * Stylesheet for State Pension Age Bridge Calculator
 * Component styling: 2-column layout, DWP DOB badge, 2-tier cashflow stacks, and KPI cards
 */

.bridge-container {
  max-width: 1140px;
  margin: 36px auto 80px;
  padding: 0 24px;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: #0B1B3D;
  font-weight: 600;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.calc-header {
  text-align: center;
  margin-bottom: 36px;
}
.calc-badge {
  display: inline-block;
  background: #EBF8F4;
  color: #0F4C3A;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid #D1EAE2;
}
.calc-header h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 2.6rem;
  font-weight: 800;
  color: #0B1B3D;
  line-height: 1.25;
  margin-bottom: 12px;
}
.calc-header p {
  font-size: 1.12rem;
  color: #475569;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}
.calc-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.input-panel {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(11, 27, 61, 0.04);
}
.panel-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: #0B1B3D;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slider-group {
  margin-bottom: 22px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.slider-label {
  font-weight: 600;
  color: #0B1B3D;
  font-size: 0.92rem;
}
.slider-val {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  color: #0F4C3A;
  font-size: 1.05rem;
}
input[type="range"] {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  outline: none;
  accent-color: #0F4C3A;
  cursor: pointer;
}
.slider-subtext {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 5px;
}
.dob-control-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.dob-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.dob-input {
  padding: 8px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #0B1B3D;
  background: #FFFFFF;
  font-family: inherit;
}
.spa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0B1B3D;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}
.spa-badge span {
  color: #C5A059;
}
.output-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.result-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(11, 27, 61, 0.03);
}
.result-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 6px;
}
.result-card-val {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0B1B3D;
}
.result-card-sub {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 4px;
}
.sequencing-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(11, 27, 61, 0.04);
}
.sequencing-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0B1B3D;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.two-tier-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .two-tier-bars {
    grid-template-columns: 1fr;
  }
}
.phase-bar-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 16px;
}
.phase-bar-box.bridge-phase {
  border-color: #FCD34D;
  background: #FFFDF5;
}
.phase-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0B1B3D;
}
.income-stack {
  height: 38px;
  background: #E2E8F0;
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  margin-bottom: 8px;
}
.stack-private {
  background: #0B1B3D;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  transition: width 0.3s ease;
}
.stack-state {
  background: #0F4C3A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  transition: width 0.3s ease;
}
.phase-note {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.4;
}
.govuk-deep-link {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.88rem;
  color: #334155;
}
.govuk-deep-link a {
  color: #0F4C3A;
  font-weight: 700;
  text-decoration: underline;
}
.btn-save-scenario {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0B1B3D 0%, #0F4C3A 100%);
  color: #FAF9F5;
  border: 1px solid #C5A059;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
