@import 'theme-colors';
@import 'variables-responsive';

label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}
input,
input.form-control {
  border: 1px solid $im-pastel-blue;
  &:focus {
    border-color: $im-gray;
    box-shadow: none;
    outline: none;
  }
}
.error {
  input,
  input.form-control,
  input.form-control:focus {
    border-color: $im-bright-red;
  }
  label,
  p.error-message {
    color: $im-bright-red;
  }

  p.error-message {
    font-size: 11px;
    letter-spacing: 0.37px;
    line-height: 13px;
    margin-bottom: 0;
  }
}
.disabled input.form-control,
input[disabled] {
  border-color: $im-light-gray;
  color: $im-light-gray;
  background-color: #ffffff;
}
.disabled label {
  color: $im-light-gray;
}

.label {
  border-radius: 25px;
  padding: 5px 15px;
  font-weight: 400;
  font-size: 11px;
}

.checkbox-label-disabled {
  color: $im-light-gray;
}

.im-dropdown {
  color: $im-primary-red;
  position: relative;
  cursor: pointer;
  select {
    font-weight: bold;
    outline: none;
    width: 100%;
    padding: 8px 25px 8px 10px;
    border: 1px solid $im-primary-red;
    -webkit-appearance: none;
    -moz-appearance:    none;
    appearance:         none;
    background: #ffffff;
  }
  .fa {
    position: absolute;
    top: 12px;
    right: 10px;
  }
}

.im-radio {
  position: relative;

  input[type=radio] {
    position: absolute;
    visibility: hidden;
    margin: 0;
    top: 0;
    left: 0;
  }

  label {
    position: relative;
    padding-left: 30px;
    min-height: 22px;
    vertical-align: bottom;
    margin-bottom: 0;
    z-index: 2;
    cursor: pointer;
    color: $im-medium-gray;
    -webkit-transition: all 0.25s linear;
  }

  &:hover label {
    color: $im-gray;
  }

  .check {
    display: block;
    position: absolute;
    border: 1px solid $im-pastel-blue;
    border-radius: 100%;
    height: 14px;
    width: 14px;
    top: 4px;
    left: 8px;
    z-index: 1;
    transition: border .25s linear;
    -webkit-transition: border .25s linear;
  }

  &:hover .check {
    border-color: $im-gray;
  }

  .check::before {
    display: block;
    position: absolute;
    content: '';
    border-radius: 100%;
    height: 10px;
    width: 10px;
    top: 1px;
    left: 1px;
    margin: auto;
    transition: background 0.25s linear;
    -webkit-transition: background 0.25s linear;
  }

  input[type=radio]:checked ~ .check {
    border-color: $im-primary-red;
  }

  input[type=radio]:checked ~ .check::before{
    background: $im-primary-red;
  }

  input[type=radio]:checked ~ label{
    color: $im-primary-red;
  }
}

.search-input-container {
  position: relative;

  .search-bar {
    font-size: 14px;
    line-height: 17px;

    &::placeholder {
      font-style: normal;
      font-weight: 300;
      color: $im-gray;
    }
  }

  .search-icon.left {
    display: none;
  }

  .form-icon {
    position: absolute;
    top: 16px;

    display: inline-block;
    color: $im-gray;

    &.left {
      display: none;
    }
    &.right {
      right: 16px;
    }
  }

  @media(min-width: $im-min-tablet-width) {
    .form-icon {
      &.left {
        display: inline-block;
        left: 16px;
      }
    }

    .input-lg {
      padding-left: 36px;
      padding-right: 36px;
    }
  }
}
