.calc {
  display: block;
  /* background: #f4f7f9; */
}
.calc__container {
  display: block;
  /* max-width: 1280px; */
  width: 100%;
  margin: 0 auto;
}
.calc__title {
  font-weight: 700;
  font-size: 34px;
  line-height: 50px;
  letter-spacing: 0.02em;
  padding-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  color: #000;
}
/*.calc__title::after {
  position: absolute;
  content: '';
  bottom: 0;
  left: 0;
  background: #0af;
  width: 125px;
  height: 12px;
}*/
.calc__desc {
  padding-bottom: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #868686;
  margin-top: 7px;
  margin-bottom: 10px;
}
.calc__wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.calc__controls {
  display: block;
  max-width: 600px;
  width: 100%;
}
.calc__line {
  display: block;
  margin-bottom: 30px;
}
.calc__line-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc__line-name {
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 2rem;
}
.calc__line-value {
  font-weight: 700;
}
.calc__line-center {
  display: block;
}
.calc__line-progress.ui-slider-horizontal.ui-widget-content {
  background: linear-gradient(266.96deg, #0af 2.84%, #0d53bb 97.86%);
  height: 14px;
  display: block;
  width: 100%;
  border-radius: 10px;
  border: none;
}
.ui-slider-horizontal .ui-slider-range-max {
  background: #e4edf2;
  border-radius: 0;
}
.calc__line-progress .ui-slider-handle {
  display: none !important;
}
.calc__line-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc__line-bottom .calc__line-name,
.calc__line-bottom .calc__line-value {
  font-weight: 300;
  font-size: 16px;
  color: #a7a7a7;
}
.calc__est {
  padding: 30px 20px;
  border: 1px solid silver;
  border-radius: 4px;
  max-width: 600px;
  width: 100%;
  position: relative;
  /* overflow: hidden; */
}
.calc__est-line {
  margin-bottom: 30px;
  /* display: table-row; */
  border-bottom: 1px solid silver;
  padding-bottom: 0px;
  display: flex;
  columns: 2;
  justify-content: space-between;
}

.calc__est-line:nth-child(2) {
  border-bottom: none;
}

.calc__est-name {
  display: block;
  padding-bottom: 0;
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 16px;
  font-weight: 400;
  font-style: normal;
  color: #868686;
}
.calc__est-value {
  font-weight: 700;
  color: #0af;
  font-size: 33px;
  line-height: 40px;
}
.calc__btn {
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  background: #0d53bb;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  line-height: 64px;
  text-decoration: none;
  transition: background 0.3s;
  border: none;
  display: block;
  width: 100% !important;
  cursor: pointer;
}
.calc__btn:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(266.96deg, #007be6 2.84%, #0d2a7d 97.86%);
  z-index: -1;
  transition: opacity 0.3s;
}
.calc__btn:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(266.96deg, #0af 2.84%, #0d53bb 97.86%);
  z-index: -1;
  transition: opacity 0.3s;
}
.calc__est-line-l {
  width: 100%;
  display: block;
  padding-bottom: 31px;
}
.calc__est-line-r {
  /* max-width: 270px; */
  width: 100%;
  display: table-cell;
}

.calc__payment-value {
  color: #0af;
}

.calc__summ-value {
  color: #868686;
}

.calc__benefit-vat-value {
  color: #000;
}

.calc__benefit-saving-value {
  color: #000;
}

.calc-form {
  background: #fff;
  max-width: 805px;
  margin: 0 auto;
  padding: 68px;
  position: relative;
}
.calc-form__title {
  font-size: 36px;
  color: #000;
  width: auto;
  font-weight: 500;
  line-height: normal;
}
.calc-form__desc {
  margin: 20px 0 40px 0;
  font-size: 16px;
  opacity: 0.4;
}
.calc-form__fields {
  display: block;
}

.calc-form__fields-row span {
  width: 100%;
}

.calc-form__field {
  margin-bottom: 40px;
}

.calc-form__field input {
  width: 100%;
  background: #fff;
  height: 52px;
  padding: 0 20px;
  border: 1px solid #cdd3e4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 4px;
}
.calc-form__field-label {
  font-size: 12px;
  color: #949494;
  text-transform: uppercase;
  display: block;
  margin: 0 0 15px 0;
  letter-spacing: 1px;
}
.calc-form__fields-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.calc-form__fields-row input {
  width: 100%;
}
.calc-form__fields-row span {
  width: 100%;
  display: block;
}

.calc-form__fields-row .calc-form__field {
  width: 100%;
}

.calc-form__att {
  color: #949494;
  font-size: 12px;
  margin-bottom: 40px;
}
.calc-form__att-link {
  text-decoration: underline;
  color: #949494;
}
.calc-form__submit {
  color: #fff;
  background: #08267f;
  font-weight: 500;
  width: 100%!important;
  max-width: 100%!important;
  display: block;
  padding: 27px 20px;
  cursor: pointer;
}

.custom-model-main {
  text-align: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* z-index: 1050; */
  -webkit-overflow-scrolling: touch;
  outline: 0;
  opacity: 0;
  -webkit-transition: opacity 0.15s linear, z-index 0.15;
  -o-transition: opacity 0.15s linear, z-index 0.15;
  transition: opacity 0.15s linear, z-index 0.15;
  z-index: -1;
  overflow-x: hidden;
  overflow-y: auto;
}

.model-open {
  z-index: 99999;
  opacity: 1;
  overflow: hidden;
}
.custom-model-inner {
  -webkit-transform: translate(0, -25%);
  -ms-transform: translate(0, -25%);
  transform: translate(0, -25%);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  -o-transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  display: inline-block;
  vertical-align: middle;
  /* width: 600px; */
  margin: 30px auto;
  max-width: 98%;
}
.custom-model-wrap {
  display: block;
  width: 100%;
  position: relative;
  background-color: #fff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  outline: 0;
  text-align: left;
  padding: 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  /* max-height: calc(100vh - 70px); */
  /* overflow-y: scroll; */
}
.model-open .custom-model-inner {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  position: relative;
  z-index: 999;
}
.model-open .bg-overlay {
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}
.bg-overlay {
  background: rgba(0, 0, 0, 0);
  height: 100vh;
  max-width: 100%;
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  -webkit-transition: background 0.15s linear;
  -o-transition: background 0.15s linear;
  transition: background 0.15s linear;
}
.close-btn {
  position: absolute;
  right: 0;
  top: -40px;
  cursor: pointer;
  z-index: 99;
  font-size: 30px;
  color: #fff;
}

.tool-tip-circle {
  background-color: #ffffff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #ccc;
  line-height: 12px;
  cursor: pointer;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 2;
  font-size: 16px;
  text-align: left;
  padding: 10px;
  top: -14px;
  left: 105%;
  border: 1px solid #ededed;
}

.tooltiptext p {
  font-size: 12px;
  line-height: normal;
}
.tooltiptext b {
  color: #000;
  display: block;
  margin-bottom: 7px;
}

.tool-tip-circle:hover + .tooltip > .tooltiptext {
  visibility: visible;
}

.calc__att {
  font-size: 12px;
  color: #ccc;
  line-height: normal;
  margin-top: 49px;
}
.calc i{
  font-style: normal;
}

@media screen and (max-width: 1300px) {
  .calc__container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 992px) {
  .calc__wrap {
    flex-wrap: wrap;
    gap: unset;
  }

  .calc__controls,
  .calc__est {
    max-width: 100%;
  }

  .calc__est-line {
    width: 100%;
    display: flex;
    gap: 20px;
  }
  .calc__est-value {
    font-size: 28px;
  }
  .calc-form {
    max-width: 805px;
    width: 100%;
    padding: 20px;
  }

  .calc-form__title {
    font-size: 22px;
  }

  .calc-form__field {
    margin-bottom: 20px;
  }

  .calc-form__field-label {
    margin: 0 0 3px 0;
  }
}

@media screen and (max-width: 480px) {
  .calc__est-value {
    font-size: 22px;
    line-height: normal;
  }

  .calc__est-name {
    font-size: 16px;
  }

  .calc__est-line-l {
    padding-bottom: 0;
  }
  .calc__est {
    padding: 20px 15px;
    border: 1px solid silver;
  }

  .calc__btn {
    font-size: 18px;
    line-height: 51px;
  }
  .calc__est-line {
    padding-bottom: 25px;
  }
  .calc__wrap {
    position: relative;
    overflow: hidden;
  }
  .calc-form__fields-row {
    flex-wrap: wrap;
    gap:0
  }
}

@media screen and (min-width: 800px) {
  .custom-model-main:before {
    content: '';
    display: inline-block;
    height: auto;
    vertical-align: middle;
    margin-right: -0px;
    height: 100%;
  }
}
@media screen and (max-width: 799px) {
  .custom-model-inner {
    margin-top: 45px;
  }
}