.error-message {
  color: $state-danger-text;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 7px;
  padding-left: 0px;
  &:before {
    position: relative;
    top: 0px;
    display: inline-block;
    font-family: 'FontAwesome';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    content:"\f071" / "";
  }
}

.btn-default-focus {
  @include outline;
  outline-offset: 0;
}

.form-control,
input[type="checkbox"],
input[type="radio"],
.ui-select-multiple.ui-select-bootstrap input.ui-select-search {
  &:focus {
    @include outline;
  }
}

.form-control[disabled] {
  color: #444;
}

.form-horizontal {
  .control-label {
    text-align: left;
    font-weight: 600;
  }
}

.form-group {

  &.has-success {
    label {
      color: $gray-dark;
    }
    .form-control {
      border-color: $gray;
    }
    .help-block {
      color: #737373;
    }

  }
  &.has-error {
    label {
      color: $state-danger-text;
    }
    .form-control {
      border-color: $state-danger-text;
    }
  }
}

.has-error {
  .form-control {
    &:focus {
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
    }
  }
}

.box [bb-schema-form] {
  margin: 10px;
  padding-bottom: 10px;
}

.checkbox {
  // checkbox labels and tooltips should not need validation, so remove highlighting with default Bootstrap 
  // success/error colours
  &.has-success,
  &.has-error {
    label span {
      color: $text-color;
    }
  }
  .help-block {
    color: $text-color;
  }
}

.bb-dropdown {
  position: relative;

  &:after {
    position: absolute;
    top: 1em;
    right: 5px;
    width: 20px;
    height: 20px;
    font-family: FontAwesome;
    content: '\F078';
    font-size: 12px;
    text-align: center;
    pointer-events: none;
  }

  .bb-dropdown__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 40px;
    padding-left: 15px;
    padding-right: 30px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
  }
}

form[name="modal_form"] {
  .modal-body {
    display: flex;
    flex-direction: column;
  }
}