/* ==========================================================================
   Generic form elements
   ========================================================================== */

.form-generic {
  padding: 0 0 40px;
  margin: 20px 0 0;
  border-bottom: 1px solid #eee;
}

.form-generic:first-child,
h1 + .form-generic, h2 + .form-generic, h3 + .form-generic {
  margin-top: 0;
}

/*
 * Field
 */

.form-field {
  margin-top: 14px;
}

.form-field:first-child {
  margin-top: 0;
}

/*
 * Label
 */

[class*="form-field-label"] {
  display: block;
  margin: 0 0 6px;
}

  .form-field-required {
    color: #7eaf15;
  }

/*
 * Text & search inputs
 */

input[type="text"],
input[type="search"],
textarea {
  width: 100%;
  height: 40px;
  padding: 10px 15px;
  margin: 0;
  font: 15px/18px Arial, sans-serif;
  background: white;
  border: 0;
  border-radius: 0;
  vertical-align: middle;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2),
              inset 1px -1px 5px 1px rgba(0,0,0,0.03);
  -webkit-box-sizing: border-box; /* WebKit */
     -moz-box-sizing: border-box; /* Mozilla */
          box-sizing: border-box; /* Opera & IE 8+ */
  -webkit-appearance: none;
  color: #666;
}

textarea {
  height: auto;
}

.lt-ie9 input[type="text"],
.lt-ie9 input[type="search"],
.lt-ie9 textarea {
  border: 1px solid #dadada;
  border-right-color: #f7f7f7;
  border-bottom-color: #f7f7f7;
}

.lt-ie8 input[type="text"],
.lt-ie8 input[type="search"],
.lt-ie8 textarea {
  height: 20px;
  padding-left: 5%;
  padding-right: 5%;
  width: 90%;
}

.lt-ie8 textarea{
  height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-input-placeholder {
   color: #c2c2c2;
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #c2c2c2;
}

:-moz-placeholder { /* Firefox 18- */
   color: #c2c2c2;
}

:-ms-input-placeholder {
   color: #c2c2c2;
}

/*
 * Select boxes
 */

select {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  width: 100%;
  height: 40px;
  padding: 10px 15px;
  margin: 0;
  font: 15px/1 Arial, sans-serif;
  background: white;
  border: 0;
  border-radius: 0;
  -webkit-box-sizing: border-box; /* WebKit */
     -moz-box-sizing: border-box; /* Mozilla */
          box-sizing: border-box; /* Opera & IE 8+ */
  color: #c2c2c2;
}

.js select {
  position: absolute;
  height: 1px;
  width: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.form-field-select {
  position: relative;
  display: inline-block;
  *display: inline;
  *zoom: 1;
  width: 100%;
  height: 40px;
  padding: 7px 55px 8px 15px;
  font: 15px/25px Arial, sans-serif;
  background: white;
  border: 1px solid #dadada;
  -webkit-box-sizing: border-box; /* WebKit */
     -moz-box-sizing: border-box; /* Mozilla */
          box-sizing: border-box; /* Opera & IE 8+ */
  color: #c2c2c2;
  cursor: pointer;
  z-index: 100;
}

.lt-ie8 .form-field-select {
  width: 90%;
  height: 20px;
  padding: 7px 5% 12px 5%;
  background: url(../images/ie7/dropdown.gif) no-repeat right center white;
}

.form-field-select:after {
  content: ' ';
  position: absolute;
  top: 5px;
  right: 0;
  bottom: 5px;
  width: 40px;
  border-left: 1px solid #dadada;
}

.form-field-select:before {
  content: ' ';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: url('../images/sprites/sprite.png') no-repeat;
  background: rgba(0,0,0,0) url('../images/sprite.svg') no-repeat;
  background-position: -60px -40px;
}

.form-field-select:hover:before {
  content: '  '; /* ie8 fix */
  background-position: -80px -40px;
}

.form-field-select:active:before {
  content: ' ';
  background-position: -100px -40px;
}

  .form-field-select-custom {
    position: absolute;
    top: 38px;
    left: -1px;
    display: none;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid #dadada;
    z-index: 250;
    min-width: 100%;
    max-width: 500px;
  }
    .form-field-select-custom ul{
      padding: 0 20px 0 0;
      margin: 0;
    }

  .form-field-select-custom.is-open {
     display: block;
     max-height: 300px;
     overflow: auto;
  }

    .form-field-select-option {
      padding: 7px 0 8px 15px;
      color: #666;
      white-space: nowrap;
    }

    .form-field-select-option:before {
      display: none;
    }

    .form-field-select-option:hover {
      color: black;
      cursor: pointer;
    }

    .form-field-select-option:active {
      color: #666;
    }
  .form-field-select-placeholder{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }
  .lt-ie8 .form-field-select-placeholder{
    margin-right: 35px;
  }
    .form-field-select-placeholder.is-selected {
      color: #666666;
      display: block;
    }

/*
 * Checkboxes
 */

.js input[type="checkbox"] {
  position: absolute;
  height: 1px;
  width: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.js .form-field-input .checkbox {
  position: relative;
  display: block;
  padding-left: 30px;
  margin: 10px 0 0;
  cursor: pointer;
}

.js .form-field-input .checkbox:first-child {
  margin-top: 0;
}

.js .form-field-checkbox-custom {
  content: ' ';
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: url('../images/sprites/sprite.png') no-repeat;
  background: rgba(0,0,0,0) url('../images/sprite.svg') no-repeat;
  background-position: -60px -60px;
  -webkit-box-sizing: border-box; /* WebKit */
     -moz-box-sizing: border-box; /* Mozilla */
          box-sizing: border-box; /* Opera & IE 8+ */
}

.js .form-field-input .checkbox:hover .form-field-checkbox-custom {
  background-position: -80px -60px;
}

.js .form-field-input .checkbox.is-checked .form-field-checkbox-custom {
  background-position: -100px -60px;
}

.js .form-field-input .checkbox:active .form-field-checkbox-custom {
  background-position: -120px -60px;
}

/*
 * Radiobuttons
 */

.js input[type="radio"] {
  position: absolute;
  height: 1px;
  width: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.js.lt-ie8 input[type="radio"] {
  position: absolute;
  height: auto;
  width: auto;
  padding: 0;
  margin: 0 0 0 -25px;
  border: 0;
  overflow: visible;
  clip: rect(auto);
}

.js .form-field-input .radio {
  position: relative;
  display: block;
  padding-left: 25px;
  margin: 10px 0 0;
  cursor: pointer;
}

.js .form-field-input .radio:first-child {
  margin-top: 0;
}

.js .form-field-radio-custom {
  content: ' ';
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: url('../images/sprites/sprite.png') no-repeat;
  background: rgba(0,0,0,0) url('../images/sprite.svg') no-repeat;
  background-position: -60px -81px;
  -webkit-box-sizing: border-box; /* WebKit */
     -moz-box-sizing: border-box; /* Mozilla */
          box-sizing: border-box; /* Opera & IE 8+ */
}

.js .form-field-input .radio:hover .form-field-radio-custom {
  background-position: -80px -81px;
}

.js .form-field-input .radio.is-checked .form-field-radio-custom {
  background-position: -100px -81px;
}

.js .form-field-input .radio:active .form-field-radio-custom {
  background-position: -120px -81px;
}

/*
 * Actions
 */

.form-actions {
  clear: both;
  padding: 30px 0 0;
  text-align: right;
}

/*
 * Error messages
 */

[class*="form-error"] {
  position: relative;
  padding: 7px 15px 8px 45px;
  margin: 18px 0 0;
  background: #660066;
  color: white;
}

.form-actions + [class*="form-error"] {
  margin-top: 30px;
}

[class*="form-error"]:before {
  content: ' ';
  position: absolute;
  top: 13px;
  left: 15px;
  width: 16px;
  height: 13px;
  background: url('../images/sprites/sprite.png') no-repeat;
  background: rgba(0,0,0,0) url('../images/sprite.svg') no-repeat;
  background-position: -22px -303px;
}

.form-error-pointer:after {
  content: ' ';
  position: absolute;
  top: -7px;
  left: 14px;
  border: 7px solid #660066;
  border-top-width: 0;
  border-left-color: transparent;
  border-right-color: transparent;
}

/*
 * Privacy
 */

.form-privacy {
  position: relative;
  float: left;
  width: 275px;
  padding: 0 0 0 25px;
  margin: 0;
  font-size: 13px;
  line-height: 19px;
  text-align: left;
  color: #a9a9a9;
}
  .form-privacy-wide {
    width: auto;
    margin: 30px 0 0;
  }

.form-privacy:before {
  content: ' ';
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 13px;
  background: url('../images/sprites/sprite.png') no-repeat;
  background: rgba(0,0,0,0) url('../images/sprite.svg') no-repeat;
  background-position: -42px -303px;
}

  .form-privacy a {
    color: #a9a9a9;
  }

  .form-privacy a:hover {
    color: black;
  }

  .form-privacy a:active {
    color: #666;
  }


/* ==========================================================================
   Meta search form
   ========================================================================== */

.lt-ie8 .header-meta-section a{
  margin-top: 5px;
}

.form-meta-search {
  position: relative;
  bottom: 1px;
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

  .lt-ie8 .form-meta-search-input,
  .form-meta-search-input[type] { /* give importance by using [type] attribute selector */
    width: 161px;
    height: 32px;
    padding: 5px 44px 5px 15px;
  }

  .lt-ie8 .form-meta-search{
    width: 161px;
  }
  .lt-ie8 .form-meta-search .form-meta-search-input[type]{
    width: 102px;
    height: 22px;
  }

  .form-meta-search-submit {
    position: absolute;
    top: 50%;
    right: 9px;
    margin-top: -9px;
  }


/* ==========================================================================
   Language selector
   ========================================================================== */

.form-field-language-select {
  width: 161px;
  height: 32px;
}

.form-field-language {
  bottom: 1px;
  width: 161px;
  height: 32px;
  padding: 2px 39px 5px 10px;
  margin: 0 0 0 6px;
  font-size: 13px;
  vertical-align: middle;
  color: #a9a9a9;
}
.lt-ie8 .form-field-language {
  width: 112px;
  height: 25px;
  padding: 2px 39px 5px 10px;
}

.form-field-language:before {
  right: 5px;
}

.form-field-language:after {
  width: 30px;
}

  .form-field-language-custom {
    top: 30px;
  }

    .form-field-language-option {
      padding: 5px 10px;
      color: #a9a9a9;
    }

    .form-field-language-option.is-selected {
      display: none;
    }


/* ==========================================================================
   Google Maps get directions form
   ========================================================================== */

.form-directions {
  padding: 0 0 30px;
  border-bottom: 1px solid #eee;
}


/* ==========================================================================
   Search results form
   ========================================================================== */

.form-search-field-label {
  display: block;
  margin: 0 0 15px;
}

.form-search-field-input {
  width: 359px;
  display: inline-block;
}



/* ==========================================================================
   Custom file selector
   ========================================================================== */

.form-field-customfile {
    position: relative;
}
.form-field-customfile [type="file"] {
    cursor: pointer;
    font-size: 25px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 999;
    color: white;
}
.form-field-customfile .uneditable-input {
    width: 69%;
}
.form-field-customfile .button-secondary {
    float: right;
    width: 30%;
    margin:0;
}



/* ==========================================================================
   Distributor locator filter/form
   ========================================================================== */

.form-distributor-field {
  position: relative;
}
.form-distributor-actions {
  position: absolute;
  bottom: 0;
  right: 0;
}


/* ==========================================================================
   Custom form IE8 fix
   ========================================================================== */

.custom-form {
  clear: both;
}
.custom-form:before,
.custom-form:after {
    content: " ";
    display: table;
}
.custom-form:after {
    clear: both;
}
.custom-form {
    *zoom: 1;
}