/* Life insurance needs calculator page */

.life-hero { position: relative; background: var(--ink); color: #fff; padding: 76px 0 96px; overflow: hidden; isolation: isolate; }
.life-hero .eyebrow { color: rgba(255,255,255,.75); font-weight: 600; letter-spacing: .08em; }
.life-hero-inner { max-width: 820px; }
.life-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 18px; }
.life-hero h1 em { font-style: normal; color: var(--red); }
.life-hero .lede { margin-bottom: 30px; }
.life-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.life-steps li { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 14px; color: rgba(255,255,255,.85); }
.life-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(238,49,36,.18); color: #ff7d73; font-size: 13px; font-weight: 800; }

.calc-section { padding-top: 0; margin-top: -48px; position: relative; z-index: 2; }
.calc-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: start; }
.calc-form { display: grid; gap: 18px; }
.calc-card { margin: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-lg); padding: 26px 28px 8px; box-shadow: var(--shadow); min-width: 0; }
.calc-card legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font); font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.calc-card legend + * { clear: both; }
.calc-num { font-size: 12px; font-weight: 800; color: var(--red); background: rgba(238,49,36,.1); border-radius: 8px; padding: 5px 8px; letter-spacing: .04em; }
.calc-help { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.calc-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }

.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money input { padding-left: 28px !important; font-variant-numeric: tabular-nums; }

.range-wrap { display: flex; align-items: center; gap: 14px; min-height: 50px; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--red); height: 6px; padding: 0 !important; border: 0 !important; background: transparent; appearance: auto; -webkit-appearance: auto; }
.range-wrap output { flex: none; min-width: 78px; text-align: right; font-family: var(--font); font-weight: 700; font-size: 15px; }

.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 180px; }
.stepper button { flex: none; width: 46px; border: 0; background: var(--tint); font: 700 20px var(--font); color: var(--ink); cursor: pointer; }
.stepper button:hover { background: #ece8e3; }
.stepper input { border: 0 !important; border-radius: 0 !important; text-align: center; font-weight: 700 !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Results */
.calc-result { position: sticky; top: 108px; }
.result-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.result-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff7d73; margin-bottom: 6px; }
.result-num { font-family: var(--font); font-weight: 800; font-size: clamp(40px, 4.4vw, 54px); line-height: 1; letter-spacing: -.03em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.result-sub { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 22px; }
.result-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); margin-bottom: 18px; }
.result-bar span { display: block; height: 100%; width: 0; transition: width .35s ease; }
.seg-income, .sw-income { background: var(--red); }
.seg-debt, .sw-debt { background: #ffd200; }
.seg-goals, .sw-goals { background: #aabf29; }
.result-list { margin: 0 0 20px; display: grid; gap: 0; font-size: 14.5px; }
.result-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.result-list dt { color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.result-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-list .total dt, .result-list .total dd { color: #fff; font-weight: 700; }
.result-list .minus dd { color: #c9d86a; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.result-term { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.result-note { font-size: 12px; color: rgba(255,255,255,.55); margin: 14px 0 0; text-align: center; }
.result-card.covered .result-num { color: #c9d86a; }

/* Conversation form */
.mini-summary { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; }
.mini-summary span { color: var(--muted); font-size: 14px; }
.mini-summary strong { font-family: var(--font); font-size: 22px; font-weight: 800; margin-right: auto; }
.mini-summary a { color: var(--red); font-weight: 600; font-size: 14px; text-decoration: none; }
.include-results { background: var(--tint); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px !important; color: var(--ink) !important; font-weight: 600; }
.quote-form fieldset.field { margin-bottom: 20px; }

.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }

@media (max-width: 900px) {
  .calc-grid, .method-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .life-hero { padding: 56px 0 80px; }
}
@media (max-width: 640px) {
  .calc-card { padding: 22px 18px 4px; }
  .result-card { padding: 24px 20px; }
}
