/* Contact Form Basic Styles
========================================================*/
#contact-form {
    position: relative;
}
#contact-form label {
    position: relative;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 20px;
    max-width: 500px;
}
#contact-form label.message {
    margin: 0;
    width: 100%;
    max-width: 500px !important;
    border-top: none;
    border-right: none;
    border-left: 2px solid #3d3531;
    border-bottom: 2px solid #3d3531;
}
#contact-form label.message textarea {
    line-height: 17px !important;
    padding: 4px 12px;
}
#contact-form fieldset {
    border: none;
}
/* Contact Form Input
========================================================*/
#contact-form input[type='text'] {
    background-color: transparent;
    border-radius: 0;
    line-height: 16px;
    font-size: 13px;
    font-family: 'Ubuntu', sans-serif;
    padding: 3px 17px 4px 12px;
    color: #d9d9d9;
    outline: none;
    height: 28px;
    border-top: none;
    border-right: none;
    border-left: 2px solid #3d3531;
    border-bottom: 2px solid #3d3531;
    font-weight: 400;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    -webkit-appearance: none;
    cursor: text;
}
#contact-form input[type='text']:hover {
    border-color: #cfb463;
}
#contact-form input[type='text2'] {
    background-color: transparent;
    border-radius: 0;
    line-height: 16px;
    font-size: 13px;
    font-family: 'Ubuntu', sans-serif;
    padding: 3px 17px 4px 12px;
    color: #d9d9d9;
    outline: none;
    height: 28px;
    border-top: none;
    border-right: none;
    border-left: 2px solid #3d3531;
    border-bottom: 2px solid #3d3531;
    font-weight: 400;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    -webkit-appearance: none;
    cursor: text;
}
#contact-form input[type='text2']:hover {
    border-color: #0f0;
}
/* Contact Form Placeholder Styles 
========================================================*/
#contact-form ._placeholder {
    width: 100% !important;
    position: absolute;
    left: 0!important;
    top: 0;
    display: block;
    line-height: 16px;
    font-size: 13px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    padding: 3px 17px 4px 12px;
    color: #d9d9d9;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 0;
    cursor: text;
}
#contact-form ._placeholder.focused {
    color: #cfb463;
}
#contact-form ._placeholder.hidden {
    display: none;
}
#contact-form .file ._placeholder {
    display: none;
}
/* Contact Form Buttons
========================================================*/
#contact-form .btn-wrapper {
    margin-top: 36px;
    text-align: right;
}
#contact-form .btn-wrapper .btn {
    min-width: 210px;
}
/* Contact Form Textarea 
========================================================*/
#contact-form textarea {
    width: 100%;
    margin-top: 0;
    background-color: transparent;
    border-radius: 0;
    line-height: 16px;
    font-size: 13px;
    font-family: 'Ubuntu', sans-serif;
    padding: 3px 17px 4px 12px;
    color: #d9d9d9;
    outline: none;
    border: none;
    font-weight: 400;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    resize: none;
    height: 75px;
    -webkit-appearance: none;
    overflow: auto;
}
/* Contact Form Error messages
========================================================*/
#contact-form .empty-message,
#contact-form .error-message {
    position: absolute;
    right: 3px;
    top: -20px;
    color: red;
    height: 0;
    overflow: hidden;
    font-size: 11px;
    -webkit-transition: 0.3s ease-in height;
    transition: 0.3s ease-in height;
    z-index: 99;
}
#contact-form .invalid .error-message,
#contact-form .empty .empty-message {
    height: 21px;
}
/* Contact Form Processing Box
========================================================*/
#contact-form .contact-form-loader {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 247, 247, 0.48) url('../images/form-loader.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 5%;
    opacity: 0;
}
#contact-form.processing .contact-form-loader {
    opacity: .7;
    z-index: 99;
    -webkit-transition: all 0.3s ease-in;
    transition: all 0.3s ease-in;
}
/* Contact Form Modal
========================================================*/
.modal-open {
    overflow: hidden;
}
#contact-form .modal {
    letter-spacing: normal;
    display: none;
    overflow: auto;  
    position: absolute;
    top: -300px;
    /* margin-top: -20%; */
    width: 600px;
    right: 0;
    bottom: 0;
    margin-left: -300px;
    left: 50%;
    z-index: 1050;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
}
#contact-form .modal h4 {
    color: #000;
    padding: 0;
    margin: 0;
}
.modal.fade .modal-dialog {
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    transform: translate(0, -25%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -moz-transition: -moz-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
}
.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
}
.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid #999999;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: none;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000000;
}
.modal-backdrop.fade {
    opacity: 0;
    filter: alpha(opacity=0);
}
.modal-backdrop.in {
    opacity: 0.5;
    filter: alpha(opacity=50);
}
.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    min-height: 16.42857143px;
}
.modal-header .close {
    margin-top: -2px;
}
.modal-title {
    margin: 0;
    line-height: 1.42857143;
}
.modal-body {
    position: relative;
    padding: 20px;
    color: #534e47;
}
.modal-dialog {
    width: 600px;
    margin: 105px auto;
}
@media only screen and (max-width: 1199px) {
    #contact-form {
        position: relative;
    }
    #contact-form label {
        max-width: 270px !important;
    }
    #contact-form label.message {
        max-width: 270px !important;
    }
}
@media only screen and (max-width: 768px) {
    .modal-dialog {
        position: relative;
        width: auto;
        margin: 10px;
    }
    #contact-form {
        margin-left: 0;
        position: relative;
    }
}
@media only screen and (max-width: 480px) {
    #contact-form {
        margin-left: 0;
        position: relative;
    }
}
@media only screen and (max-width: 479px) {
    #contact-form {
        margin-left: -5px;
        position: relative;
    }
    #contact-form label {
        max-width: 255px !important;
    }
    #contact-form label.message {
        max-width: 255px !important;
    }
}
@media only screen and (max-width: 320px) {
    #contact-form {
        margin-left: -20px;
        position: relative;
    }
    #contact-form label {
        max-width: 280px !important;
    }
    #contact-form label.message {
        max-width: 280px !important;
    }
}
/* Contact Form Close icon
========================================================*/
.close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000000;
    text-shadow: 0 1px 0 #ffffff;
    opacity: 0.2;
    filter: alpha(opacity=20);
}
.close:hover,
.close:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.5;
    filter: alpha(opacity=50);
}
button.close {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
}
