/* Scoped to the new calculator page. Shared navigation and other routes stay unchanged. */
body.savio-calculator-page {
  --erc-ink: #2e1142;
  --erc-purple: #5b258f;
  --erc-bright: #8d48f6;
  --erc-orange: #fe5e3b;
  --erc-paper: #fcfaf7;
  --erc-muted: #6b6073;
  --erc-line: #e3dce9;
  color: var(--erc-ink);
  background: var(--erc-paper);
}
.savio-calculator-page .footer_component { position: relative; bottom: auto; z-index: 1; }
.erc-main, .erc-main * { box-sizing: border-box; }
.erc-main { width: 100%; margin: 0; font-family: inherit; }
.erc-main [hidden] { display: none !important; }
.erc-main input, .erc-main button { font: inherit; }
.erc-main button { cursor: pointer; }
.erc-main button:disabled, .erc-main input:disabled { cursor: not-allowed; }
.erc-main button:focus-visible, .erc-main a:focus-visible, .erc-main input:focus-visible {
  outline: 3px solid var(--erc-bright); outline-offset: 4px;
}
.erc-container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.erc-hero { padding: 82px 0 64px; background: #f2ecff; text-align: center; border-bottom: 1px solid var(--erc-line); }
.erc-eyebrow { margin: 0 0 18px; font-size: 12px; line-height: 1.4; letter-spacing: .11em; text-transform: uppercase; font-weight: 600; }
.erc-hero .erc-eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.erc-hero .erc-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--erc-orange); }
.erc-hero h1 { margin: 0; font-size: clamp(38px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; }
.erc-hero h1 em { font-style: normal; color: var(--erc-purple); }
.erc-hero-copy { max-width: 630px; margin: 24px auto; font-size: 20px; line-height: 1.45; color: #594d63; }
.erc-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; color: #62556f; font-size: 13px; }
.erc-hero-meta span::before { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 5px; border-radius: 50%; margin-right: 8px; background: var(--erc-purple); }
.erc-tool { padding: 62px 0 50px; }
.erc-section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.erc-section-top .erc-eyebrow { color: var(--erc-purple); margin-bottom: 12px; }
.erc-section-top h2 { margin: 0; font-size: 34px; line-height: 1.12; letter-spacing: -.025em; font-weight: 600; }
.erc-section-top > p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--erc-muted); }
.erc-tabs { display: flex; gap: 6px; width: fit-content; padding: 6px; border: 1px solid var(--erc-line); border-radius: 16px; margin-bottom: 24px; background: #eee8f3; }
.erc-tabs button { padding: 13px 22px; color: #64506e; background: transparent; border: none; border-radius: 10px; font-size: 15px; line-height: 1.2; font-weight: 600; min-height: 46px; }
.erc-tabs button[aria-selected="true"] { color: var(--erc-ink); background: #fff; box-shadow: 0 2px 6px #2e114214; }
.erc-workspace { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border: 1px solid var(--erc-line); border-radius: 24px; background: #fff; box-shadow: 0 20px 55px #2e114209; }
.erc-inputs { padding: 36px 40px; min-width: 0; }
.erc-panel-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
.erc-step { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid #dfd0ef; border-radius: 12px; background: #f4ecfb; font-size: 13px; color: var(--erc-purple); }
.erc-panel-heading h3 { margin: 0 0 6px; font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.erc-panel-heading p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--erc-muted); }
.erc-field { margin-bottom: 25px; min-width: 0; }
.erc-field label, .erc-capture-pending label { display: block; margin: 0 0 9px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.erc-field input:not([type="range"]), .erc-capture-pending input { width: 100%; min-width: 0; height: 54px; padding: 12px 16px; border: 1px solid #d8cde2; border-radius: 10px; background: #fcfbfd; color: var(--erc-ink); font-size: 22px; line-height: 1.2; font-weight: 500; box-shadow: none; }
.erc-input-wrap { display: flex; align-items: center; border: 1px solid #d8cde2; border-radius: 10px; background: #fcfbfd; }
.erc-input-wrap span { padding-left: 16px; color: #796686; font-size: 19px; }
.erc-input-wrap input:not([type="range"]) { border: 0; background: transparent; padding-left: 9px; }
.erc-input-wrap--suffix input:not([type="range"]) { padding-left: 16px; }
.erc-input-wrap--suffix span { padding: 0 16px 0 0; }
.erc-field--scenario label { color: var(--erc-purple); }
.erc-field--scenario .erc-input-wrap { border-color: #b7472e; background: #fff0ec; }
.erc-field--scenario .erc-input-wrap span { color: #b7472e; }
.erc-field--scenario .erc-input-wrap input:not([type="range"]) { color: var(--erc-ink); font-weight: 600; }
.erc-field--scenario .erc-input-wrap:focus-within { border-color: var(--erc-purple); box-shadow: 0 0 0 3px #8d48f633; }
.erc-help { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--erc-muted); }
.erc-field input[aria-invalid="true"] { outline: 2px solid #a52835; outline-offset: -2px; }
.erc-error { margin: 8px 0 0; color: #992936; font-size: 13px; line-height: 1.4; }
.erc-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.erc-range { width: 100%; display: block; margin-top: 14px; accent-color: var(--erc-purple); min-height: 24px; }
.erc-reset { color: var(--erc-purple); font-size: 13px; background: transparent; border: 0; border-bottom: 1px solid #c6abdd; padding: 5px 0; }
.erc-results { min-width: 0; background: #38154e; border-radius: 0 23px 23px 0; color: #fff; padding: 36px 40px; }
.erc-result-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.erc-result-top .erc-eyebrow { color: #ddc8ed; margin: 0; }
.erc-estimate-tag { flex-shrink: 0; padding: 5px 9px; border: 1px solid #78538e; border-radius: 20px; color: #e9d8f5; font-size: 10px; line-height: 1.2; }
.erc-results h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 500; color: #f3e8fa; }
.erc-big-number { margin: 0 0 22px; font-size: clamp(42px, 4.3vw, 60px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; overflow-wrap: anywhere; }
.erc-current-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 0; border-top: 1px solid #654277; border-bottom: 1px solid #654277; color: #d4bddf; font-size: 13px; line-height: 1.4; }
.erc-current-row strong { max-width: 100%; color: #fff; font-size: 19px; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.erc-difference { margin-top: 18px; background: #ffffff0b; border: 1px solid #6e4b80; border-radius: 14px; padding: 17px 18px; }
.erc-difference > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.erc-difference span { flex: 1 1 80px; font-size: 12px; line-height: 1.4; color: #e3d1ee; }
.erc-difference strong { flex: 0 0 auto; max-width: 100%; text-align: right; font-weight: 600; font-size: 25px; line-height: 1.2; color: #ffd0ba; overflow-wrap: anywhere; }
.erc-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 23px; border: 0; border-radius: 999px; background: var(--erc-orange); color: #2e1142; font-size: 16px; line-height: 1.25; font-weight: 600; text-decoration: none; min-height: 50px; transition: background .15s ease; }
.erc-primary:hover { background: #ffb494; color: #2e1142; }
.erc-primary:disabled { background: #e4dce9; color: #62556f; }
.erc-results .erc-primary { width: 100%; margin-top: 20px; }
.erc-result-note { margin: 11px 0 0; color: #d4bddf; font-size: 11px; line-height: 1.5; }
.erc-invalid { color: #ffdfd6; line-height: 1.5; padding: 16px 0; }
.erc-method-note { font-size: 12px; line-height: 1.6; color: var(--erc-muted); max-width: 860px; margin: 22px auto 0; text-align: center; }
.erc-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.erc-method { padding: 55px 0 70px; border-top: 1px solid var(--erc-line); }
.erc-method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.erc-method-grid article { border-top: 2px solid #d4c4e4; padding-top: 22px; }
.erc-method-num { font-size: 12px; color: var(--erc-purple); }
.erc-method-grid h3 { margin: 14px 0; font-size: 22px; font-weight: 600; line-height: 1.2; }
.erc-method-grid p { font-size: 14px; color: var(--erc-muted); line-height: 1.6; margin: 0 0 12px; }
.erc-cta { padding: 55px 0; background: #ede4fa; }
.erc-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.erc-cta h2 { margin: 0 0 14px; font-size: 36px; max-width: 580px; line-height: 1.12; font-weight: 600; letter-spacing: -.025em; }
.erc-cta p:last-child { margin: 0; color: var(--erc-muted); font-size: 16px; line-height: 1.5; }
.erc-cta .erc-primary { flex-shrink: 0; }
.erc-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; border: 1px solid var(--erc-line); border-radius: 20px; padding: 32px; color: var(--erc-ink); background: #fcfaf7; overflow-y: auto; }
.erc-dialog::backdrop { background: #211129ac; }
.erc-dialog h2 { margin: 0 0 16px; font-size: 34px; line-height: 1.1; font-weight: 600; }
.erc-dialog > p:not(.erc-eyebrow) { font-size: 14px; line-height: 1.5; }
.erc-close { position: absolute; top: 9px; right: 10px; width: 44px; height: 44px; font-size: 29px !important; border: 0; border-radius: 50%; background: transparent; color: var(--erc-ink); }
.erc-dialog .erc-eyebrow { padding-right: 35px; color: var(--erc-purple); }
.erc-report-preview { padding: 18px; border: 1px solid #d5c6e0; border-radius: 12px; background: #f3ecfa; }
.erc-report-preview p { display: flex; justify-content: space-between; gap: 20px; margin: 0 0 9px; font-size: 13px; line-height: 1.5; }
.erc-report-preview p:last-child { margin: 0; }
.erc-report-preview strong { text-align: right; }
.erc-capture-pending { margin: 24px 0; }
.erc-capture-pending p { font-size: 12px; line-height: 1.6; color: #62556f; }
.erc-capture-pending p strong { display: block; color: var(--erc-purple); }
.erc-capture-pending input { font-size: 16px; background: #f0ecf3; color: #6b6073; }
.erc-capture-pending .erc-primary { width: 100%; justify-content: center; margin-top: 12px; font-size: 14px; }
.erc-download { border: 1px solid #9e82b5; padding: 13px 18px; width: 100%; border-radius: 999px; color: var(--erc-purple); background: transparent; font-weight: 600; font-size: 14px; min-height: 46px; }
.erc-dialog-note { color: var(--erc-muted); text-align: center; font-size: 11px !important; }
.erc-noscript { padding: 18px; border: 1px solid var(--erc-line); background: #f2ecff; }
@media (max-width: 1000px) {
  .erc-container { width: calc(100% - 48px); }
  .erc-inputs, .erc-results { padding: 28px; }
  .erc-section-top > p { max-width: 220px; }
  .erc-result-top { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .erc-container { width: calc(100% - 36px); }
  .erc-hero { padding: 48px 0 38px; }
  .erc-hero h1 { font-size: clamp(34px, 7vw, 50px); }
  .erc-hero-copy { font-size: 17px; }
  .erc-hero-meta { font-size: 11px; gap: 10px 16px; }
  .erc-tool { padding-top: 38px; }
  .erc-section-top { display: block; }
  .erc-section-top h2 { font-size: 29px; }
  .erc-section-top > p { max-width: none; font-size: 14px; margin-top: 14px; }
  .erc-section-top > p br { display: none; }
  .erc-tabs { width: 100%; }
  .erc-tabs button { flex: 1; font-size: 13px; padding: 12px 10px; }
  .erc-workspace { grid-template-columns: 1fr; border-radius: 18px; }
  .erc-inputs { padding: 26px 22px; }
  .erc-results { border-radius: 0 0 17px 17px; padding: 28px 24px; }
  .erc-field { margin-bottom: 23px; }
  .erc-big-number { font-size: 50px; }
  .erc-difference strong { font-size: 23px; }
  .erc-method-grid { grid-template-columns: 1fr; }
  .erc-method { padding: 40px 0; }
  .erc-cta-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .erc-cta h2 { font-size: 30px; }
  .erc-dialog { padding: 28px 22px; }
}
@media (max-width: 360px) {
  .erc-container { width: calc(100% - 24px); }
  .erc-inputs, .erc-results { padding-inline: 18px; }
  .erc-big-number { font-size: 43px; }
  .erc-field-pair { gap: 12px; }
  .erc-difference > div { align-items: flex-start; }
  .erc-difference strong { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .erc-main *, .erc-main *::before, .erc-main *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Invalid inputs must not leave a stale estimate looking current. */
.erc-results--invalid .erc-big-number,
.erc-results--invalid .erc-current-row,
.erc-results--invalid .erc-difference { display: none; }
