/**
 * @preserve jQuery modal plugin v1.0
 * @email ongi.ua@gmail.com
 * (c) 2014, Alexandra Bespalova
 */
.result {
    margin-bottom: 10px;
}

.overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(45, 45, 53, 0.7);
    z-index: 100;
    top: 0;
    left: 0;
}




.modal {
    visibility: hidden;
    top: 150px;
    width: 370px;
    max-width: 750px;
    left: 0;
    right: 0;
    margin: 0 auto;
    position: absolute;
    z-index: 99999;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    padding: 35px 20px;
    border: 1px transparent;
    border-radius: 5px;
    background: #fff;
}
.modal.company, .modal.mail{
    visibility: hidden;
    top: 30px;
    width: 600px;
    max-width: 750px;
    left: 0;
    right: 0;
    margin: 0 auto;
    position: absolute;
    z-index: 99999;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;

}
.modal.company img{
    background-size: contain;
    width: 100%;
}
.modal.mail{
    background: rgba(65, 53, 50, 0.7);
    padding: 50px;

}

.modal.mail .modal-close {
    top: 31px;
    left: 65%;
}
.modal.company .modal-close {
    top: 35px;
    right: -9%;
}
.open-modal {
    transition: opacity .5s;
    opacity: 1;
   visibility: visible;
    -webkit-animation: flipInY .8s;
    animation: flipInY .8s;
    z-index: 101;
    position: fixed;
    max-height: 600px;

}
.company.open-modal, .mail.open-modal{
    transition: opacity .5s;
    opacity: 1;
    visibility: visible;
    -webkit-animation: flipInY .8s;
    animation: flipInY .8s;
    z-index: 101;
    position: fixed;
    max-height: 600px;
    background: transparent !important;
}




@-webkit-keyframes pulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.09);}
    0% {transform: scale(1);}
}

@keyframes pulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.09);}
    0% {transform: scale(1);}
}

.modal-close {
    position: absolute;
    top: -8px;
    right: -7%;
    cursor: pointer;
    background: #f6f9f2;
    padding: 5px 10px;
    text-indent: -9999px;
    background: url("../img/close.png") no-repeat;
}
.modal h3{
    color: #b00d08;
    font: 20px "RobotoSlab-Bold";
    text-align: center;
    padding-bottom: 20px;
}
.modal p{
    color: #333;
    font: 16px "RobotoRegular";
    text-align: center;
    padding-bottom: 15px;
}

.modal .name, .modal .number{
    position: relative;
}
@media screen and (max-width: 600px) {
    .modal.company, .modal.mail {
        width: 90%;
    }
    .modal.company .modal-close {
        top: 35px;
        right: -2%;
    }
    .modal.company, .modal.mail {
        top: 70px;
    }

}
@media screen and (max-width: 430px){
    .modal {
        width: 330px;
        padding: 25px 0px;
        height: auto;
    }
    .modal.company .modal-close {
        top: 0px;
        right: -2%;
    }

}
@media screen and (max-width: 380px){
    .modal {
        width: 290px;

    }
     .modal form input{
        padding: 10px !important;
    }
     #call form button{
         width: 218px !important;
         font-size: 20px !important;
     }
    .modal-close {
        top: -25px;
        right: 0;

    }
    .modal.company, .modal.mail {
        top: 100px;
    }
}




 







