@media screen and (min-width: 1500px) {
    .request-calculation.custom-form {
        padding: 0 100px 0 43px;
    }
}

.request-calculation .form-block-border {
    aspect-ratio: 1615 / 530;
    width: 100%;
    max-width: 1615px;
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('../../img/affiliate_program/background_border_form.png');
    padding: clamp(0.5rem, 0.0625rem + 2.1875vw, 2.6875rem) clamp(4.5625rem, 3.5rem + 5.3125vw, 9.875rem) clamp(0.5rem, 0.0625rem + 2.1875vw, 2.6875rem) clamp(0.625rem, -0.1625rem + 3.9375vw, 4.5625rem);
}

.custom-form:not(.brif-form)::after {
    right: -34%;
    top: 0;
    bottom: 0;
    margin: auto;
}

.calculation-form__input-wrap {
    flex: 0 0 calc(32% - 2rem);
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid #fff;
}

.calculation-form__input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 0 5px;
    font-size: 16px;
    border-bottom: none !important;
}

.floating-label {
    position: relative;
    display: block;
    width: 100%;
    color: #fff;
}

.floating-label__text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #fff;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
    opacity: 1;
}

.floating-label__text .is-required {
    color: #FF0000;
    margin-left: 3px;
}

.floating-label__text.active {
    transform: translateY(-130%);
    opacity: 0;
    font-size: 12px;
    color: var(--main-blue);
}

.calculation-form__input:focus+.floating-label__text,
.calculation-form__input:not(:placeholder-shown)+.floating-label__text {
    top: -10px;
    font-size: 12px;
    color: var(--main-blue);
}

textarea.calculation-form__input {
    min-height: 80px;
    resize: vertical;
}

.calculation-form__input.is-required {
    padding-left: 15px;
}

.row-form {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 0.5rem + 3.75vw, 5rem);
}

.custom-form .row-form .calculation-form__input-wrap:last-child {
    flex-grow: 1;
    min-width: 0;
}

.calculation-form__credits.rk-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 50%;
    margin-top: 0;
}

.calculation-form__credits.rk-checkbox p {
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #8C8C8C;
}

.custom-form .button.button-arrow {
    font-size: clamp(1rem, 0.825rem + 0.875vw, 1.875rem);
    position: relative;
    height: auto;
    margin-bottom: auto;
}

.button.button-arrow::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -25px;
    width: calc(100% + 35px);
    height: 2px;
    background-color: var(--main-blue);
}

.button.button-arrow::after {
    content: '';
    display: block;
    width: 38px;
    height: 38px;
    border-right: 2px solid var(--main-blue);
    border-bottom: 2px solid var(--main-blue);
    transform: rotate(-45deg);
    margin-left: 10px;
    position: absolute;
    right: -30px;
    bottom: -43px;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 0.5px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.custom-checkbox .checkmark svg {
    opacity: 0;
    width: 20px;
    height: 20px;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark svg {
    opacity: 1;
}

.calculation-form .custom-checkbox a {
    color: #8C8C8C;
    text-decoration: underline;
}

@media screen and (max-width: 1880px) {
    .request-calculation .form-block-border {
        margin-left: 40px;
    }
}

@media screen and (max-width: 1600px) {
    .request-calculation .calculation-form {
        width: 90%;
    }
}

@media screen and (max-width: 1280px) {
    .custom-form:not(.brif-form)::after {
        right: -40%;
    }
}

@media screen and (max-width: 1252px) {
    .custom-form .button.button-arrow {
        font-size: 18px;
    }
}

@media screen and (max-width: 1199px) {
    .row-form {
        gap: 0;
    }

    .custom-form:not(.brif-form)::after {
        width: 450px;
        height: 450px;
        z-index: -1;
    }

    .custom-form .row-form:not(:last-child) {
        margin: auto;
    }

    .request-calculation.custom-form .calculation-form {
        margin: 0;
        max-width: unset;
        justify-content: space-between;
        width: 85%;
    }

    .request-calculation.custom-form .row-form {
        flex-direction: unset;
        justify-content: space-between;
    }

    .request-calculation.custom-form .button.button-arrow {
        margin-top: 10px;
    }

    .request-calculation.custom-form .row-form .calculation-form__input,
    .request-calculation.custom-form .row-form .calculation-form__area {
        margin-bottom: 5px;
    }

    .row-form {
        gap: 20px;
    }

    .calculation-form__input-wrap {
        flex: 0 0 calc(35% - 2rem);
    }
}

@media screen and (max-width: 1099px) {
    .request-calculation.custom-form .row-form {
        flex-direction: unset;
        justify-content: unset;
        gap: 5px;
    }

    .custom-form:not(.brif-form)::after {
        bottom: 23%;
    }

    .form-block-border .row-form:first-child {
        padding: 30px 190px 30px 30px;
        margin-bottom: 20px;
        aspect-ratio: 283 / 222;
        max-width: 1615px;
        position: relative;
        background-repeat: no-repeat;
        background-size: contain;
        background-image: url('../../img/affiliate_program/background_border_form_mobile.png');
    }

    .request-calculation .form-block-border {
        background-image: none;
        padding: 0;
    }

    .calculation-form__credits.rk-checkbox {
        flex: 100%;
        margin-bottom: 40px;
    }

    .calculation-form__input-wrap {
        flex: 100%;
        width: 100%;
    }
}

@media screen and (max-width: 880px) {
    .custom-form:not(.brif-form)::after {
        right: -48%;
    }
}

@media screen and (max-width: 800px) {
    .request-calculation.custom-form .calculation-form {
        padding-left: 0;
        padding-right: 0;
    }

    .request-calculation .form-block-border {
        margin-left: 0;
    }

    .calculation-form__input-wrap {
        padding: 5px;
    }

    .form-block-border .row-form:first-child {
        padding: 10px 120px 10px 10px;
        flex-wrap: nowrap;
        margin: 0 0 20px 0;
    }

    .custom-form .row-form:not(:last-child) {
        flex-wrap: nowrap;
    }

    .custom-form .button.button-arrow {
        margin-right: auto;
    }

    .custom-form:not(.brif-form)::after {
        right: -70%;
        bottom: 35%;
    }
}

@media screen and (max-width: 745px) {
    .calculation-form__input {
        padding: 5px 0 5px;
    }
}

@media screen and (max-width: 660px) {
    .custom-form:not(.brif-form)::after {
        right: -85%;
    }

    .custom-form .row-form:not(:last-child) {
        gap: 0;
    }
}

@media screen and (max-width: 600px) {
    .form-block-border .row-form:first-child {
        padding-right: 85px;
    }

    .calculation-form__input {
        margin: 0;
    }
}

@media screen and (max-width: 570px) {
    .custom-form:not(.brif-form)::after {
        bottom: 30%;
        width: 250px;
        height: 250px;
        right: -50%;
    }
}

@media screen and (max-width: 500px) {
    .calculation-form__credits.rk-checkbox p {
        font-size: 8px;
    }

    .request-calculation.custom-form .row-form .calculation-form__input,
    .request-calculation.custom-form .row-form .calculation-form__area {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 460px) {
    .form-block-border .row-form:first-child {
        padding-right: 75px;
        padding-top: 0;
        padding-bottom: 10px;
        padding-left: 10px;
    }

    .calculation-form__input-wrap {
        padding: 0;
    }

    .custom-form:not(.brif-form)::after {
        right: -70%;
    }
}

@media screen and (max-width: 370px) {
    .form-block-border .row-form:first-child {
        padding-right: 50px;
    }

    .custom-form:not(.brif-form)::after {
        right: -90%;
    }
}
@media (min-width: 1921px) {
.custom-form:not(.brif-form)::after {
    bottom: auto!important;
}

.request-calculation .form-block-border {
    width: 100%;
    max-width: 80%;
    padding: 2.6875vw 9.875vw 2.6875vw 4.5625vw
}
.custom-form:not(.brif-form)::after {
    width: 35.625vw;
    height: 35.625vw;
}
.custom-form:not(.brif-form)::after {
    right: -43% !important;
    top: -22% !important;

}
.request-calculation .form-block-border {
    width: 100%;
    max-width: 80%;
    padding: 2.6875vw 9.875vw 2.6875vw 4.5625vw
}

.custom-checkbox input[type="checkbox"] {
    width: 1.25vw;
    height: 1.25vw;
}
.custom-checkbox .checkmark {
    width: 1.25vw;
    height: 1.25vw;
    border-radius: 0.1875vw;
}
.custom-checkbox .checkmark svg {
    width: 1.25vw;
    height: 1.25vw;
}
.calculation-form__credits.rk-checkbox {

    gap: 1.25vw;

}

}