/* forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select,
.form-control {
  height: 33px;
  background-color: transparent;
  border-radius: 2px;
  color: $fontColor;
  padding: 0 10px 0 0;
  font-size: 16px;
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid rgba($fontColor, 0.2);
}

form textarea,
form textarea.form-control {
  background-image: linear-gradient(transparent, transparent 30px, rgba($fontColor, 0.2) 30px, rgba($fontColor, 0.2) 31px, transparent 31px) !important;
  background-size: 100% 40px;
  line-height: 40px !important;
  padding: 0;
  height: 111px;
}

input[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

input[type="submit"],
button {
  cursor: pointer;
}

input[type="submit"],
button {
  border-radius: 50px;
  cursor: pointer;
  padding: 7px 39px;
  background-color: $colorMain2;
  color: $darkColor;
  font-size: 16px;
  letter-spacing: 0;
  border: 2px solid $colorMain2;
  text-transform: none;
  transition: all 0.2s ease-in-out;
  &:hover {
    background-color: transparent;
    color: $darkColor;
  }

  .ds &:not([class]), .cs &:not([class]) {
    border-color: $lightColor;
    color: $lightColor;
    &:hover {

    }
  }
}

textarea,
textarea.form-control {
  padding-top: 5px;
  height: auto;
}

.form-group {
  position: relative;

  [class*='col-'] > & {
    margin-bottom: 0;
  }

  [class*='col-'] > & + & {
    margin-top: 10px;
  }
}

.has-placeholder {
  label {
    display: none;
  }
}

/* select styling */
select[multiple] {
  height: auto;
}

select option,
.form-control option {
  color: $darkgreyColor;
  background-color: $lightColor;
}

.form-control-unstyled {
  border: none;
  background-color: transparent;
}

.form-control, .form-control:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.form-control.invalid {
  -webkit-box-shadow: 0 0 0 2px $colorMain;
  box-shadow: 0 0 0 2px $colorMain;
}

.form-control:focus {
  border-color: darken($fontColor, 1%);
  background-color: transparent;
}

.form-control:-moz-placeholder {
  color: $fontColor;
  opacity: 1;
}

.form-control::-moz-placeholder {
  color: $fontColor;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: $fontColor;
}

.form-control::-webkit-input-placeholder {
  color: $fontColor;
}

.form-control:focus:-moz-placeholder {
  color: transparent;
}

.form-control:focus::-moz-placeholder {
  color: transparent;
}

.form-control:focus:-ms-input-placeholder {
  color: transparent;
}

.form-control:focus::-webkit-input-placeholder {
  color: transparent;
}

/*icons for forms */
form label + [class*="fa-"] {
  position: absolute;
  font-size: 16px;
  top: 60px;
  width: 1em;
  text-align: center;
}

//.has-placeholder class has .form-group elements
form .has-placeholder label + [class*="fa-"] {
  top: 7px;
}

form label + [class*="fa-"] + .form-control {
  padding-left: 30px;
}

form .textarea.has-placeholder label + [class*="fa-"] {
  top: 12px;
}

.checkbox,
.radio {
  label[for] + input[type=checkbox],
  label[for] + input[type=radio] {
    left: 20px;
  }
}

input[type=checkbox],
input[type=radio] {
  margin-top: 8px;
}

//for wordpress widgets wrapper
.form-wrapper {
  &.hero-bg,
  &.muted-bg,
  &.cs,
  &.ds,
  &.ls {
    padding: 35px;
  }
}

//styled checkboxes and radio
.has-error .form-control {
  border-color: $colorMain;
}

.has-error label,
.has-error .help-block {
  color: $colorMain;
}

/*styled checkbox */
.checkbox {
  input[type="checkbox"] {
    display: none;
  }
  label + input[type="checkbox"],
  label > input[type="checkbox"] {
    display: inline-block;
  }
}

input[type="checkbox"] + label {
  padding-left: 0;
}

input[type="checkbox"] + label > a {
  color: $darkgreyColor;
}

input[type="checkbox"] + label:before {
  border: 1px solid $fontColor;
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin: 1px 10px 4px 0;
  text-align: center;
  padding-right: 0.1em;
  width: 15px;
  height: 15px;
  line-height: 14px;
  font-size: 10px;
  border-radius: 50%;
  background: transparent;
  font-family: "FontAwesome", sans-serif;
  font-weight: 900;
}

input[type="checkbox"]:checked + label:before {
  content: "\f00c";
  color: $darkgreyColor;
}

input[type="checkbox"]:disabled + label:before {
  background-color: $borderColor;
}

/*styled radio*/
.radio {
  input[type="radio"] {
    display: none;
  }
  label + input[type="radio"],
  label > input[type="radio"] {
    display: inline-block;
  }
}

input[type="radio"] + label {
  padding-left: 0;
}

input[type="radio"] + label > a {
  color: #999999;
}

input[type="radio"] + label:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid $borderColor;
}

input[type="radio"]:checked + label:before {
  padding: 3px;
  background-color: $darkgreyColor;
  background-clip: content-box;
}

input[type="radio"]:disabled + label:before {
  background-color: $borderColor;
}

.select_container {
  position: relative;
}

.select_container:before {
  color: $colorMain;
  content: "\f107";
  font-family: FontAwesome;
  font-size: 16px;
  position: absolute;
  right: 21px;
  top: 25%;
  pointer-events: none;
  font-weight: 600;
}

select {
  height: 50px;
  padding-left: 20px;
  border: 1px solid rgba($fontColor, 0.2);
  -webkit-appearance: none;
  -moz-appearance: none;
}

