/**
* Forms
* ============================================================================
*/

.form-control {
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.04);
  height: auto;
  border: 1px solid lighten(@gray-lighter, 10);
  padding: 8px 12px 7px;
  position: relative;
  border-radius: 3px;
  color: @gray-dark;

  &.disabled {
    border: 1px solid @trim;
    background: #f7f8f9;
    color: @gray-dark;
  }

  .placeholder(@gray-light);

  &:focus {
    border-color: darken(@gray-lighter, 4);
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.04), 0 0 6px rgba(177, 171, 225, .3);
    outline: none;
  }

  object {
    position: absolute;
    top: 10px;
    right: 9px;
  }
}

.form-group, .control-group {
  margin-bottom: 15px;
}

.form-actions {
  border-top: 1px solid #E9EBEC;
  background: none;
  padding: 20px 0 0;
  margin-bottom: 20px;

  p {
    padding: 0;
    line-height: 15px;
  }
  .note {
    color: @gray;
    line-height: 30px;
  }
}

.help-block {
  font-weight: normal;
  color: @gray;
  font-size: 90%;
  margin-bottom: 0;
}

textarea.form-control {
  height: 150px;
}

legend {
  margin: 20px 0;
  border-bottom: 1px solid #E9EBEC;
  padding-bottom: 10px;
}

.inputs-list label {
  padding-left: 18px;
}
.inputs-list label input[type="radio"],
.inputs-list label input[type="checkbox"] {
  float: left;
  margin-left: -18px;
}

label {
  font-weight: 600;

  &.checkbox {
    padding-left: 25px;
    position: relative;

    input[type="checkbox"] {
      top: 1px;
      left: 0;
      margin-left: 0 !important;
    }
  }
}

.radio, .checkbox {
  label {
    font-weight: 600;
  }
}

.has-error .form-control {
  border-color: @red-dark;
}

.error,
.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline,
.has-error.radio label,
.has-error.checkbox label,
.has-error.radio-inline label,
.has-error.checkbox-inline label {
  color: @red-dark;

}

input.form-control[disabled],
textarea.form-control[disabled] {
  background: #f9f9f9;
  color: #999;
}

.disabled-indicator {
  margin-left: 5px;
  font-size: 80%;
}
