@import "mixins.less";
@import "variables.less";

/*========================================================
                      Contact Form
=========================================================*/
@input-ff: @font-family-base;
@input-font: 400 14px @input-ff;
@input-height: 43px;
@input-line-height: 24px;

@input-color: @text-color;
@input-bg: #fff;
@input-border: 1px solid #b9b2a1;

@input-padding: ((@input-height - @input-line-height) / 2) 18px
  ((@input-height - @input-line-height) / 2);
@texarea-height: 275px;
@label-margin: 0 0 8px;
@texarea-margin: 0 0 25px;

.user-select( @select ) {
  -webkit-user-select: @select;
  -moz-user-select: @select;
  -ms-user-select: @select;
  // IE10+
  -o-user-select: @select;
  user-select: @select;
}

/* Contact Form Basic Styles
========================================================*/
#contact-form {
  position: relative;
  margin-top: 25px;
}

#contact-form label {
  .box-sizing(border-box);
  position: relative;
  // display: block;
  // letter-spacing: normal;
  // margin: @label-margin;
  width: 30%;
  & + label{
    margin-left: 3.7%;
    @media (max-width: 1199px){
      margin-left: 3.4%;
    }
  }
  @media (max-width: 767px){
    width: 100%;
    & + label{
      margin-left: 0px;
    }
  }
}

#contact-form label.message {
  display: block;
  max-width: 100%;
  width: 100%;
  margin: @texarea-margin;
}

* + #contact-form label.message{
  margin-top: 27px;
}

#contact-form fieldset {
  border: none;
}

.input-styles() {
  font: @input-font;
  line-height: @input-line-height;
  padding: @input-padding;
  color: @input-color;
  // padding-left: 25px;
}

.input-styles2() {
  background-color: @input-bg;
  border: @input-border;
  width: 100%;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
}

/* Contact Form Placeholder Styles
========================================================*/

#contact-form ._placeholder {
  .box-sizing(border-box);
  .input-styles();
  width: 100% !important;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  border-radius: 0;
  cursor: text;
}

#contact-form ._placeholder.focused {
  .opacity(0.4);
}

#contact-form ._placeholder.hidden,
#contact-form .file ._placeholder {
  display: none;
}

/* Contact Form Input
========================================================*/
#contact-form input[type='text'] {
  .box-sizing(border-box);
  .input-styles();
  .input-styles2();
  height: @input-height;
  margin: 0;
}

/* Contact Form Buttons
========================================================*/
#contact-form .btn-wr{
  text-align: left;
}

#contact-form .btn1 {
  // display: inline-block;
  // text-transform: uppercase;
  // font-size: 28px;
  // font-weight: 700;
  // font-family: @secondary-font;
  // letter-spacing: 5.04px;
  // color: #fff;
  // background: @primary;
  // padding: 21px 25px 21px 33px;
  // text-align: center;
}

#contact-form .btn1:hover{
  // color: @secondary;
  // background: darken(@primary, 5%);
  // box-shadow: inset 0 0 3px @secondary;
}

* + .btn-wr{
  margin-top: 47px;
}

/* Contact Form Textarea 
========================================================*/
#contact-form textarea {
  display: block;
  .box-sizing(border-box);
  .input-styles();
  .input-styles2();
  resize: none;
  height: @texarea-height;
  overflow: auto;
}

/* Contact Form Error messages
========================================================*/
#contact-form .empty-message,
#contact-form .error-message {
  .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(data:image/gif;base64,R0lGODlhIAAKAIAAAP///////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCQAAACwAAAAAIAAKAAACD4yPqcvtD6OctNqLs94cFwAh+QQJCQAFACwAAAAAIAAKAILs7uz8+vz09vT08vT8/vz///8AAAAAAAADMVgx3FIwykmhADjjVzsdmjZ4ZASG2FiSJ6quXRu+8IemdXwDdB5dt54PsgA1BoThJAEAIfkECQkACAAsAAAAACAACgCDtLK03Nrc1NLUvL68/Pr81NbUxMLE/P78////AAAAAAAAAAAAAAAAAAAAAAAAAAAABDjwBGMGNeWgzbv/SACM5CiAKGiU5ZC+3MqOLvwOM22/8lzvqhzgB/TgcsQipyA0KD8HAe5o0Tw7EQAh+QQJCQ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5jVsa7HosRxQVO2Wyq34718P0lQmCsYj0mlcKh7ApDJ5a1pBUQXWlz1if2hpjmEVfFdXGyZQ4kwcF5liQgAIfkECQkADAAsAAAAACAACgCDdHZ0vL68rK6sjIqMtLa0lJKU/Pr8tLK0jI6MvLq8lJaU/P78////AAAAAAAAAAAABD6QyUmrZSuowosiyyVeAWCe5jGuk4KiBcsW7znIq1sDNy7SpkGQ5xPpar1i5fhKKicJG0rwrCwOhYF2UDgYIgAh+QQJCQAIACwAAAAAIAAKAIO0srTc2tzU0tS8vrz8+vzU1tTEwsT8/vz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAEOBDJSatFJxgztinHJV4BYJ6mMK6TgaIDy7qvGcvjUNv4SNe3nuVXE150u6BxUtgBDMvKQaBDdg4RACH5BAkJAAUALAAAAAAgAAoAguzu7Pz6/PT29PTy9Pz+/P///wAAAAAAAAMvWLrcrmHIKZ61Auitw/3LwHEDCIqjVpoXmq7s445w3MykLaeb7mS8mg8iAYgkhAQAOw==);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

#contact-form.processing .contact-form-loader {
  .transition(all 0.3s ease-in);
  .opacity(0.7);
  z-index: 99;
}

/* 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: 1050;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  font-family: @input-ff;
  font-size: 13px;
  color: #222;
}

#contact-form .modal h4 {
  font-weight: bold;
  color: #000;
  padding: 0;
  margin: 0;
}

.modal.fade .modal-dialog {
  .transition(transform 0.3s ease-out);
  .transform(translate(0, -25%));
}

.modal.in .modal-dialog {
  .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);
}

.modal-backdrop.in {
  .opacity(0.5);
}

.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: 66px auto 10px;
}

@media only screen and (max-width: 768px) {
  .modal-dialog {
    position: relative;
    width: auto;
    margin-left: 10px;
    margin-right: 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 + &{
        border: 1px solid #DCDCDC;
        padding-top: 16px;
    }
}

#recaptcha_table{
    border: none!important;

    input[type="text"]{
        background: #FFF;
        border: 1px solid #CDCDCD!important;
        color: #999;
    }
}

@media (max-width: 767px) {
    #captchadiv{
        display: block;
    }

    #recaptcha_table{
        width: 100%;

        tr:first-child td + td{
            padding-right: 14px!important;
        }

        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;
    }
}