/* The Modal (background) */
        #overlay .modal {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            z-index: 2000; /* Sit on top */
            padding-top: 100px; /* Location of the box */
            left: 0;
            top: 0px;
            width: 100%; /* Full width */
            height: 100%; /* Full height */
            overflow: auto; /* Enable scroll if needed */
            background-color: rgb(0,0,0); /* Fallback color */
            background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
        }

        /* Modal Content */
        #overlay .modal-content {
            background-color: #fefefe;
            margin: auto;
            width: 40%;
	        margin-top: 13em;
        }

        /* The Close Button */
        #overlay .close {
            color: #aaaaaa;
            float: right;
            font-size: 40px;
            font-weight: bold;
	        margin-right: 0.5em;
            top: -0.35em;
            position: relative;
        }

        #overlay .close:hover,
        #overlay .close:focus {
                color: #000;
                text-decoration: none;
                cursor: pointer;
            }
            /*#overlay #myModal {display:block;}*/


            #overlay iframe{
                width: 100%;
                height: 23em;
                overflow: hidden;
                border: none;
                padding-left: 0.5em;
                padding-right: 0.5em;
            }

            #overlay #top-section {
                background: #868951;
                height: 4em;
                text-align: center;
                padding-top: 1em;
            }

#overlay #sales-form-title {
    color: #ffffff;
    font-size: 15pt;
    font-family: 'Source Sans Pro', sans-serif;
}

@media (min-device-width: 640px) and (max-device-width: 1600px) {
    #overlay iframe {
        height: 26em;
    }
}

@media only screen and  (min-width: 1447px)  and  (max-width: 1600px) {
    #overlay iframe {
        height: 22em;
    }

    #overlay .modal-content 
    {
        margin-top: 8em;
        width: 43%;
    }
    
}

@media only screen and  (min-width: 1415px)  and  (max-width: 1446px) {
    #overlay iframe {
        height: 22em;
    }

    #overlay .modal-content 
    {
        margin-top: 8em;
        width: 44%;
    }
    
}

@media only screen and  (min-width: 1382px)  and  (max-width: 1414px) {
    #overlay iframe {
        height: 22em;
    }

    #overlay .modal-content 
    {
        margin-top: 8em;
        width: 44%;
    }
    
}

@media only screen and  (min-width: 1195px)  and  (max-width: 1381px) {
    #overlay iframe {
        height: 23em;
    }

    #overlay .modal-content 
    {
        margin-top: 8em;
        width: 53%;
    }
    
}

@media only screen and  (min-width: 1090px)  and  (max-width: 1194px) {
    #overlay iframe {
        height: 23em;
    }

    #overlay .modal-content 
    {
        margin-top: 8em;
        width: 57%;
    }
    
}

@media only screen and  (min-width: 797px)  and  (max-width: 1089px) {
    #overlay iframe {
        height: 23em;
    }

    #overlay .modal-content 
    {
        margin-top: 8em;
        width: 79%;
    }
    
}

@media only screen and  (min-width: 760px)  and  (max-width: 796px) {
    #overlay iframe {
        height: 23em;
    }

    #overlay .modal-content 
    {
        margin-top: 8em;
        width: 81%;
    }
    
}

@media only screen and  (min-width: 640px) and  (max-width: 759px) {
    /*#sales-form-title {font-size: 10px;}*/
    #overlay iframe {
        height: 22em;
        
    }
    .modal-content {width: 92%;    flex-flow: column;}
}






@media only screen  and  (min-width: 481px)and  (max-width: 639px) {
    #overlay iframe {
        height: 26em;
        position: relative;
        top: -50px;
    }

    #overlay .modal-content 
    {
        margin-top: 4em;
        width: 85%;
    }

   
    #overlay .close {margin-right: 0.15em;}

    #overlay .modal {top: 10px;}
    #overlay .top-row div {font-size: 10px;}
}



@media only screen  and  (max-width: 480px) {
    #overlay iframe {
        height: 28em;
        position: relative;
        top: -50px;
    }

    #overlay .modal-content 
    {
        margin-top: 4em;
        width: 85%;
    }

    #overlay #sales-form-title {font-size: 12px;}    
    #overlay .close {margin-right: 0.15em;}

    #overlay .modal {top: 10px;}
    #overlay .top-row div {font-size: 10px;}
}

@media only screen and  (min-width: 919px) and  (max-width: 1100px) {
    /*#sales-form-title {font-size: 13px;} */
}


div#form-left img {
    width: 100%;
}

div#form-left , #form-right{
    max-height: 400px;
    width: 50%;
}



.modal-content {
    display: flex;
    position: relative;
    justify-content: space-between;
}

#overlay #top-section{
    background-color: transparent;
}

#overlay #sales-form-title {
    color: #646648;
    text-align: left;
    padding-left: 27px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    text-transform: initial;
    padding-right: 30px;
}

#overlay #sales-form-title span {
    display: block;
    margin-bottom: -10px;
    font-weight: bolder;
    font-size: 28px;
}

#overlay .close{
    position: absolute;
    right: -3px;
    top: -4px;
    font-weight: 400;
    font-size: 32px;
    color: #d8d8d8;
}

.top-row {
    display: flex;
    justify-content: space-between;
    padding-left: 12px;
    padding-right: 15px;
}

.form-group label {
    font-size: 13px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    padding-top: 5px;
}

.form-group {
    margin-bottom: 10px;
    display: flex;
    padding-left: 15px;
    padding-right: 15px;
}

.top-row img {
    width: 15px;
    height: 13px;
    padding-right: 4px;
}

.form-group input {
    width: 70%;
    height: 20px;
    border-radius: 0px;
    border: 1px solid;
}

div#div-desc {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 10px;
    text-align: justify;
    color: #828282;
    padding-right: 15px;
}

.bottom-row {
    padding-bottom: 20px!important;
}

.submit-row .submit {
    color: #ffffff;
    background-color: #036fad;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    font-family: 'Source Sans Pro', sans-serif;
    float: right;
    margin-right: 15px;
}

.submit-row .submit {
    background: red!important;
}
#overlay .modal-content{
    width: 100%;
    max-width: 700px;
}



@media only screen and (min-width: 797px) and (max-width: 1089px){
    #overlay .modal-content {
        margin-top: 8em;
        width: 100%;
        max-width: 680px;
    }
}

@media only screen and (max-width: 768px){
    #overlay .modal-content {
        flex-flow: column!important;
        width: 325px;
        max-height: max-content;
    }

    div#form-left, #form-right {
        max-height: 360px;
        width: 100%;
    }
    .top-row div{
        padding-right: 0px!important;
        margin-top: 15px;
    }
    #overlay #top-section{
        height: auto;
    }
    #overlay #sales-form-title{
        margin-bottom: 0;
    }
}

