div.modal-window{
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 792px;
    width: 1200px;
    border: solid 1px white;
    border-radius: 60px;
    z-index: 110;
    background: transparent;
    bottom: 0;
    font-size: 0.8rem;
    transition: 2s;
    overflow: hidden;
}

div.modal-window>div{
    position:relative;
    padding:2em;
    width: -webkit-fill-available;
}

.modal-content{
    position: relative;
    width: 100%;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: perspective(0px);
    flex-wrap: nowrap;
}

.modal-cross.modal-close-btn{
    background-color: transparent;
    margin-left: auto;
    height: 4rem;
    position: absolute;
    right: 0;
    top: 0;
    width: 4rem;
    border: solid 1px gray;
    border-radius: 50%;
    padding: 0;

    >img{width:100%;height:100%;}
}
.modal-cross.modal-close-btn>img{
    /*filter:brightness(0);*/
}

#contact-answer{
    transition: 2s;
}
#contact-answer[shown="false"]{
    display:none;
}

#order-answer{
    transition: 2s;
    /*padding-bottom: 10rem;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height:450px;
    overflow:hidden;
}
#order-answer[shown="false"]{
    max-height:0px;
}
#order-answer>img{
    height:45%;
    margin-bottom:2rem;
}


form{
    width:100%;
    height: 615px;
    /*max-height: 85%;*/
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    overflow:hidden;
    transition:2s;
}
/*
form>.row{
    overflow: auto;
}

.row::-webkit-scrollbar {
  width: 0.8em;
  height: 10px;
}
.row::-webkit-scrollbar-thumb {
  background: gray;
  border-radius: 10px;
}
.row::-webkit-scrollbar-track {
  background: lightgray;
  border-radius: 10px;
}
*/

.contact-title{
    margin-bottom:0.5em;
}

.contact-title>p{
    margin-bottom:0;
}
form>p{
    margin:1rem;
}

@media (max-width: 576px){
    .contact-title{
        padding:1em;
        width: 100%;
        font-size:1.2em;
    }
}

div.modal-window form .dropdown-container{
    width:20px;
}

div.modal-window form select{
    border: solid 1px #fff;
    border-radius: 10px;
    background: transparent;
    padding: 18px;
    font-size: 28px;
    line-height: 28px;
    color: white;
    width: -webkit-fill-available;

    >*{
        font-size:16px;
        color:gray;
    }

    option{
        color:black;
    }
}

select:-internal-list-box{
    width:500px;
}

form div.personal{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: column;
}

form div.personal>p{
    font-size:22px;
    line-height:24px;
    margin-bottom:0;
}



form .personal>input{
    border: solid 1px #fff;
    border-radius: 10px;
    background: transparent;
    padding: 18px;
    font-size: 28px;
    line-height: 28px;
    color: white;
    width: -webkit-fill-available;
    transition: 3s;
}

form .personal>input.red{
    border-color:red;
    transition: 0s;
    background-color: rgba(100,10,10,0.5);
}

.order-buttons{
    display:flex;
    justify-content:flex-end;
    gap:1em;
}

.contact-buttons{
    display:flex;
    gap:1em;
}

button.btn.modal-close-btn{
    background-color: rgba(10,10,10,0.1);
}




@media only screen and (min-width:2200px){
    div.modal-window{
        padding: 4rem;
    }
    .contact-title h4{
        font-size: 6rem;
        line-height:100px;
    }

    form .personal>input {
        padding: 1rem;
        font-size: 2rem;
    }

    form>textarea {
        padding: 1rem;
        font-size: 2rem;
        line-height: 2.2rem;
        min-height:12rem;
    }
}


@media only screen and (max-width:1280px){
    div.modal-window{
        height: min-content;
        width: 100%;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.5);

        left:0;
        top:auto;
        transform:none;
    }

    .order-title{
        width:90%;

        >h2{font-size:32px;line-height:32px;}
    }

    .order-buttons{
        display:flex;
        justify-content:flex-end;
        gap:1em;
        margin-top:2rem;
    }

    .modal-cross.modal-close-btn{
        height: 6rem;
        width: 6rem;
    }

    div.modal-window form select, div.modal-window form input{
        font-size: 22px;
        line-height: 24px;
    }
}


@media only screen and (max-width:1024px){
    .order-title{
        width:85%;
    }

    .modal-cross.modal-close-btn{
        height: 80px;
        width: 80px;
    }

    div.modal-window form select, div.modal-window form input{
        font-size: 18px;
        line-height: 20px;
    }
}

@media only screen and (max-width:768px){
    .order-title{
        width:85%;
    }

    .modal-cross.modal-close-btn{
        height: 70px;
        width: 70px;
    }

    div.modal-window form select, div.modal-window form input{
        font-size: 18px;
        line-height: 20px;
    }

    #order-answer{margin-block:2rem;}

    #order-answer>img{height:200px;}

    #order-answer>h2{font-size:32px;line-height:32px;}
}


@media only screen and (max-width:560px){
    .modal-cross.modal-close-btn{
        height: 60px;
        width: 60px;
    }
}

@media only screen and (max-width:425px){
    div.modal-window form select, div.modal-window form input{
        font-size: 16px;
        line-height: 18px;
        padding: 18px 10px;
    }

    .modal-cross.modal-close-btn{
        height: 54px;
        width: 54px;
    }

    .order-buttons .button{font-size: 16px;}
}