.waterproofing-calculator {
  padding: 110px 0;
  background: #f5f8f9;
}

.waterproofing-calculator__header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 38px;
}

.waterproofing-calculator__header p {
  margin: 0 0 8px;
  color: #52626c;
  font-size: 17px;
  line-height: 1.65;
}

.waterproofing-calculator__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.waterproofing-calculator__main,
.waterproofing-calculator__summary,
.waterproofing-calculator__success {
  background: #ffffff;
  border: 1px solid #dce7ea;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(31, 54, 63, 0.08);
}

.waterproofing-calculator__main {
  padding: 34px;
}

.waterproofing-calculator__progress {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
  color: #20333b;
  font-weight: 700;
}

.waterproofing-calculator__progress-track {
  height: 8px;
  overflow: hidden;
  background: #e6eef1;
  border-radius: 999px;
}

.waterproofing-calculator__progress-fill {
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, #0b7f8f, #62b56f);
  transition: width 0.25s ease;
}

.waterproofing-calculator__step {
  display: none;
}

.waterproofing-calculator__step.is-active {
  display: block;
}

.waterproofing-calculator__step-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.waterproofing-calculator__step-head span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #20333b;
  border-radius: 50%;
  font-weight: 800;
}

.waterproofing-calculator__step-head h3 {
  margin: 2px 0 0;
  color: #16282f;
  font-size: 28px;
  line-height: 1.25;
}

.waterproofing-calculator__option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.waterproofing-calculator__option {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px 14px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.waterproofing-calculator__option:hover {
  transform: translateY(-2px);
  border-color: #9fcbd4;
  box-shadow: 0 14px 28px rgba(32, 51, 59, 0.08);
}

.waterproofing-calculator__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.waterproofing-calculator__option:has(input:checked) {
  border-color: #0b7f8f;
  box-shadow: inset 0 0 0 1px #0b7f8f, 0 14px 32px rgba(11, 127, 143, 0.12);
}

.waterproofing-calculator__option-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #0b7f8f;
  background: #eaf6f8;
  border-radius: 8px;
  font-size: 20px;
}

.waterproofing-calculator__option strong,
.waterproofing-calculator__option small {
  grid-column: 2;
}

.waterproofing-calculator__option strong {
  color: #16282f;
  font-size: 17px;
  line-height: 1.25;
}

.waterproofing-calculator__option small {
  color: #60707a;
  font-size: 14px;
  line-height: 1.45;
}

.waterproofing-calculator__field-group,
.waterproofing-calculator__numbers label,
.waterproofing-calculator__contact-grid label {
  display: grid;
  gap: 9px;
}

.waterproofing-calculator__field-group {
  margin-top: 22px;
}

.waterproofing-calculator label,
.waterproofing-calculator__field-group > label {
  color: #243941;
  font-weight: 700;
}

.waterproofing-calculator select,
.waterproofing-calculator input,
.waterproofing-calculator textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: #16282f;
  background: #f8fbfc;
  border: 1px solid #d7e4e8;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waterproofing-calculator textarea {
  min-height: 124px;
  padding-top: 14px;
  resize: vertical;
}

.waterproofing-calculator select:focus,
.waterproofing-calculator input:focus,
.waterproofing-calculator textarea:focus {
  border-color: #0b7f8f;
  box-shadow: 0 0 0 3px rgba(11, 127, 143, 0.12);
}

.waterproofing-calculator__numbers,
.waterproofing-calculator__field-grid,
.waterproofing-calculator__contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.waterproofing-calculator__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  color: #52626c;
  font-weight: 500;
  line-height: 1.45;
}

.waterproofing-calculator__consent input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.waterproofing-calculator__error {
  min-height: 22px;
  margin-top: 14px;
  color: #b42318;
  font-weight: 700;
}

.waterproofing-calculator__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.waterproofing-calculator__secondary,
.waterproofing-calculator__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  color: #20333b;
  background: #edf4f6;
  border: 1px solid #d7e4e8;
  border-radius: 6px;
  font-weight: 800;
}

.waterproofing-calculator__secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.waterproofing-calculator__submit[hidden],
.waterproofing-calculator__next[hidden],
.waterproofing-calculator__success[hidden] {
  display: none;
}

.waterproofing-calculator__summary {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 28px;
}

.waterproofing-calculator__estimate {
  display: grid;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e3ecef;
}

.waterproofing-calculator__estimate span,
.waterproofing-calculator__estimate small {
  color: #60707a;
}

.waterproofing-calculator__estimate strong {
  color: #0b7f8f;
  font-size: 30px;
  line-height: 1.2;
}

.waterproofing-calculator__summary-block h4,
.waterproofing-calculator__checklist h4 {
  margin: 0 0 12px;
  color: #16282f;
  font-size: 20px;
}

.waterproofing-calculator__summary-block ul,
.waterproofing-calculator__summary-block ol,
.waterproofing-calculator__checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 19px;
  color: #52626c;
}

.waterproofing-calculator__success {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 0;
  margin-top: 24px;
  overflow: hidden;
}

.waterproofing-calculator__success-intro {
  position: relative;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(145deg, #12353d 0%, #0b7f8f 100%);
}

.waterproofing-calculator__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.waterproofing-calculator__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.waterproofing-calculator__success-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: #62b56f;
  border-radius: 50%;
  margin-bottom: 18px;
  color: #0b7f8f;
  background: #ffffff;
}

.waterproofing-calculator__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #6c858d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.waterproofing-calculator__success-intro .waterproofing-calculator__eyebrow {
  color: #bfe8e8;
}

.waterproofing-calculator__success h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 30px;
}

.waterproofing-calculator__success p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.6;
}

.waterproofing-calculator__download {
  margin-top: 0;
  color: #173139;
  background: #ffffff;
  border-color: #ffffff;
}

.waterproofing-calculator__success-actions {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}

.waterproofing-calculator__success-actions small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.waterproofing-calculator__checklist {
  padding: 34px;
  background: #ffffff;
}

.waterproofing-calculator__checklist-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.waterproofing-calculator__checklist-top h4 {
  margin: 0;
}

.waterproofing-calculator__checklist-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #0b7f8f;
  background: #eaf6f8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.waterproofing-calculator__project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.waterproofing-calculator__project-meta span {
  padding: 7px 10px;
  color: #4e626b;
  background: #f4f8f9;
  border: 1px solid #e1ebed;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.3;
}

.waterproofing-calculator__checklist ul {
  gap: 0;
  padding: 0;
  list-style: none;
  counter-reset: preparation;
}

.waterproofing-calculator__checklist > ul > li {
  position: relative;
  min-height: 50px;
  padding: 12px 0 12px 44px;
  color: #42555d;
  border-top: 1px solid #e5edef;
  font-size: 14px;
  line-height: 1.5;
  counter-increment: preparation;
}

.waterproofing-calculator__checklist > ul > li::before {
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #0b7f8f;
  border: 1px solid #9dcfd5;
  border-radius: 50%;
  content: counter(preparation);
  font-size: 11px;
  font-weight: 800;
}

.waterproofing-calculator__checklist > ul > li::after {
  position: absolute;
  top: 17px;
  right: 1px;
  width: 13px;
  height: 8px;
  border-bottom: 2px solid #78bfc8;
  border-left: 2px solid #78bfc8;
  content: "";
  opacity: 0.35;
  transform: rotate(-45deg);
}

.waterproofing-calculator__notes {
  margin-top: 19px;
  padding: 15px 17px;
  color: #6b5922;
  background: #fffbec;
  border: 1px solid #f0e3af;
  border-radius: 5px;
}

.waterproofing-calculator__notes strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.waterproofing-calculator__notes ul {
  display: grid;
  gap: 5px;
  padding-left: 17px;
  list-style: disc;
  color: #74633a;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1199px) {
  .waterproofing-calculator__shell {
    grid-template-columns: 1fr;
  }

  .waterproofing-calculator__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .waterproofing-calculator__estimate {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 991px) {
  .waterproofing-calculator {
    padding: 88px 0;
  }

  .waterproofing-calculator__header,
  .waterproofing-calculator__summary,
  .waterproofing-calculator__success {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .waterproofing-calculator__main,
  .waterproofing-calculator__summary {
    padding: 22px;
  }

  .waterproofing-calculator__success {
    padding: 0;
  }

  .waterproofing-calculator__success-intro,
  .waterproofing-calculator__checklist {
    padding: 26px 22px;
  }

  .waterproofing-calculator__option-grid,
  .waterproofing-calculator__numbers,
  .waterproofing-calculator__field-grid,
  .waterproofing-calculator__contact-grid {
    grid-template-columns: 1fr;
  }

  .waterproofing-calculator__step-head h3 {
    font-size: 23px;
  }

  .waterproofing-calculator__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .waterproofing-calculator__secondary,
  .waterproofing-calculator__actions .thm-btn {
    width: 100%;
  }

  .waterproofing-calculator__estimate strong {
    font-size: 25px;
  }
}
