
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    border-radius: 5px;
    font-size: 75%;
    z-index: 500;
}

.modal.open {
    display: flex;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 499;
}

.modal-content-slider {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    border: 5px solid #dddddd;
    border-radius: 20px;
    overflow: hidden;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    padding: 60px;
    width: 50%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    border: 5px solid #dddddd;
    border-radius: 20px;
    margin: 60px auto 10px;
}

.modal-content-slider .swiper-container {
    position: absolute;
    height: 100%;
    z-index: 501;
}

.modal-content .modal__bottom-info {
    width: 90%;
    margin: 40px auto 0;
    font-size: 22px;
    text-align: center;
}

.modal-content .modal__bottom-info a {
    text-decoration: none;
    color: #7F2FFF;
}

.modal-content .modal__bottom-info a:hover {
    text-decoration: underline;
}

.modal-content .title {
    margin: 0 auto;
    font-size: 30px;
    line-height: 40px;
    font-weight: 600;
    color: #474747;
    text-align: center;
}

.modal .inputs input,
.modal .inputs select {
    width: 100%;
    padding: 0 5px 0 20px;
    margin: 30px 0 5px;
    border: 0;
    border-bottom: 2px solid #b9b9b9;
    font-size: 20px;
}

.modal .inputs input::placeholder {
    color: #b9b9b9;
}

.select-modal select:required:invalid {
    color: #b9b9b9;
    background: rgba(0, 0, 0, 0);
}

option[value=""][disabled] {
    display: none;
}

option {
    color: black;
}


.modal .inputs {
    margin-bottom: 20px;
}

.modal .inputs :focus {
    outline: none;
}

.modal .modal-buttons button {
    border-radius: 5px;
    margin: 0;
}

.modal .modal-buttons .big-modal {
    box-shadow: none;
    width: 55%;
    height: 60px;
}

.modal-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.close {
    position: absolute;
    top: 0;
    right: -14px;
    color: #6f6f6f;
    font-size: 54px;
    width: 100px;
    height: 100px;
    text-align: center;
    line-height: 95px;
}

.modal:not(.modal-slider) .close:hover,
.modal:not(.modal-slider) .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


@media only screen and (max-device-width: 768px) {
    .modal {
        align-items: center;
    }

    .modal-content {
        width: 90% !important;
    }

    .slider-for .arrow.next, .slider-for .arrow.previous {
        background-size: 50% !important;
        width: 80px !important;
        height: 80px !important;
    }

    .modal-content .title {
        width: 83%;
        margin: 40px auto;
        font-size: 50px;
        line-height: 60px;
    }

    .modal .inputs input,
    .modal .inputs select {
        height: 80px;
        font-size: 35px;
    }

    .select:after {
        top: 25px;
    }

    .modal .modal-buttons .big-modal {
        height: auto;
        padding: 15px 0;
        font-size: 40px;
    }

    .modal-content .modal__bottom-info {
        font-size: 26px;
    }

    .modal-buttons {
        margin: 80px 0;
    }
}
