/*========================================================
                      Contact Form
=========================================================*/
/* Contact Form Basic Styles
========================================================*/
#contact-form {
  position: relative;
}
#contact-form label {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  display: block;
  letter-spacing: normal;
  margin: 0 0 19px;
  width: 100%;
}
#contact-form label.message {
  max-width: 100%;
  width: 100%;
  margin: 0 0 62px;
}
#contact-form fieldset {
  border: none;
}
/* Contact Form Placeholder Styles
========================================================*/
#contact-form ._placeholder {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font: 400 14px 'Arial', sans-serif;
  line-height: 30px;
  padding: 10px 18px 10px;
  color: #bbbaba;
  width: 100% !important;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  border-radius: 0;
  cursor: text;
}
#contact-form ._placeholder.focused {
  opacity: 0.4;
}
.lt-ie9 #contact-form ._placeholder.focused {
  filter: alpha(opacity=40);
}
#contact-form ._placeholder.hidden,
#contact-form .file ._placeholder {
  display: none;
}
/* Contact Form Input
========================================================*/
#contact-form input[type='text'] {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font: 400 14px 'Arial', sans-serif;
  line-height: 30px;
  padding: 10px 18px 10px;
  color: #bbbaba;
  background-color: #ffffff;
  border: 1px solid #dedede;
  width: 100%;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  height: 50px;
  margin: 0;
}
/* Contact Form Buttons
========================================================*/
#contact-form .btn-wr a + a {
  margin-left: 17px;
}
@media (max-width: 479px) {
  #contact-form .btn-wr {
    text-align: center;
  }
  #contact-form .btn-wr a + a {
    margin-left: 0;
  }
}
/* Contact Form Textarea 
========================================================*/
#contact-form textarea {
  display: block;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font: 400 14px 'Arial', sans-serif;
  line-height: 30px;
  padding: 10px 18px 10px;
  color: #bbbaba;
  background-color: #ffffff;
  border: 1px solid #dedede;
  width: 100%;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  resize: none;
  height: 307px;
  overflow: auto;
}
/* Contact Form Error messages
========================================================*/
#contact-form .empty-message,
#contact-form .error-message {
  -moz-transition: 0.3s ease-in height;
  -o-transition: 0.3s ease-in height;
  -webkit-transition: 0.3s ease-in height;
  transition: 0.3s ease-in height;
  position: absolute;
  right: 3px;
  top: 2px;
  color: red;
  height: 0;
  overflow: hidden;
  font-size: 11px;
  z-index: 99;
}
#contact-form .invalid .error-message,
#contact-form .empty .empty-message {
  height: 14px;
  line-height: 14px;
}
/* Contact Form Processing Box
========================================================*/
#contact-form .contact-form-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: -1;
  overflow: hidden;
  background: rgba(247, 247, 247, 0.48) url(../images/form_loader.gif);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
.lt-ie9 #contact-form .contact-form-loader {
  filter: alpha(opacity=0);
}
#contact-form.processing .contact-form-loader {
  -moz-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
  opacity: 0.7;
  z-index: 99;
}
.lt-ie9 #contact-form.processing .contact-form-loader {
  filter: alpha(opacity=70);
}
/* Contact Form Modal
========================================================*/
.modal-open {
  overflow: hidden;
}
#contact-form .modal {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  letter-spacing: normal;
  display: none;
  overflow: auto;
  overflow-y: scroll;
  position: fixed;
  z-index: 9000;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: #222;
}
#contact-form .modal h4 {
  font-weight: bold;
  color: #000;
  padding: 0;
  margin: 0;
}
.modal.fade .modal-dialog {
  -moz-transition: transform 0.3s ease-out;
  -o-transition: transform 0.3s ease-out;
  -webkit-transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  -moz-transform: translate(0, -25%);
  -ms-transform: translate(0, -25%);
  -o-transform: translate(0, -25%);
  -webkit-transform: translate(0, -25%);
  transform: translate(0, -25%);
}
.modal.in .modal-dialog {
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}
.modal-content {
  position: relative;
  background-color: #ffffff;
  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 {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: fixed;
  z-index: 1040;
  background-color: #000000;
}
.modal-backdrop.fade {
  opacity: 0;
}
.lt-ie9 .modal-backdrop.fade {
  filter: alpha(opacity=0);
}
.modal-backdrop.in {
  opacity: 0.5;
}
.lt-ie9 .modal-backdrop.in {
  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;
}
.modal-dialog {
  width: 600px;
  margin: 10px auto;
  position: relative;
  z-index: 9999;
}
@media only screen and (max-width: 768px) {
  .modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
  }
}
/* 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;
}
/* Contact Form reCaptcha
========================================================*/
#contact-form label.recaptcha {
  max-width: 100%;
  text-align: right;
}
#captchadiv {
  display: inline-block;
  text-align: left;
  background: #FFF;
}
.empty-message + #captchadiv {
  border: 1px solid #DCDCDC;
  padding-top: 16px;
}
#recaptcha_table {
  border: none!important;
}
#recaptcha_table input[type="text"] {
  background: #FFF;
  border: 1px solid #CDCDCD!important;
  color: #999;
}
@media (max-width: 767px) {
  #captchadiv {
    display: block;
  }
  #recaptcha_table {
    width: 100%;
  }
  #recaptcha_table tr:first-child td + td {
    padding-right: 14px!important;
  }
  #recaptcha_table tr:first-child td + td + td {
    display: none;
  }
  #recaptcha_image {
    width: 358px!important;
  }
  #recaptcha_response_field {
    width: 360px!important;
  }
}
@media (max-width: 479px) {
  #recaptcha_image {
    width: 208px!important;
  }
  #recaptcha_response_field {
    width: 210px!important;
  }
}
