/* Generic PopUps */

#mymodal,
#mymodal_survey{
    position: fixed;
    /* Stay in place */
    z-index: 500000 !important;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow-x: hidden;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

.modal {
    background-color: #fefefe;
    position: absolute;
    top: 40%;
    left: 50%;
    height:50vh;
    width: 40vw;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -40%);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.9);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
}

.modal a.close{
    position: absolute;
    top: 8px;
    right: 10px;
}

.modal .modal-header {
    background-color: #009b4a;
    border-bottom: 1px solid #e7e7e7;
    border-radius: 8px 8px 0 0;
    padding: 10px 15px 10px 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color: #fff;
}

.modal .modal-header h3{
    margin: 0px;
    font-size: 24px;
    color: #fff;
    line-height: 1.2;
    width:90%;
}

.modal .modal-header svg {
    float: right;
}

.modal .modal-footer {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-top: 1px solid #e7e7e7;
    border-radius: 0 0 8px 8px;
    padding: 10px 20px 10px !important;
    color: #555;
    text-align: center;
    background-color: #dfdfdf;
    min-height: 50px;
}

.modal h3 {
    margin: 0px 0px 5px;
    font-size: 18px;
    color: #000;
}

.modal .copy{
    position: relative;
    padding: 20px 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color:#333;
    background:#fff;
    width: 100%;
    height:500px;
    overflow-y: auto;
    font: 14px Arial, Verdana, sans-serif !important;
}

.modal .copy p {
    margin-bottom: 15px;
}

.modal .copy hr {
    margin: 30px 0px;
}

.modal label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--brandColorGrey);
}

.modal .copy input,
.modal .copy select,
.modal .copy textarea {
    margin-bottom: 10px !important;
    padding-left: 8px;
}

.modal .copy input[type=checkbox],
.modal .copy input[type=radio] {
    margin-right: 8px;
    margin-bottom: 5px !important;
}

.modal .btn,
.modal input.btn {
    display: inline-block;
    margin-bottom: 5px;
    min-width: 120px !important;
    padding: .4rem 1rem !important;
    height: 1 !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.modal .overlay {
    background-color: var(--brandColorSolidBlack);
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10
}

.modal .btn.accent-color-3 {
    background-color: var(--brandColorLtGreen) !important;
}

.copy input[disabled] {
    background-color: #eee;
    color: #999;
}
@media screen and (max-height: 800px) and (orientation:landscape){
    .modal {
        background-color: #fefefe;
        position: absolute;
        top: 35%;
        left: 50%;
        height:55vh;
        width:80vw;
    }
     #edit_form .copy {
        max-height:60vh;
    }
}
@media screen and (min-height: 910px) {

    #edit_form .copy {
        min-height:30vh;
    }
}

@media screen and (max-width: 1280px) {
    .modal {
        position: absolute;
        top: 25% !important;
        left: 50%;
        transform: translate(-50%, -20%);
    }

    #edit_form .copy {
        min-height: auto;
    }
    .modal {
        background-color: #fefefe;
        position: absolute;
        top: 40%;
        left: 50%;
        height:70vh;
        width:80vw;
    }
}


@media screen and (max-width: 979px) {

    .modal {
        position: absolute;
        top: 15% !important;
        left: 50%;
        transform: translate(-50%, -15%);
    }

}

@media screen and (max-width: 680px) {

    .modal .btn,
    .modal input.btn {
        display: block;
        margin-bottom: 5px;
        min-width: 100% !important;
        padding: .6rem 1rem !important;
        height: 36px !important;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    #edit_form{
        width: 80vw;
        max-height: 60vh;
    }
}

@media screen and (min-width: 480px) and (max-width: 680px) and (min-height: 665px) {

    .modal{
        position: absolute;
        top: 20% !important;
        left: 50%;
        transform: translate(-50%, -20%);
    }

    #edit_form .copy{
        max-height: 70vh;
    }
}

@media screen and (max-width: 480px) {

    .modal{
        position: absolute;
        top: 20% !important;
        left: 50%;
        transform: translate(-50%, -20%);
    }

    #edit_form{
        width: 90vw;
    }

    #edit_form .copy{
        max-height: 45vh;
    }
}

@media screen and (max-width: 480px) and (min-height: 665px) {

    .modal{
        position: absolute;
        top: 20% !important;
        left: 50%;
        transform: translate(-50%, -20%);
    }

    #edit_form .copy{
        max-height: 70vh !important;
    }
}
