.mg-form {
  width: 100%;
  $self: &;
  input,
  select,
  textarea {
    resize: none;
    &#{$self}__error {
      border: 1px solid #ffb8af;
      background-color: #fffbfb;
    }
  }
  label {
    &#{$self}__error {
      color: red;
      display: block !important;
    }
  }
  .mg-form {
    &__input {
      &--error {
        background-color: $form-input-error-bg-color;
        border: 1px solid $form-input-error-border-color;
        &:focus {
          box-shadow: 0 0 0 0.2rem rgba($red, 0.1);
        }
        &[type="file"] + label {
          background-color: $form-input-error-bg-color;
          border-color: $form-input-error-border-color;
        }
      }
      &-msg {
        font: {
          size: 0.8em;
        }
        display: block;
        margin-top: 3px;
        &--error {
          color: $red;
        }
      }
    }
    &__date-picker {
      border-right: none;
      &.mg-form__input--error {
        + .input-group-append .input-group-text {
          background-color: $form-input-error-bg-color;
          border-color: $form-input-error-border-color;
        }
      }
    }
    &__date-container {
      .input-group-text {
        background-color: transparent;
      }

      img {
        width: 15px;
      }
    }
    &__container {
      display: none;

      &.is-active {
        display: block;
      }
    }
  }
  &--title {
    padding-left: 5px;
    @include media-breakpoint-up(sm) {
      padding-left: 15px;
    }
  }
  &-prod-registration {
    width: 100%;
    .badge {
      position: absolute !important;
      right: 0 !important;
      top: 0 !important;
    }
  }
  &-service {
    .select-search-group {
      span {
        border: none;
        border-top: 5px solid #000000;
        border-left: 5px solid rgba(0, 0, 0, 0);
        border-right: 5px solid rgba(0, 0, 0, 0);
        right: 1.72em;
        position: absolute;
        font-size: 14px;
        top: 75%;
        @include media-breakpoint-up(sm) {
          top: 82%;
        }
      }
      ul {
        position: absolute;
        width: 100%;
        background-color: #fff;
        transition: all 0.3s ease-in-out;
        max-height: 0;
        overflow: hidden;
        z-index: 10;
      }
      li {
        cursor: pointer;
        padding: 6px 12px;
        font-size: 14px;
        border-right: 1px solid #dedede;
        border-left: 1px solid #dedede;
      }
    }
  }
  &-webfeedback {
    .drop-down-item {
      display: none;
      &.active {
        display: block;
      }
    }
  }
  &-ask-question {
    &__links {
      a {
        color: #000 !important;
        &:hover {
          color: #fff;
          text-decoration: none;
        }
      }
    }
  }
  &-serial-validate {
    width: 100%;
    .serial-input {
      width: 90%;
      @include media-breakpoint-up(sm) {
        width: 100%;
      }
    }
    .addtext {
      position: absolute;
      top: 20%;
      left: 90%;
      width: 20px;
      height: 20px;
      @include media-breakpoint-up(sm) {
        margin: 3px;
        left: 85%;
      }
      &::before,
      &::after {
        position: absolute;
        left: 15px;
        content: " ";
        height: 15px;
        width: 2px;
        background-color: $alt-gray;
      }
      &::before {
        transform: rotate(90deg);
      }
      &::after {
        transform: rotate(-180deg);
      }
    }
  }
  &-gaming {
    .btn-signup {
      position: initial;
      @include media-breakpoint-up(sm) {
        position: absolute;
        bottom: 0;
        left: 0;
        margin-bottom: 15px !important;
      }
    }
    .btn-preorder {
      width: 100%;
      @include media-breakpoint-up(sm) {
        width: 70%;
      }
    }
  }
  .footer__logos {
    .list {
      li {
        width: 43px;
        height: 35px;
      }
    }
    img {
      max-width: 33px;
      max-height: 28px;
    }
  }
}

.form-control {
  height: 32px;
  line-height: 36px;
  border-color: #d7d7d7;
  font-weight: 300;
  &-xs {
    display: inline-block;
    font-size: 0.75rem;
    height: calc(1em + 0.5rem + 6px);
    line-height: 1;
    padding: 0.15rem 0.5rem;
    vertical-align: middle;
  }
  &-sm {
    height: 32px;
  }
}

.custom-file {
  height: 100px !important;
  &-label {
    border: 1px dashed #ced4da !important;
    height: 100px;
    display: inline-grid;
    cursor: pointer;
    &::after {
      display: none;
    }
    a:hover {
      color: #00aaee;
      text-decoration: none;
    }
  }
  &-input {
    cursor: pointer;
    height: auto;
  }
}

.form {
  $self: &;
  &-group {
    margin-bottom: 20px;
    &--inline {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      margin: 20px 0;

      #{$self}-control {
        height: 32px;
      }

      label {
        width: 215px;
        display: block;
        margin: 0;
      }
      .material-icons {
        top: 6px !important;
      }
    }
  }
  &-char-count {
    margin-top: 15px;
    padding-bottom: 5px;
    font-size: 14px;
    order: 1;
    @include media-breakpoint-up(sm) {
      order: inherit;
      margin-top: 0;
      padding-bottom: 9px;
      margin-left: auto;
    }
    span {
      font-size: 16px;
      border: $border;
      background-color: #fff;
      width: 56px;
      display: inline-block;
      border-radius: 4px;
      text-align: center;
      margin-right: 6px;
    }
  }
}
