body {
  font-size: 17px;
}

.calculator-section {
  background: linear-gradient(180deg, #f5f9fb, #fff);
}

.calculator-heading {
  max-width: 760px;
  margin: 0 auto 42px;
}

.calculator-heading > p {
  max-width: 620px;
  margin: 0 auto;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

.calculator-inputs,
.calculator-results {
  min-width: 0;
  padding: 30px;
  border: 1px solid #e0e9ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(9, 52, 96, 0.08);
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bill-slider-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.calculator-inputs .bill-slider-heading label {
  margin: 0;
}

#bill-display {
  color: #a97805;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#bill-slider {
  width: 100%;
  height: 10px;
  margin: 6px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #087aca, #64b51e);
  accent-color: var(--green);
  cursor: pointer;
}

#bill-slider:focus-visible {
  outline: 3px solid #ffbf3f;
  outline-offset: 5px;
}

.bill-slider-limits {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.calculator-inputs label {
  margin-top: 6px;
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 750;
}

.calculator-number-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 14px;
  border: 1px solid #d8e4e9;
  border-radius: 10px;
  background: #fbfcfd;
}

.calculator-number-field:focus-within {
  outline: 3px solid rgba(17, 167, 237, 0.2);
  border-color: var(--blue);
}

.calculator-number-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy-deep);
  font-size: 24px;
  font-weight: 750;
}

.calculator-number-field span {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.calculator-inputs > select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d8e4e9;
  border-radius: 9px;
  background: #fbfcfd;
  color: var(--ink);
}

.calculator-inputs > small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.calculator-assumptions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.calculator-assumptions span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.calculator-assumptions span::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.calculator-assumptions strong {
  color: var(--navy);
}

.calculator-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  background: linear-gradient(145deg, #073b79, #062a59);
  color: #fff;
}

.calculator-results-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9edff;
  font-size: 16px;
  font-weight: 700;
}

.result-sun {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 185, 40, 0.16);
  color: #ffc342;
  font-size: 22px;
}

.result-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.result-main output {
  color: #fff;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.result-main > span {
  color: #d9edff;
  font-size: 15px;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-metrics > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.result-metrics strong {
  color: #c1e77b;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.3;
}

.result-metrics .result-highlight {
  background: rgba(169, 220, 66, 0.12);
  border-color: rgba(193, 231, 123, 0.25);
}

.result-metrics .result-highlight strong {
  color: #d1f392;
}

.result-metrics span {
  color: #d9edff;
  font-size: 12px;
  line-height: 1.4;
}

.calculator-disclaimer {
  margin: 16px 0 0;
  color: #d1dfed;
  font-size: 12px;
  line-height: 1.6;
}

.calculator-contact-cta {
  display: flex;
  width: fit-content;
  margin: 26px auto 0;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) minmax(140px, 0.45fr);
  grid-template-areas: "copy form mascot";
  gap: 28px;
}

.contact-copy {
  grid-area: copy;
}

.contact-grid > .contact-form-card {
  grid-area: form;
  min-width: 0;
}

.contact-mascot {
  grid-area: mascot;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 230px;
}

.contact-mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 24, 54, 0.2));
}

.hero-art {
  height: 500px;
  overflow: hidden;
  border-radius: 28px;
  background: #d8e9ed;
  box-shadow: 0 28px 60px rgba(28, 90, 114, 0.2);
  transform: none;
}

.hero-art::before {
  content: none;
}

.hero-art::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(0deg, rgba(5, 35, 55, 0.35), transparent);
  pointer-events: none;
}

.hero-art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-visual {
  height: 190px;
}

.card-photo,
.sector-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-illustration {
  height: 180px;
}

.sector-home .sector-photo {
  object-position: center 58%;
}

.font-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dce7ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(6, 42, 89, 0.18);
  color: var(--navy-deep);
}

.font-controls-label {
  margin-right: 3px;
  font-size: 13px;
  font-weight: 650;
}

.font-size-button {
  min-width: 40px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid #d5e2e9;
  border-radius: 9px;
  background: #f7fafb;
  color: var(--navy);
  font-weight: 750;
  cursor: pointer;
}

.font-size-button:hover:not(:disabled) {
  border-color: var(--blue);
  background: #eef7fc;
}

.font-size-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.font-size-value {
  min-width: 42px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (max-width: 840px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.55fr);
    grid-template-areas:
      "copy mascot"
      "form form";
    gap: 34px 24px;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    height: 420px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "mascot"
      "form";
    gap: 26px;
  }

  .contact-mascot {
    width: min(200px, 65%);
    justify-self: end;
    margin-top: -22px;
    margin-bottom: -18px;
  }

  .calculator-contact-cta {
    width: 100%;
    text-align: center;
  }

  .calculator-inputs,
  .calculator-results {
    padding: 22px;
  }

  .result-metrics {
    gap: 8px;
    padding: 14px 0;
  }

  .result-metrics > div {
    padding: 10px;
  }

  .result-metrics strong {
    font-size: 17px;
  }

  .result-metrics span {
    font-size: 11px;
  }

  .hero-art {
    height: 320px;
    border-radius: 22px;
  }

  .card-visual {
    height: 170px;
  }

  .sector-illustration {
    height: 165px;
  }

  .font-controls {
    right: 12px;
    bottom: 12px;
    gap: 6px;
    padding: 6px 8px;
  }

  .font-controls-label {
    display: none;
  }
}
