﻿.mks-ep-modal{
    z-index: -1;
    display:none;
    opacity: 0;
    top: 0;
    left: 0;

    margin: 0;
    padding: 0;
    overflow-y: auto;

    background: #fafafa;
    will-change: opacity, transform, height, width, display;
}

.mks-ep-modal.active{
    z-index: 99999999999;
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    -webkit-animation: modalFadeInFromNone .15s ease-out;
    animation: modalFadeInFromNone .15s ease-out;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

body.mks-ep-modal-open{
    position: initial;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    width: 100%;
    zoom: initial;
    padding-right: 17px;
}

html.mks-ep-modal-open{
    position: initial;
    overflow: hidden !important;
    overflow-y: hidden !important;
    zoom: initial;
}

body.mks-ep-modal-open .mks-ep-modal{
    -webkit-overflow-scrolling: touch;
}

.mks-ep-modal .mks-ep-section{
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.mks-ep-container{
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
}

.mks-ep-modal, .mks-ep-modal .mks-ep-button{
    font-family: Arial, sans-serif;
}

.mks-ep-section-subtitle{
    color: #666;
    font-size: 15px;
    line-height: 23px;
}


.mks-ep-modal-test-drive-response{
    display: none;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
    line-height: 23px;
    color: #666;
}

.mks-ep-modal-test-drive-form{
    text-align: center;
}

.mks-ep-modal-test-drive-form .mks-ep-test-drive-email {
    height: 42px;
    width: 263px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.2);
    padding: 10px;
    font-size: 14px;
    margin: 0 5px 5px 0;
    color: #555;
    display: inline-block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: top;
    float: none;

}

.mks-ep-test-drive-email::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #555;
}
.mks-ep-test-drive-email::-moz-placeholder { /* Firefox 19+ */
    color: #555;
}
.mks-ep-test-drive-email:-ms-input-placeholder { /* IE 10+ */
    color: #555;
}
.mks-ep-test-drive-email:-moz-placeholder { /* Firefox 18- */
    color: #555;
}

.mks-ep-modal-test-drive-form img{
    margin: 0 auto 50px;
    display: block;
}

.mks-ep-close-modal{
    color:#434343;
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    top: 40px;
    right: 40px;
    opacity: .5;
    -webkit-transition: opacity .2s ease;
    -moz-transition: opacity .2s ease;
    -ms-transition: opacity .2s ease;
    -o-transition: opacity .2s ease;
    transition: opacity .2s ease;
}

.mks-ep-close-modal:hover{
    color:#434343;
    opacity:1;
}

.mks-ep-modal-test-drive-form .mks-ep-cta-below {
    clear: both;
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #777;
    line-height: 20px;
}

.mks-ep-modal-test-drive-response i{
    display: block;
    font-size: 100px;
    margin-bottom: 30px;
    color: #8BC34A;
}

.mks-ep-modal .mks-ep-section-title {
    font-size: 32px;
    line-height: 42px;
    margin-bottom: 0;
    display: block;
    color: #333;
    font-weight: bold;
}

.mks-ep-modal .mks-ep-section-heading{
    text-align: center;
    margin-bottom: 35px;
    padding: 0 70px;
}

.mks-ep-modal .mks-ep-button{
    height: 42px;
    min-height: 42px;
    line-height: 1;
    padding: 0 40px;
    color: #660006 !important;
    background: #ffd635 !important;
    display: inline-block;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    border: none !important;
    cursor: pointer;
    float: none;
    font-weight: bold;
    margin: 0;
    box-shadow: none;
}

.mks-ep-modal .mks-ep-button:hover{
    -webkit-box-shadow: 0 7px 15px 0 rgba(0,0,0,.2);
    box-shadow: 0 7px 15px 0 rgba(0,0,0,.2);
    height: 42px;
    line-height: 1;
    padding: 0 40px;
    color: #660006 !important;
    background: #ffd635 !important;
    display: inline-block;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    border: none !important;
    cursor: pointer;
    float: none;
    font-weight: bold;
    margin: 0;
}

.mks-ep-modal-test-drive .mks-ep-section, .mks-ep-modal-test-drive .mks-ep-container{
    height: 100%;
}

.mks-ep-modal-test-drive-response-error{
    color: #ff0000;
}

.mks-ep-modal-test-drive-response-success, .mks-ep-modal-test-drive-response-error{
    padding-bottom: 0;
    font-size: 15px !important;
}

p.mks-ep-modal-test-drive-response-success a{
    text-decoration: underline;
    font-weight: bold;
}


.mks-ep-modal-test-drive-request, .mks-ep-modal-test-drive-response, .mks-ep-modal-test-drive-loader{
    position: relative;
    top: 50%;
    transform: perspective(1px) translateY(-50%);
}

.mks-ep-modal-test-drive-loader{
    width: 100%;
    display: none;
}
.lds-ellipsis {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto;
}
.lds-ellipsis div {
    position: absolute;
    top: 27px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #333;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);

}
.lds-ellipsis div:nth-child(1) {
    left: 6px;
    animation: lds-ellipsis1 0.3s infinite;
}
.lds-ellipsis div:nth-child(2) {
    left: 6px;
    animation: lds-ellipsis2 0.3s infinite;
}
.lds-ellipsis div:nth-child(3) {
    left: 26px;
    animation: lds-ellipsis2 0.3s infinite;
}
.lds-ellipsis div:nth-child(4) {
    left: 45px;
    animation: lds-ellipsis3 0.3s infinite;
}
@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(19px, 0);
    }
}

// Header animation
@-webkit-keyframes modalFadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
        transform: translateY(0px);
    }
}

@-moz-keyframes modalFadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
        transform: translateY(0px);
    }
}

@-o-keyframes modalFadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes modalFadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
        transform: translateY(0px);
    }
}
