/* Energy savings calculator widget styles. Scoped to the calculator section. */
.energy-calculator-section {
    --blue:    #005B8E;
    --text:    #4A4A4B;
    --sand:    #c4aa70;
    --border:  #E5E5E5;
    --muted:   #7A7A7B;
    --hint:    #A0A0A1;
    --bg:      #FFFFFF;
    --surface: #F8F8F8;
    --transition: 180ms ease;
    --section-heading-size: clamp(28px, 3vw, 40px);
    --section-heading-weight: 700;
  }
.energy-calculator-section {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  padding: clamp(54px, 7vw, 96px) clamp(24px, 5vw, 58px);
  line-height: 1.6;
}
.calc-container {
    max-width: 680px;
    margin-inline: auto;
  }

  /* ── Header ── */
  .calc-header { margin-bottom: 2.5rem; }

  .super-header {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 0.75rem;
  }

  .calc-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--section-heading-size);
    font-weight: var(--section-heading-weight);
    color: var(--text);
    line-height: 1.16;
    margin-bottom: 0.5rem;
  }

  .calc-header p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.55;
  }

  /* ── Progress ── */
  .progress-track {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
  }

  .progress-step {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--hint);
    padding: 0 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .progress-step.done { color: var(--blue); }
  .progress-step.active { color: var(--text); }

  .progress-step .step-num {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--hint);
  }

  .progress-step.done .step-num {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
  }

  .progress-step.active .step-num {
    border-color: var(--text);
    color: var(--text);
  }

  .progress-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 8px;
  }

  /* ── Steps ── */
  .step { display: none; }
  .step.active { display: block; }

  .step-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.75rem;
  }

  .question {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.375rem;
    line-height: 1.35;
  }

  .step-hint {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  /* ── Option selectors ── */
  .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.75rem;
  }

  .options-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

  .option-btn {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.875rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    font-family: 'Lato', sans-serif;
  }

  .option-btn:hover {
    border-color: var(--blue);
    background: #F0F7FB;
  }

  .option-btn.selected {
    border-color: var(--blue);
    border-width: 2px;
    background: #F0F7FB;
  }

  .opt-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
  }

  .option-btn.selected .opt-label { color: var(--blue); }

  .opt-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
  }

  /* ── Form fields ── */
  .field-group { margin-bottom: 1.25rem; }

  .field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
  }

  .field-label-row .flabel {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
  }

  .field-label-row .fhint {
    font-size: 12px;
    color: var(--hint);
    text-align: right;
    max-width: 55%;
  }

  input[type="number"],
  input[type="text"],
  select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    outline: none;
    appearance: none;
    transition: border-color var(--transition);
  }

  input:focus, select:focus { border-color: var(--blue); }

  /* ── Navigation ── */
  .nav-row {
    display: flex;
    gap: 10px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }

  .btn-back {
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.625rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition);
  }

  .btn-back:hover { border-color: var(--text); color: var(--text); }

  .btn-next {
    flex: 1;
    background: var(--blue);
    border: none;
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    transition: background var(--transition);
  }

  .btn-next:hover { background: var(--blue); }
  .btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

  /* ── Results ── */
  .results-section { display: none; }
  .results-section.show { display: block; }

  .results-header {
    border-bottom: 2px solid var(--text);
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .results-header .r-super {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.5rem;
  }

  .results-header .r-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
  }

  .results-header .r-monthly {
    font-size: 15px;
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 4px;
  }

  .results-header .r-tenyear {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .results-header .r-ctx {
    font-size: 13px;
    color: var(--muted);
  }

  /* Results grid */
  .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .result-cell {
    padding: 1rem 1.125rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .result-cell:nth-child(even) { border-right: none; }
  .result-cell:nth-child(3),
  .result-cell:nth-child(4) { border-bottom: none; }

  .result-cell .rc-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .result-cell .rc-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
  }

  .result-cell .rc-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.4;
  }

  .result-cell .rc-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 2px;
  }

  /* Seasonal split */
  .split-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
  }

  .split-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
  }

  .split-bar {
    display: flex;
    height: 6px;
    background: var(--border);
    margin-bottom: 8px;
  }

  .split-bar-heating { background: var(--blue); transition: width 0.6s ease; }
  .split-bar-cooling { background: #B07415; transition: width 0.6s ease; }

  .split-legend {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .split-legend span { display: flex; align-items: center; gap: 5px; }

  .legend-pip {
    width: 8px; height: 8px;
    flex-shrink: 0;
  }

  .cooling-note {
    font-size: 12px;
    color: var(--hint);
    font-style: italic;
    line-height: 1.45;
  }

  /* Assumptions */
  .assumption-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
  }

  .assumption-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .assumption-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
  }

  .assumption-text p + p { margin-top: 0.5rem; }

  /* ── CTA ── */
  .cta-section {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
    padding-top: 0.5rem;
  }

  .cta-section h2 {
    text-align: center;
  }

  .cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.375rem;
    line-height: 1.3;
  }

  .cta-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 0.5rem;
  }

  .cta-
.energy-calculator-section {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  padding: clamp(54px, 7vw, 96px) clamp(24px, 5vw, 58px);
  line-height: 1.6;
}
.cta-form input[type="text"] {
    margin-bottom: 10px;
    text-align: left;
  }

  .lead-microcopy {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--blue);
    margin: 8px 0 4px;
  }

  .btn-cta {
    width: 100%;
    background: var(--blue);
    border: none;
    border-radius: 2px;
    padding: 0.9rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 6px;
  }

  .btn-cta:hover { background: var(--blue); }
  .btn-cta:disabled { opacity: 0.5; cursor: not-allowed; }

  .privacy-note {
    font-size: 12px;
    color: var(--hint);
    margin-top: 10px;
    line-height: 1.5;
  }

  /* Success */
  .success-msg { display: none; text-align: center; padding: 1rem 0; }
  .success-msg.show { display: block; }

  .success-mark {
    width: 40px; height: 40px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1rem;
    color: var(--blue);
    font-weight: 700;
  }

  .success-msg h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .success-msg p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
  }

  .restart-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    cursor: pointer;
    margin-top: 1.25rem;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  @media (max-width: 520px) {
    .calc-header h1 { font-size: 1.28rem; }
    .options-grid, .options-grid.cols-3 { grid-template-columns: 1fr 1fr; }
    .results-header .r-main { font-size: 2.25rem; }
    .results-grid { grid-template-columns: 1fr; }
    .result-cell:nth-child(even) { border-right: none; }
    .result-cell:nth-child(3) { border-bottom: 1px solid var(--border); }
    .result-cell:nth-child(4) { border-bottom: none; }
    .result-cell:nth-child(odd) { border-right: none; }
    .split-legend { flex-wrap: wrap; gap: 10px; }
  }
