// Custom Forms

.custom-select {
  @extend .form-select;
}

.form-select {
  max-width: $input-max-width;
  cursor: pointer;
  background: $form-select-background #{"/* rtl:"}$form-select-background-rtl#{"*/"};
  background-color: $form-select-bg;
  border: $input-border-width solid $input-border-color;
  @include box-shadow($form-select-box-shadow);

  &:focus {
    border-color: var(--template-input-focus-border-color, $input-border-color);
    box-shadow: none;
  }

  &[multiple] {
    padding: 0;
    background-color: $white;

    option {
      padding: $form-select-multiple-padding-y $form-select-padding-x;
      background-color: $white;

      &:checked {
        color: $white;
        background-color: var(--neoteric-color-primary) !important;
      }
    }
  }

  &.form-select-success,
  &.custom-select-success {
    color: $success;
    background-color: $success;

    option {
      color: $form-select-color;
      background-color: $white;
    }
  }

  &.form-select-danger,
  &.custom-select-danger {
    color: $danger;
    background-color: $danger;

    option {
      color: $form-select-color;
      background-color: $white;
    }
  }

  optgroup,
  option {
    color: var(--dark);
    background-color: $white;
  }
}

// Backwards compat with BS4
.form-group {
  @extend .mb-3;
}
