.modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

.modal-text-content{
    margin-bottom: 20px;
}

.modal-content{
    width: 100%;
    max-width: 700px;
    position: relative;
    padding: 30px;
    background: white;
    box-shadow: 0px 0px 10px;
    max-height: 95vh;
    overflow-y: auto;

    border-radius: 10px;
}

.modal-content .button{
    /* margin: 0 10px; */
    margin-right: 10px;
}

.modal-submit-wrapper{
    text-align: right;
    margin-top: 10px;
}

.modal-content input,
.modal-content textarea{
    border-radius: 0px;
    border: 1px solid grey;
    width: 100%;
}
.modal-content input[type=checkbox]{
    /* width: auto; */
    /* width: 20px; */
    vertical-align: middle;
}

.popup-guide{
    width: 300px;
    position: fixed;
}

.popup-guide-arrow{
    position: absolute;
	width: 40px;
    height: 40px;
    right: -20px;
    top: 50px;
    background: white;
    transform: rotate(45deg);
}

.modal.contact .modal-content{
/*     border: 2px solid red; */
    width: 500px;
    max-width: 100%;
}

.modal.contact #result-wrapper{
    max-height: 40vh;
    position: absolute;
    background: white;
    overflow-y: auto;
    padding: 10px;
    box-shadow: 0px 0px 10px;
    display: none;
}
.modal.contact #result-wrapper.active{
    display: initial;
}
#result-wrapper .contact-result{
    padding: 5px;
    font-size: .9rem;
    cursor: pointer;
}
#result-wrapper .contact-result:hover{
    background: rgb(240, 240, 240);
}

.left-panel,
.right-panel{
    display: inline-block;
    max-width: 50%;
    vertical-align: top;
    width: 100%;
}

@media screen and (max-width: 800px){
    .modal-bg{
        display: block;
        overflow-y: auto;
    }
    .left-panel,
    .right-panel{
        max-width: 100%;
    }
}