.calculator {
    /*width: 100%;
    max-width: 1200px;
    margin: 0 auto;*/
}

#calculatorform {
    width: 100%;
}

.calc-step {
    display: none;
    width: 100%;
    min-height: 600px;
    border-radius: 50px;
    background: rgba(35, 85, 134, 0.05);
    overflow: hidden;
}

.calc-step.is-active {
    display: flex;
}

.calc-step__content {
    width: 50%;
    padding: 30px 45px;
    display: flex;
    flex-direction: column;
}

.calc-step__image {
    width: 50%;
    background-repeat: no-repeat;
    /*background-position: center;*/
    background-position: 20% 48%;
    background-size: cover;
    position: relative;
}
.calc-step__image .tag {
    display: inline-flex;
    padding: 14px;
    align-items: center;
    gap: 7px;
    border-radius: 23px 31px 31px 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2.700000047683716px);
    color: #FFF;
    font-family: "Roboto Condensed";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    position: absolute;
    left: 30px;
    bottom: 30px;
}

.calc-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.calc-progress span {
    height: 4px;
    width: 69px;
    flex: 1 0 0;
    border-radius: 14px;
    opacity: 0.5;
    background: #D9D9D9;
}

.calc-progress span.is-active {
    opacity: 1;
    background: #003A73;
}

.calc-step__label {
    color: #000;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
}

.calc-step__title {
    color: #000;
    font-family: Roboto, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 110%;
    margin-bottom: 23px;
}

.calc-step__subtitle {
    color: #000;
    opacity: 0.5;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    margin: 0 0 25px 0;
}

.calc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-bottom: auto;
}

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.calc-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-checkbox span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #000;
    font-family: "Roboto Condensed";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.calc-checkbox span::before {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.2px solid #000;
    background: #ebedf0;
    transition: 0.2s;
}

.calc-checkbox input:checked + span::before {
    background: #003A73;
    border-color: #003A73;
}

.calc-checkbox input:checked + span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 12px;
    height: 7px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.calc-range-fields {
    display: flex;
    gap: 20px;
    margin-bottom: 22px;
}

.calc-range-fields .form-group {
    width: 50%;
}

.calc-range {
    margin: 10px 0 40px;
}

.calc-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.calc-buttons .calc-back {
    order: 1;
}
.calc-buttons .calc-next {
    order: 0;
}
#calculatorform .btn.calc-back {
    width: 74px;
    display: flex;
    height: 55px;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 23px;
    background: #F5F5F5;
    color: #000
}
#calculatorform .btn.calc-back:hover {
    color: #000;
    background: #F9F9F9;
}
#calculatorform .btn.calc-submit {
    background: #FFB914;
    color: #000;
}

#calculatorform .btn {
    cursor: pointer;
}

#calculatorform input.error {
    border-color: #d9534f;
}

#calculatorform .agreement input.error + label,
#calculatorform .agreement input.error + label a {
    color: #d9534f;
}

#calculatorform .error-message {
    display: none;
    color: #d9534f;
    font-size: 12px;
    margin-top: 5px;
}

#calculatorform .form-group.error .error-message {
    display: block;
}

/* noUiSlider */
#calc-range .noUi-connect {
    border-radius: 14px;
    background: #FFB914;
    height: 8px;
}
#calc-range .noUi-connects {
    border-radius: 14px;
    opacity: 1;
    background: transparent;
    height: 8px;
    bottom: 2px;
    position: relative;
}
#calc-range .noUi-base {
    background: #D9D9D9;
    height: 4px;
    border-radius: 14px;
}
#calc-range.noUi-target {
    background: transparent;
    border-radius: 4px;
    border: none;
    box-shadow: none;
}
#calc-range .noUi-horizontal {
    height: 8px;
}

#calc-range .noUi-handle {
    width: 20px;
    height: 20px;
    right: -11px;
    top: -8px;
    border: none;
    border-radius: 50%;
    background: #FFB914;
    box-shadow: none;
    cursor: pointer;
}
#calc-range .noUi-touch-area {
    width: 10px;
    height: 10px;
    border-radius: 9px;
    background: #FFF;
    position: relative;
    top: 5px;
    left: 5px;
}
.calculator .form-group.sp-group {
    display: flex;
    gap: 10px;
    color: #000;
    font-family: "Roboto Condensed";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    flex-direction: row;
    align-items: center;
}
.calculator .form-group.sp-group input {
    max-width: 153px;
    height: 40px;
}

#calc-range .noUi-handle::before,
#calc-range .noUi-handle::after {
    display: none;
}

#calculatorform .btn {
    display: flex;
    height: 55px;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 23px;
    background: #003A73;
    width: 223px;
    color: #FFF;
    font-family: "Roboto Condensed";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: initial;
    margin-bottom: 0;
    border: none;
}
#calculatorform .btn:hover {
    background: #FFB914;
    color: #000;
}
.form-groups {
    display: flex;
    gap: 15px;
}
.calculator .form-group {
    display: flex;
    flex-direction: column;
}
.form-group-t {
    color: #000;
    font-family: "Roboto Condensed";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 8px;
}
.calculator .form-group input {
    display: flex;
    height: 55px;
    padding: 10px 14px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 17px;
    border: 1.2px solid rgba(0, 0, 0, 0.22);
    background: #ebedf0;
    color: #000;
    font-family: "Roboto Condensed";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 0;
}
.form-groups .form-group {
    width: 49%;
}
.calc-step__content .agreement {
    position: relative;
    margin-bottom: 15px;
    color: #000;
    margin-top: 10px;
}
.calc-step__content .agreement input {
    display: none;
}
.calc-step__content .agreement input+label:before {
    top: 7px;
}
.agreement label a {
    text-decoration: underline;
    color: #000;
}
.agreement label a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .calc-step {
        min-height: 0;
        border-radius: 30px;
    }
    .calc-step.is-active {
        flex-direction: column;
    }
    .calc-step__image {
        order: -1;
        width: 100%;
        height: 220px;
    }
    .calc-step__content {
        width: 100%;
        padding: 25px 20px 30px;
    }
    .calc-step__title {
        font-size: 22px;
    }
    .calc-range-fields {
        flex-direction: column;
        gap: 15px;
    }
    .calc-range-fields .form-group {
        width: 100%;
    }
    .calc-buttons {
        flex-direction: column;
    }
    .calc-checkboxes {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    #calculatorform .btn {
        width: 100% !important;
    }
    .calc-buttons {
        margin-top: 20px;
    }
    #calculatorform .agreement label {
        font-size: 14px;
    }
    .form-groups {
        flex-direction: column;
    }
    .form-groups .form-group {
        width: 100%;
    }
}