
@font-face {
  font-family: "SksTech";
  src: local("Xolonium");
  font-display: swap;
}

:root {
  --ink: #073242;
  --ink-2: #0d4354;
  --lime: #afca43;
  --lime-bright: #c8df62;
  --paper: #f3f1eb;
  --white: #fff;
  --line: #d7d9d5;
  --muted: #64747a;
  --danger: #b84040;
  --shadow: 0 28px 70px rgba(7, 50, 66, 0.13);
  --radius: 26px;
}

#house-calculator,
#house-calculator * {
  box-sizing: border-box;
}

#house-calculator button,
#house-calculator input {
  font: inherit;
}

.calculator {
  width: min(1240px, calc(100% - 40px));
  margin: 40px auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.calculator__header {
  position: relative;
  overflow: hidden;
  padding: 54px 58px 44px;
  color: #fff;
  background:
    linear-gradient(
      120deg,
      rgba(7, 50, 66, 0.98),
      rgba(12, 68, 84, 0.92)
    ),
    radial-gradient(
      circle at 90% 0,
      rgba(175, 202, 67, 0.32),
      transparent 35%
    );
}

.calculator__header::after {
  content: "";
  position: absolute;
  top: -190px;
  right: -80px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.025),
    0 0 0 110px rgba(255, 255, 255, 0.02);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--lime-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.calculator h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  font-family: SksTech, Arial, sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.calculator__intro {
  position: relative;
  z-index: 1;
  max-width: 670px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.header-facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.header-facts span {
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
}

.calculator__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.42fr)
    minmax(350px, 0.78fr);
}

.configurator {
  display: grid;
  gap: 18px;
  padding: 38px;
  background: #f7f7f3;
}

.step-card,
.lead-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(7, 50, 66, 0.04);
}

.step-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.step-card__head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-card h2,
.lead-card h2 {
  margin: 0;
  font-family: SksTech, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.step-index {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  color: var(--ink);
  background: #e8efcd;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.step-index--light {
  margin-bottom: 15px;
  color: var(--lime-bright);
  background: rgba(200, 223, 98, 0.18);
}

.area-output {
  padding: 8px 13px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 115px;
  gap: 22px;
  align-items: center;
}

.range-row input[type="range"] {
  width: 100%;
  height: 7px;
  accent-color: var(--lime);
  cursor: pointer;
}

.number-field {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f8f9f6;
  border: 1px solid #cbd1ce;
  border-radius: 12px;
}

.number-field input {
  min-width: 0;
  width: 100%;
  padding: 13px 5px 13px 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 800;
}

.number-field span {
  padding-right: 13px;
  color: var(--muted);
}

.range-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-right: 137px;
  color: #819096;
  font-size: 12px;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.choice-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.choice {
  position: relative;
  display: flex;
  min-height: 92px;
  padding: 17px 46px 17px 17px;
  background: #fafaf8;
  border: 1px solid #d5dad6;
  border-radius: 16px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.choice:hover {
  transform: translateY(-1px);
  border-color: #a9b6b2;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked) {
  background: #f5f8e9;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(175, 202, 67, 0.18);
}

.choice__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.choice__body b {
  font-size: 15px;
}

.choice__body small {
  color: var(--muted);
  line-height: 1.35;
}

.choice__check {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #bbc5c1;
  border-radius: 50%;
}

.choice:has(input:checked) .choice__check {
  border: 6px solid var(--lime);
}

.lead-card {
  padding: 30px;
  color: #fff;
  background: var(--ink);
  border-color: transparent;
}

.lead-card__copy p {
  margin: 10px 0 24px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lead-fields label > span {
  display: block;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.lead-fields input {
  width: 100%;
  padding: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  outline: none;
}

.lead-fields input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.lead-fields input:focus {
  border-color: var(--lime-bright);
  box-shadow: 0 0 0 3px rgba(200, 223, 98, 0.13);
}

.lead-fields input[aria-invalid="true"] {
  border-color: #ff8b8b;
}

.field-error {
  display: block;
  min-height: 15px;
  margin-top: 4px;
  color: #ffb1b1;
  font-size: 11px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0 19px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  position: absolute;
  opacity: 0;
}

.consent__box {
  position: relative;
  flex: 0 0 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 5px;
}

.consent input:checked + .consent__box {
  background: var(--lime);
  border-color: var(--lime);
}

.consent input:checked + .consent__box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent a {
  color: var(--lime-bright);
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  padding: 17px 20px;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.primary-button:hover {
  background: var(--lime-bright);
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.form-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 12px;
}

.form-status.is-error {
  color: #ffb1b1;
}

.form-status.is-success {
  color: var(--lime-bright);
}

.summary {
  padding: 38px;
  background: #e8ece7;
  border-left: 1px solid var(--line);
}

.summary__sticky {
  position: sticky;
  top: 24px;
  padding: 30px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 45px rgba(7, 50, 66, 0.18);
}

.summary__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.58);
}

.house-mark {
  width: 64px;
  height: 50px;
  color: var(--lime-bright);
}

.house-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.specs {
  margin: 20px 0 0;
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.specs dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
}

.result {
  margin: 24px 0;
  padding: 21px;
  color: var(--ink);
  background: #fff;
  border-radius: 18px;
}

.result > p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result__locked {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  column-gap: 11px;
}

.result__locked .lock {
  position: relative;
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  background: #eaf0d0;
  border-radius: 50%;
}

.lock::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 12px;
  width: 12px;
  height: 10px;
  background: var(--lime);
  border-radius: 2px;
}

.lock::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 14px;
  width: 8px;
  height: 9px;
  border: 2px solid var(--lime);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.result__locked b {
  font-size: 20px;
}

.result__locked small {
  color: var(--muted);
  line-height: 1.35;
}

.result__value strong {
  display: block;
  font-family: SksTech, Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
}

.result__value span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.included {
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.included__toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  color: #fff;
  background: none;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.included ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 15px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.included li {
  position: relative;
  padding-left: 17px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.4;
}

.included li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 7px;
  height: 4px;
  border: solid var(--lime-bright);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.summary__note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .calculator__grid {
    grid-template-columns: 1fr;
  }

  .summary {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .summary__sticky {
    position: static;
  }

  .calculator__header {
    padding: 42px 38px;
  }

  .configurator,
  .summary {
    padding: 28px;
  }

  .summary__top {
    align-items: center;
  }
}

@media (max-width: 680px) {
  .calculator {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .calculator__header {
    padding: 34px 20px;
  }

  .calculator h1 {
    font-size: 35px;
  }

  .calculator__intro {
    font-size: 15px;
  }

  .configurator,
  .summary {
    padding: 15px;
  }

  .step-card,
  .lead-card,
  .summary__sticky {
    padding: 20px;
    border-radius: 20px;
  }

  .choice-grid--two,
  .choice-grid--three,
  .lead-fields {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 76px;
  }

  .range-row {
    grid-template-columns: 1fr 92px;
    gap: 12px;
  }

  .range-legend {
    padding-right: 104px;
  }

  .step-card__head {
    gap: 12px;
  }

  .step-card h2,
  .lead-card h2 {
    font-size: 18px;
  }

  .area-output {
    font-size: 15px;
  }

  .included ul {
    grid-template-columns: 1fr;
  }

  .header-facts {
    gap: 6px;
  }

  .header-facts span {
    font-size: 11px;
  }

  .summary {
    padding-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #house-calculator *,
  #house-calculator *::before,
  #house-calculator *::after {
    transition: none !important;
  }
}
</style>