.btn {
  display: inline-block;
  text-align: center;
  padding: 10px 30px;
  border-radius: 40px;
  border: none;
  background: $grey-secondary;
  color: white;

  &.--success {
    background-color: $green-success !important;
  }

  &.--danger {
    background-color: $red-danger;
  }
}

.btn-primary {
  background-color: $blue-primary;
  border-color: $blue-primary;
  color: #fff;
}

.btn-primary:hover {
  background-color: $blue-secondary;
  border-color: $blue-secondary;
  color: #fff;
}

input[type=text].form-control,
input[type=number].form-control {
  background-color: $grey-background;
  border: none;
  border-radius: 22px;
  padding: 5px 30px;
  height: 34px;
  line-height: 34px;
  @extend %shadow-in;

  &::placeholder {
    font-weight: 400;
    font-size: 16px;
    color: #999999;
    line-height: 34px;
  }
}

input[type=text].form-control-lg {
  border: none;
  border-radius: 22px;
  padding: 5px 30px;
  height: 44px;
  @extend %shadow-in;

  &::placeholder {
    font-weight: 400;
    font-size: 16px;
    color: #999999;
  }
}

.input-group-text {
  border: none;
  border-radius: 0 22px 22px 0 ;
  padding: 5px 30px;
  height: 44px;
  @extend %shadow-in;

  &::placeholder {
    font-weight: 400;
    font-size: 16px;
    color: #999999;
  }
}

textarea.message_textarea,
input[type=textarea].message_textarea {
  background-color: $grey-background;
  border: none;
  padding: 15px 30px;
  height: 150px;
  width: 100%;
  border-radius: 25px;
  @extend %shadow-in;

  &::placeholder {
    font-weight: 400;
    font-size: 16px;
    color: #999999;
  }

  &:focus {
    border: 1px solid !important;
    border-color: $blue-primary !important;
  }
}

#app_spothit select.form-control {
  font-size: 1rem;
}

.invalid_input {
  border: 3px solid red !important;
}

.err_notification {
  opacity: 0;
  animation: 5s fadeInOut normal forwards;
  z-index: 4;
}

@for $i from 1 through 10 {
  .err_notification {

    // :nth-child(1-9) 
    &:nth-child(#{$i}) {

      // Delay the animation. Delay increases as items loop.
      animation-delay: $i * 500ms;
    }
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.modal-content {
  border-radius: 1.5rem;
  border: none;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: $blue-secondary;
}

.bootstrap-select>.dropdown-toggle.bs-placeholder {
  color: #fff;
}