.input-group label {
  font-size: 14px;
  color: $base-color3;
  margin-bottom: 4px;
}

.navbar .form-control {
  min-height: 20px;
}

.form-control {
  border-color: $base-color4;

  &:focus {
    box-shadow: none;
    border-color: $indigo-color;
    box-shadow: 0 0 0 1px #3f51ae;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  padding: 16px 18px;
  min-height: 52px;
  color: $base-color1;
  font-size: 16px;
}

.level-up .text-muted {
  color: $base-color2 !important;
  font-size: 12px;
  letter-spacing: 0.33px;
  margin-top: 3px;
  margin-bottom: -5px;
  line-height: 1.6em;
  padding: 0 20px;
}

.level-up {
  position: relative;
}

.level-up label {
  position: absolute;
  margin: 0;
  font-size: 16px;
  left: 12px;
  top: 16px;
  color: $base-color2;
  letter-spacing: 0.1px;
  padding: 0 6px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.level-up.active1 label,
.level-up.active2 label {
  color: $indigo-color;
  font-size: 12px;
  letter-spacing: 0.33px;
  top: -10px;
}

.level-up.active2 label {
  color: $base-color3;
}

.form-group-file {
  position: relative;

  &:before {
    content: '';
    position: absolute;
    height: calc(100% - 2px);
    width: 142px;
    background-color: #fff;
    top: 1px;
    left: 5px;
  }

  label {
    position: absolute;
    font-size: 14px;
    background: #fff;
    top: 16px;
    padding: 5px 18px;
    left: 19px;
    border: 1px solid $base-color4;
    border-radius: 4px;
    background-color: #3f51ae;
    text-transform: uppercase;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.89px;
    margin-bottom: 0;
  }

  input {
    border: 1px solid $base-color4;
    padding: 16px 18px;
    min-height: 66px;
    border-radius: 4px;
    padding-left: 55px;

    &:focus {
      outline: none;
    }

  }
}

.form-group-md {
  label {
    font-size: 14px;
    left: 12px;
    top: 11px;
  }

  .form-control {
    padding: 5px 18px;
    min-height: 42px;
    font-size: 14px;
  }
}

.form-group-sm {
  label {
    font-size: 14px;
    left: 12px;
    top: 8px;
  }

  .form-control {
    padding: 5px 18px;
    min-height: 36px;
    font-size: 14px;
  }

  &.level-up.active1 label,
  &.level-up.active2 label {
    font-size: 11px;
  }
}

.form-control:disabled,
.form-control[readonly] {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: $base-color4;
}

.form-row>.col,
.form-row>[class*=col-] {
  padding-right: 10px;
  padding-left: 10px;
}

.col-form-label {
  font-size: 14px;
  font-weight: 500;
  color: $base-color1;
  padding: 15px 15px;
}

.input-group-text {
  background-color: $base-color4;
  border-color: $base-color4;
}

.input-group-prepend .input-group-text {
  border-right: none;
}

.input-group-append .input-group-text {
  border-left: none;
}

.form-group-sm .input-group-text {
  font-size: 13px;
}

.input-group-prepend [class*=btn-outline-],
.input-group-append [class*=btn-outline-] {
  border-color: $base-color3;
  color: $base-color2;

  &:hover {
    background-color: $base-color5;
    color: $base-color1;
  }
}

.custom-control {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 27px;
}

.custom-control-label {
  font-size: 14px;
  color: $base-color1;
}

.custom-control-label::before {
  top: 2px;
  left: -27px;
  height: 18px;
  width: 18px;
  border-color: rgba(116, 116, 116, 0.74);
  border-width: 2px;
  z-index: 1;
}

.custom-control-label::after {
  top: 3px;
  left: -22px;
  height: 12px;
  width: 7px;
  border-radius: 0;
  border: 2px solid #fff;
  transform: rotate(45deg);
  border-left: none;
  border-top: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.custom-checkbox .custom-control-label::before {
  border-radius: 2px;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::after {
  background-image: none;
  opacity: 1;
}

.custom-radio .custom-control-input:checked~.custom-control-label::after {
  background-image: none;
  opacity: 1;
}

.custom-radio .custom-control-input:checked~.custom-control-label::before {
  background-color: transparent;
}

.custom-radio .custom-control-label::after {
  border: none;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: $indigo-color;
  left: -22px;
  top: 7px;
}

.custom-radio .custom-control-label::before {
  height: 20px;
  width: 20px;
}

.custom-control-input:checked~.custom-control-label::before {
  border-color: $indigo-color;
  background-color: $indigo-color;
}

.custom-control-shadow {
  position: absolute;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: rgba($indigo-color, 0.1);
  left: -39px;
  top: -8px;
  opacity: 0;
  transition: all 0.3s ease;
}

.custom-control-input:checked~.custom-control-label .custom-control-shadow {
  opacity: 1;
}

.custom-radio .custom-control-shadow {
  height: 39px;
  width: 39px;
  left: -37px;
  top: -7px;
}

.custom-control.form-check-inline {
  display: inline-block;
  margin-right: 30px;
}

.custom-control.no-labels {
  margin-right: 0;
  padding-left: 18px;
}

.custom-control.no-labels .custom-control-label::before {
  left: -18px;
}

.custom-control.no-labels .custom-control-label::after {
  left: -13px;
}

.custom-control.no-labels .custom-control-shadow {
  left: -29px;
}

.input-group-text {
  padding: 5px 15px;
}

.custom-control.no-labels.custom-radio {
  padding-left: 20px;
}

.custom-control.no-labels.custom-radio .custom-control-label::before {
  left: -20px;
}

.custom-control.no-labels.custom-radio .custom-control-label::after {
  left: -15px;
}

.custom-control.no-labels.custom-radio .custom-control-shadow {
  left: -30px;
}

.form-row {
  margin-right: -10px;
  margin-left: -10px;
}

.yoo-select {
  position: relative;

  .form-control {
    padding-left: 15px;
  }
}

.yoo-select:before {
  content: '';
  position: absolute;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid $base-color3;
  right: 20px;
  top: 23px;
  z-index: 1;
  pointer-events: none;
}

.yoo-select:after {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  background-color: #fff;
  top: 17px;
  right: 3px;
  pointer-events: none;
}
.form-group-sm {
  .yoo-select:after {
    top: 7px;
}
.yoo-select:before {
    top: 16px;
}
}
.custom-radio .custom-control-input,
.custom-checkbox .custom-control-input {
  position: absolute;
  z-index: 2;
  opacity: 0;
  left: 0;
  top: 0;
  height: 22px;
  width: 22px;
}
