.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.modal {
    width: 720px;
    height: 500px;
    border-radius: 6px;
    background-color: #D4E1E8;
    padding: 20px 20px 60px 20px;
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}



.top__back {
    width: 14px;
    height: 12px;

}

.top__close {
    width: 14px;
    height: 12px;

}

.top__back__img {
    background-color: #D4E1E8;
}

.top__close__img {
    background-color: #D4E1E8;
}

.top__title {
    margin-top: 30px;
    font-size: 25px;
    vertical-align: middle;
    text-transform: uppercase;
    color: #004F76;
    margin-bottom: 30px;
    text-align: center;

}

.top {

    justify-content: space-between;
    display: flex;
}

.modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal__content__quest {
    max-width: 550px;
    margin: 0 auto;
    margin-bottom: 30px;
    word-spacing: 1px;
    letter-spacing: -0.5px;
    font-size: 12px;
    text-transform: uppercase;
    color: #004F76;
}

.modal__checkbox-wrapper {
    display: flex;
    flex-direction: column;

}

.modal__checkbox {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    max-width: 380px;
    padding: 15px;
    border: solid 1px #004F76;
    border-radius: 6px;
}

.checkbox__img {
    align-items: center;
    margin-right: 110px;
    width: 25px;
    height: 25px;
}

.checkbox__text {
    font-size: 12px;
    color: #004F76;
}

.modal-btn {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.forward-down {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
    pointer-events: none;
    opacity: 0;
}

.forward-down__img {
    border: 1px solid #004F76;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    height: 59.5px;
    padding: 4px 7px;
}

.forward-down__img-icon {
    width: 50px;
    height: 50px;
}

.forward-down__button {
    font-family: Arial;
    height: 59.5px;
    width: 224.27px;
    background-color: #D4E1E8;
    padding: 0px 20px;
    border: 1px solid #004F76;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    color: #004F76;
    text-transform: uppercase;
}

.forward-up {
    justify-content: end;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
}

.forward-up__img {
    border: 1px solid #004F76;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    height: 59.5px;
    padding: 4px 7px;
}

.forward-up__img-icon {
    width: 50px;
    height: 50px;
}

.forward-up__button {
    font-family: Arial;
    height: 59.5px;
    width: 224.27px;
    background-color: #D4E1E8;
    padding: 0px 20px;
    border: 1px solid #004F76;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    color: #004F76;
    text-transform: uppercase;
}

.ask {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.ask__title {

    margin-bottom: 30px;
    color: #004F76;
    font-size: 12px;
    vertical-align: middle;
    text-transform: uppercase;
}

.ask__field {
    resize: none;
    font-size: 18px;
    padding: 10px;
    width: 530px;
    height: 220px;
    /* width: 27.7vw;
    height: 20.5vh; */
    border-radius: 6px;
    background-color: #E6E6E6;
    border: 1px solid #004F76;
}



.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;

}

.price__title {
    line-height: 17px;
    text-align: center;
    max-width: 420px;
    margin-bottom: 30px;
    color: #004F76;
    font-size: 12px;
    vertical-align: middle;
    text-transform: uppercase;
}

.price__field {
    font-size: 18px;
    padding-top: 20px;
    padding-left: 20px;
    width: 532px;
    resize: none;
    border-radius: 6px;
    background-color: #E6E6E6;
    border: 1px solid #004F76;
}

.modal__calculation {
    margin: 0 auto;
    font-size: 11px;
    max-width: 280px;
    min-height: 60px;
    padding: 25px 87px;
    color: #004F76;
    border: 1px solid #004F76;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.final {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    /* margin: 0 auto; */
}

.final__title {
    text-align: center;
    /* padding: 175px 161px 0px 161px;  */
    max-width: 400px;
    font-family: Arial;
    font-size: 25px;
    color: #004F76;
    margin-bottom: 15px;

}

.final__picture {
    margin: 0 auto;
    width: 50px;
    height: 50px;
}

.radio-button {
    display: flex;
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    background-color: #D4E1E8;
    transition: border 0.3s ease;
}

.radio-button+.radio-button {
    margin-top: 10px;
}

.radio-button input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    border: 2px solid #004F76;
    border-radius: 50%;
    margin-right: 110px;
    position: relative;
    background-color: #D9D9D9;
}

.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    background-color: #004F76;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
}

input[type="radio"]:checked+.custom-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label-text {
    font-size: 12px;
    text-transform: uppercase;
    color: #004F76;
}

#ask,
#price,
#final,
.modal__calculation {
    display: none;
}

@media (max-width: 768px) {
    .modal {
        width: 81.25vw;
        height: auto;
        max-height: 100%;
        overflow-y: auto;
        padding: 20px;
    }

    .modal-btn {
        flex-direction: column;
        margin-top: 20px;
    }

    .forward-down {
        margin-left: 0;
        justify-content: center;
        margin-bottom: 10px;
    }

    .forward-up {
        justify-content: center;
        margin-right: 0;
    }


    .custom-radio {
        margin-right: 60px;
    }

    .ask__field {
        width: 70vw;
        min-height: 180px
    }

    .price__field {
        width: 70vw;
    }

    .modal__calculation {
        width: 70vw;
    }
}

@media (max-width: 480px) {
    .price__field {
        padding: 10px;
    }

}