header>img {
    max-width: 300px;
    margin: auto;
    display: block;
}

body {
    background-color: #F1F2F7;
}

.login-container {
    background-color: #F1F2F7;
    width: 100%;
}

footer {
    height: 30vh;
}

#passwordRecoverForm {
    display: none;
}

.car-options {
    text-align: center;
    /* margin: 2em 0em; */
    font-size: 2em;
    font-weight: 300;
}

.car-container {
    background-color: white;
    width: 230px;
    float: left;
    margin: 2em 1em;
    text-align: center;
    border: 4px solid lightgray;
    border-radius: 5px;
    box-sizing: border-box;
}

.car-container>img {
    width: 100%;
    max-width: 100%;
    max-height: 130px;
}

.car-container>p {
    margin-top: 1em;
    font-weight: bold;
    font-size: 1.1em;
    color: #413764;
}

.selected-car {
    background-color: #5C4E90;
    border: 4px solid #5C4E90;
}

.selected-car p {
    color: white;
}

.car-options-container {
    clear: both;
    display: flex;
    justify-content: center;
    max-width: 90%;
    overflow: auto;
    margin: auto;
}

a.cust-button,
a.cust-button:hover {
    position: relative;
    margin-bottom: 10px;
    padding: 0.5em 1.3em;
    font-size: 1.5em;
    background-color: #5D4F8F;
    border-radius: 0.5em;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
}

.add-vehicle {
    text-align: center;
    margin-top: 3em;
}

.add-vehicle p {
    margin-top: 1em;
}

footer {
    text-align: center;
    margin-top: 7em;
}

/*Dialog*/

.request-service-dialog .modal-body {
    background-color: #F1F2F7;
    border-radius: 0px;
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
}

.request-service-dialog .grey {
    float: left;
    width: 90%;
}

.modal.fade.in {
    top: 30%;
}

.modal {
    display: none;
    background-color: #453d5b;
    width: 620px;
    border-radius: 1em;
}

.modal .modal-content {
    padding: 7px;
}

.modal .modal-body {
    background: white;
    border-radius: 0.5em;
}

#close_span {
    font-size: 4em;
    font-weight: lighter;
    text-align: right;
    display: inline-block;
    width: 15px;
    margin-top: 0.3em;
    color: grey;
    cursor: pointer;
    margin-left: 9.6em;
}

#add-car-dialog input {
    width: 100%;
    margin-bottom: -1px;
}

.modal .cust-button {
    background-color: #92B62C;
    width: 35%;
    margin: auto;
    display: block;
    margin-top: 0.8em;
    font-size: 1em;
    color: white;
}

.modal input[type=file] {
    visibility: hidden;
    display: none;
}

.upload-button {
    background-color: #BFC3D3;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid lightgray;
    padding: 0.5em 2em;
    margin-right: 3em;
}
/* 
.date-field {
    background: url("../images/Insurance/date.png") no-repeat scroll 7px 7px;
    text-indent: 1.4em;
} */

.car-data-edit {
    margin-left: 0.5em;
}

#new-car-form {
    margin-top: -4em;
}

select[name=engine_type] {
    width: 6em;
}

section {
    float: left;
    width: 30%;
    margin-left: 1em;
    padding: 1em;
    box-sizing: border-box;
}

#power {
    width: 100%;
}

#power_measure {
    width: 100%;
    margin-top: 7px;
}

.wrong-mail {
    display: none;
    color: red;
}

.has-mail {
    display: none;
    color: green;
}

.mandatory-field-star {
    color: red !important;
    font-weight: bold !important;
    padding-left: 0.3em;
    font-size: 1em !important;
    font-weight: bolder !important;
    margin: 0 !important;
    width: 2px !important;
}

.date-section {
    width: 60%;
}

.date-section>label {
    display: block;
    clear: both;
    margin-bottom: -5px;
    
}

.date-section>div {
    float: left;
    width: 42%;
    margin-right: 1.4em;
    margin-bottom: 1.7em;
}

.date-section input {
    margin-bottom: 0.5em;
}

#loginForm,
#passwordRecoverForm {
    text-align: center;
    background-color: white;
    width: 33%;
    margin: auto;
    margin-top: 3em;
    padding: 1em;
    border: 4px solid lightgrey;
    border-radius: 7px;
}

form>input {
    margin-bottom: 2em;
}

.login:hover {
    text-decoration: none;
    color: white;
}

.login {
    background-color: #443E5B;
    color: white;
    padding: 0.5em 7em;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 1em;
    cursor: pointer;
    margin: 1em 0 3em 0;
    border: none;
}

#email {
    background-image: url('../images/Login/user_icon.png');
    background-position: 8px 6px;
    background-repeat: no-repeat;
    text-indent: 25px;
}

#password {
    background-image: url('../images/Login/password_icon.png');
    background-position: 8px 6px;
    background-repeat: no-repeat;
    text-indent: 25px;
}

#car-image {
    display: none;
}

.wrong-login {
    color: red;
    display: none;
}

@media all and (max-width: 1100px) {
    #add-car-dialogform {
       height: 500px;
    }

    .modal .modal-body span {
        margin-left: 6.0em;
    }

    #add-car-dialog form {
        width: 100%;
    }

    #add-car-dialog section {
        float: left;
        width: 80%;
    }

    #add-car-dialog p:last-of-type {
        clear: both;
    }
}

@media all and (max-width: 750px) {
    form {
        text-align: center;
        background-color: white;
        width: 65%;
    }
}

@media all and (max-width:550px) {
    #add-car-dialog {
        max-width: 100%;
        overflow: scroll;
        top: 30;
        left: 0;
        height: 300px;
    }

    .date-section>div {
        float: left;
        width: 42%;        
        margin-right: 2em;
        margin-bottom: 1.7em;
        margin-left: 2em;
    }

    #close_span {
     margin-left: 8.6em;
    }

    #add-car-dialog input.date-field {
        width: 15em;
    }
}

@media all and (max-width:450px) {
    header>img {
        max-width: 200px;
    }
    .container {
        width: 108%;
    }
    form {
        width: 73%;
    }
}