* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #f4f7fb;
}

body {
  color: #333;
  font-family: Montserrat, Arial, sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
input,
select {
  outline: 0;
}

button {
  border: 0;
  cursor: pointer;
}

.calculator-page {
  width: min(1600px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 60px;
}

.calculator-card {
  position: relative;
  width: 100%;
  margin: 0 0 50px;
  padding-top: 31px;
  background: #fff;
  border-radius: 12px;
}

.calculator-card--emi-single,
.calculator-card--emi-three {
  height: 841px;
}

.calculator-card--reactor-single {
  height: 750px;
}

.calculator-card--reactor-vfd {
  height: 885px;
  margin-bottom: 0;
}

.calculator-title {
  margin: 0;
  color: #333;
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
}

.calculator-title-line {
  display: block;
  width: 176px;
  height: 4px;
  margin: 21px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #35b2bd 0%, #2a82be 100%);
}

.calculator-layout {
  display: flex;
  align-items: flex-start;
  /* width: calc(100% - 190px); */
  margin: 77px 38px 0;
}

.calculator-form {
  width: 738px;
  flex: 0 0 738px;
  padding-right: 2vw;
}

.form-row {
  display: grid;
  grid-template-columns: 186px 477px;
  column-gap: 31px;
  align-items: center;
  height: 49px;
  margin: 0;
}

.form-row + .form-row {
  margin-top: 20px;
}

.form-row label {
  color: #333;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  text-align: right;
  white-space: nowrap;
}

.input-control,
.select-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 477px;
  height: 49px;
  border: 1px solid #b8c4d1;
  border-radius: 4px;
  background: #fff;
}

.input-control input,
.select-control select {
  width: 100%;
  height: 100%;
  padding: 0 54px 0 13px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.input-control input::placeholder,
.select-control select:invalid {
  color: #808080;
  opacity: 1;
}

.input-control span {
  position: absolute;
  right: 18px;
  color: #666;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  pointer-events: none;
}

.select-control select {
  padding-right: 44px;
  appearance: none;
  color: #808080;
}

.select-control::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.form-note {
  /* width: 477px; */
  /* margin: 0 0 0 139px; */
  color: #666;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.form-note--inline {
  height: 39px;
  margin-top: 9px;
  line-height: 20px;
  margin-left: 217px;
}

.form-note--inline + .form-row {
  margin-top: 20px;
}

.form-note--bottom {
  /* width: 636px; */
  /* height: 39px; */
  margin-top: 30px;
  margin-left: 10.5vw;
  line-height: 20px;
  overflow: hidden;
}

.form-note--reactor {
  height: 39px;
  margin-top: 30px;
  margin-left: 64px;
  line-height: 20px;
  overflow: hidden;
}

.calculator-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.calculator-card--reactor-single .calculator-actions,
.calculator-card--reactor-vfd .calculator-actions {
  margin-top: 67px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 30px;
  border-radius: 50px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.button--calculate {
  width: 247px;
  background: linear-gradient(90deg, #35b2bd 0%, #2a82be 100%);
}

.button--reset {
  width: 115px;
  background: linear-gradient(90deg, #bfbfbf 0%, #787878 100%);
}

.button--quote {
  width: 224px;
  background: linear-gradient(90deg, #ffa907 0%, #ff6a00 100%);
}

.calculator-divider {
  width: 1px;
  height: 508px;
  margin: 0 57px 0 0;
  flex: 0 0 1px;
  border-left: 2px solid #d1d9e1;
  box-shadow: 2px 2px 10px rgba(1, 9, 46, .1);
}

.calculator-card--reactor-single .calculator-divider {
  height: 431px;
}

.calculator-card--reactor-vfd .calculator-divider {
  height: 563px;
}

.calculator-result {
  position: relative;
  width: 670px;
  height: 508px;
  flex: 0 0 670px;
}

.calculator-card--reactor-single .calculator-result {
  height: 431px;
}

.calculator-card--reactor-vfd .calculator-result {
  height: 563px;
}

.result-panel-bg {
  display: block;
  width: 670px;
  height: 100%;
  border-radius: 30px;
  background: #f6f9fe;
}

.result-content {
  position: absolute;
  top: 29px;
  left: 38px;
  width: 600px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
}

.result-row strong {
  color: #2a81be;
  font-size: 18px;
  font-weight: 500;
}

.result-separator {
  width: 600px;
  height: 1px;
  margin-top: 24px;
  border-top: 1px solid rgba(112, 112, 112, .2);
}

.result-product {
  margin-top: 20px;
  color: #333;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.result-product-title {
  line-height: 24px;
}

.product-series-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 0;
  width: 484px;
  margin-top: 24px;
  color: #111;
  font-size: 16px;
  line-height: 20px;
  width: 100%;
  gap: 10px;
}

.product-series-item {
  display: block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s;
}

.product-series-item:hover {
  color: #2a81be;
}

.product-series-message {
  grid-column: 1 / -1;
  color: #666;
}

.product-series-list--dynamic .product-series-item {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  line-height: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1639px) and (min-width: 1251px) {
  .calculator-page {
    width: calc(100% - 32px);
  }

  .calculator-layout {
    width: calc(100% - 64px);
  }

  .calculator-form {
    width: 50%;
    flex-basis: 50%;
  }

  .form-row {
    grid-template-columns: 120px minmax(0, 1fr);
    width: 100%;
  }

  .input-control,
  .select-control {
    width: 100%;
  }

  .form-note {
    width: calc(100% - 129px);
    margin-left: 129px;
  }

  .form-note--bottom {
    width: calc(100% - 129px);
    margin-left: 129px;
  }

  .calculator-actions {
    justify-content: center;
    margin-left: 0;
    gap: 10px;
    flex-wrap: wrap;
  }

  .button {
    padding-left: 18px;
    padding-right: 18px;
  }

  .button--calculate {
    width: 205px;
  }

  .button--quote {
    width: 190px;
  }

  .calculator-divider {
    margin-right: 28px;
  }

  .calculator-result {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
  }

  .result-panel-bg {
    width: 100%;
  }

  .result-content {
    left: 5.7%;
    width: 88.6%;
  }

  .result-separator {
    width: 100%;
  }

  .product-series-list {
    width: 100%;
  }
}

@media (max-width: 1250px) {
  .calculator-page {
    width: calc(100% - 32px);
    padding-bottom: 32px;
  }

  .calculator-card,
  .calculator-card--emi-single,
  .calculator-card--emi-three,
  .calculator-card--reactor-single,
  .calculator-card--reactor-vfd {
    height: auto;
    min-height: 0;
    padding: 24px 24px 32px;
  }

  .calculator-card {
    margin-bottom: 24px;
  }

  .calculator-card--reactor-vfd {
    margin-bottom: 0;
  }

  .calculator-title {
    font-size: 24px;
    line-height: 30px;
    white-space: normal;
  }

  .calculator-title-line {
    margin-top: 16px;
  }

  .calculator-layout {
    display: block;
    width: 100%;
    margin: 48px 0 0;
  }

  .calculator-form {
    width: 100%;
  }

  .form-row {
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    width: 100%;
  }

  .input-control,
  .select-control {
    width: 100%;
  }

  .form-note,
  .form-note--bottom,
  .form-note--reactor {
    width: calc(100% - 179px);
    margin-left: 179px;
  }

  .calculator-actions,
  .calculator-card--reactor-single .calculator-actions,
  .calculator-card--reactor-vfd .calculator-actions {
    justify-content: center;
    margin: 48px 0 0;
    gap: 12px;
    flex-wrap: wrap;
  }

  .calculator-divider,
  .calculator-card--reactor-single .calculator-divider,
  .calculator-card--reactor-vfd .calculator-divider {
    width: 100%;
    height: 2px;
    margin: 40px 0;
  }

  .calculator-divider {
    border-top: 2px solid #d1d9e1;
    border-left: 0;
    box-shadow: 2px 2px 10px rgba(1, 9, 46, .1);
  }

  .calculator-result,
  .calculator-card--reactor-single .calculator-result,
  .calculator-card--reactor-vfd .calculator-result {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .calculator-card--emi-single .calculator-result,
  .calculator-card--emi-three .calculator-result {
    aspect-ratio: 670 / 508;
  }

  .calculator-card--reactor-single .calculator-result {
    aspect-ratio: 670 / 431;
  }

  .calculator-card--reactor-vfd .calculator-result {
    aspect-ratio: 670 / 563;
  }

  .result-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .result-content {
    top: 29px;
    left: 5.7%;
    width: 88.6%;
  }

  .result-separator {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .calculator-page {
    width: calc(100% - 20px);
  }

  .calculator-card,
  .calculator-card--emi-single,
  .calculator-card--emi-three,
  .calculator-card--reactor-single,
  .calculator-card--reactor-vfd {
    padding: 20px 16px 24px;
    border-radius: 8px;
  }

  .calculator-title {
    font-size: 22px;
    line-height: 28px;
  }

  .calculator-layout {
    margin-top: 36px;
  }

  .form-row {
    display: block;
    height: auto;
  }

  .form-row + .form-row,
  .form-note--inline + .form-row {
    margin-top: 18px;
  }

  .form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
    white-space: normal;
  }

  .input-control,
  .select-control {
    height: 46px;
  }

  .input-control input,
  .select-control select {
    font-size: 14px;
  }

  .select-control::after {
    top: 18px;
  }

  .form-note,
  .form-note--bottom,
  .form-note--reactor {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 20px;
    overflow: visible;
  }

  .form-note--bottom,
  .form-note--reactor {
    margin-top: 24px;
  }

  .calculator-actions,
  .calculator-card--reactor-single .calculator-actions,
  .calculator-card--reactor-vfd .calculator-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 32px;
  }

  .button,
  .button--calculate,
  .button--reset,
  .button--quote {
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 12px 20px;
    font-size: 16px;
  }

  .calculator-divider,
  .calculator-card--reactor-single .calculator-divider,
  .calculator-card--reactor-vfd .calculator-divider {
    margin: 32px 0;
  }

  .calculator-card--emi-single .calculator-result,
  .calculator-card--emi-three .calculator-result,
  .calculator-card--reactor-single .calculator-result,
  .calculator-card--reactor-vfd .calculator-result {
    min-height: 0;
    aspect-ratio: auto;
  }

  .result-content {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 22px 6% 24px;
  }

  .result-row {
    height: auto;
    min-height: 42px;
    gap: 12px;
    font-size: 15px;
    line-height: 20px;
  }

  .result-row strong {
    font-size: 16px;
  }

  .result-product {
    margin-top: 18px;
    font-size: 17px;
    line-height: 22px;
  }

  .product-series-list {
    gap: 14px 0;
    margin-top: 18px;
    font-size: 14px;
    line-height: 18px;
  }
}
