#calculator {
  --brand-green: #1a4a42;
  padding: 72px 0;
  background: #eeeae6;
  color: #152426;
  font-family: var(--font-sans), Arial, sans-serif;
  scroll-margin-top: 100px;
  letter-spacing: 0;
}
#calculator *, #calculator *::before, #calculator *::after { box-sizing: border-box; }
#calculator [hidden] { display: none !important; }
#calculator .container { width: min(1184px, calc(100% - 40px)); margin-inline: auto; }
#calculator .calculator__layout { display: grid; gap: 44px; align-items: center; }
#calculator .calculator__form, #calculator .calculator__result { min-width: 0; }
#calculator .section-tag { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 700; color: #77532a; }
#calculator h2 { margin: 0; font-family: var(--font-serif), Georgia, serif; font-size: 40px; font-weight: 500; line-height: 1.15; letter-spacing: 0; }
#calculator p { margin: 0; }
#calculator .calculator__inputs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 28px; }
#calculator .calc-field span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
#calculator .calc-field input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid #c9d1cc; border-radius: 8px; background: white; color: #152426; font: inherit; font-size: 16px; }
#calculator .calc-field input:focus { outline: 2px solid var(--brand-green); outline-offset: 1px; }
#calculator .calc-field input[aria-invalid="true"] { border-color: #a33d2a; }
#calculator .calc-error { font-size: 13px; color: #a33d2a; }
#calculator .calc-error:empty { display: none; }
#calculator .btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 54px; width: 100%; padding: 12px 16px; border: 1px solid transparent; border-radius: 28px; font: inherit; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
#calculator .btn--primary { background: var(--brand-green); color: white; }
#calculator .btn--primary::after { content: "\2192"; }
#calculator .btn--primary:hover { background: #10382f; }
#calculator .btn--secondary { background: transparent; border-color: #a5b1aa; color: var(--brand-green); }
#calculator .btn--secondary:hover { background: #ffffff70; }
#calculator .btn:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 3px; }
#calculator .btn:disabled { opacity: 0.45; cursor: default; }
#calculator .calc-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
#calculator .calc-cta { text-align: center; min-width: 0; }
#calculator .calc-cta__icon { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#calculator .calc-cta__note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #3b584b; }
#calculator .calc-explanation { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid #c9d1cc; font-size: 14px; line-height: 1.6; color: #3b584b; }
#calculator .calculator__result { width: 100%; max-width: 576px; margin-inline: auto; text-align: center; }
#calculator .weight-scale__heading { font-size: 21px; color: #24302f; }
#calculator .weight-scale { position: relative; width: 100%; aspect-ratio: 560 / 350; margin: 20px auto 0; }
#calculator .weight-scale__dial { display: block; width: 100%; height: 100%; }
#calculator .weight-scale__outline { fill: none; stroke: #c6c2bd; stroke-width: 2; }
#calculator .weight-scale__ticks { stroke: #85837e; stroke-width: 1.8; }
#calculator .weight-scale__needle { stroke: #d13f25; stroke-width: 7; }
#calculator .weight-scale__readout { position: absolute; inset: 60% 0 auto; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
#calculator .weight-scale__readout strong { font-size: 56px; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
#calculator .weight-scale__readout span { font-size: 20px; color: #515450; }
#calculator .weight-slider { margin: 24px 28px 28px; }
#calculator .weight-slider input { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
#calculator .weight-slider input::-webkit-slider-runnable-track { height: 8px; background: #d2ceca; border-radius: 8px; }
#calculator .weight-slider input::-moz-range-track { height: 8px; background: #d2ceca; border-radius: 8px; }
#calculator .weight-slider input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 52px; height: 34px; margin-top: -13px; border: 1px solid #e8e6e3; border-radius: 20px; background: white; box-shadow: 0 4px 8px #0000001c; }
#calculator .weight-slider input::-moz-range-thumb { width: 52px; height: 34px; border: 1px solid #e8e6e3; border-radius: 20px; background: white; box-shadow: 0 4px 8px #0000001c; }
#calculator .weight-slider input:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 4px; border-radius: 4px; }
#calculator .weight-slider__dots, #calculator .weight-slider__limits { display: flex; justify-content: space-between; padding-inline: 4px; }
#calculator .weight-slider__dots i { width: 5px; height: 5px; border-radius: 50%; background: #c6c2bd; }
#calculator .weight-slider__limits { margin-top: 10px; font-size: 12px; color: #5e605d; }
#calculator .bmi-summary { margin: 0; padding: 13px 24px; border-radius: 8px; background: #ffffff9c; text-align: left; }
#calculator .bmi-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 54px; padding-block: 8px; }
#calculator .bmi-summary > div + div { border-top: 1px solid #dedbd6; }
#calculator .bmi-summary dt { font-size: 16px; color: #404b47; }
#calculator .bmi-summary dd { margin: 0; font-size: 18px; font-weight: 700; text-align: right; color: #152426; }
#calculator #calcBmiValue { font-size: 32px; font-variant-numeric: tabular-nums; }
#calculator .bmi-note { margin: 16px auto 0; max-width: 480px; font-size: 12px; line-height: 1.6; color: #555d57; }
#calculator .bmi-note a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 800px) {
  #calculator .calculator__layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
}
@media (max-width: 799px) {
  #calculator .calculator__form { display: contents; }
  #calculator .calculator__entry { order: 1; }
  #calculator .calculator__result { order: 2; }
  #calculator .calc-ctas { order: 3; margin-top: 0; }
}
@media (max-width: 559px) {
  #calculator { padding-block: 52px; }
  #calculator h2 { font-size: 32px; }
  #calculator .calc-ctas { grid-template-columns: 1fr; gap: 20px; }
  #calculator .weight-scale__readout strong { font-size: 40px; }
  #calculator .weight-scale__readout span { font-size: 16px; }
  #calculator .weight-slider { margin-inline: 8px; }
  #calculator .bmi-summary { padding-inline: 16px; }
}
