// sass-lint:disable no-ids
#sign-up-wrapper {
  background: $blue-dark;
}

.sign-up {
  color: #ffffff;
  font-size: 1.125rem;
  padding: 20px 15px;

  &__form {
    @include make-row;
    align-items: baseline;
    justify-content: center;

    .notification_error {
      display: none;

      svg {
        position: relative;
        top: 2px;
      }
    }
  }

  &__email,
  &__email_mobile {
    @include inputfield;
    text-overflow: ellipsis;
    height: 50px;
    border-radius: 25px;

    &-container {
      @include make-col(10);
      @include make-col-ready;
      padding: 0 20px;

      .notification_error {
        margin-bottom: 15px;
        margin-top: 5px;
        border: 2px solid $red;
        background-color: $red-bg;
      }

      .sign-up__submit {
        position: absolute;
        right: 40px;
        top: 13px;
        color: $blue-dark;
        font-size: 1.5rem;
        background: transparent;
        padding: 0;
        line-height: 0;
      }
    }
  }

  &__email_mobile {
    display: none;
  }

  &__thank-you-msg {
    color: $white;
    display: inline-block;
    position: relative;
    font-size: 1.125rem;
    font-weight: 500;

    &-container {
      display: none;
      text-align: center;
      padding: 6px;
    }

    .fa-check {
      position: absolute;
      top: 3px;
      left: -30px;
      width: 18px;
      color: $green;
      font-size: 1.125rem;
    }
  }

  &-popup {
    &__thank-you-msg {
      font-size: 1.125rem;
      font-weight: 500;

      .fa-check {
        top: 3px;
        width: 18px;
        color: $green;
        font-size: 1.125rem;
      }
    }
  }

  &_invalid {
    .sign-up__email {
      @include field-error;
    }

    .notification_error {
      display: block;
    }
  }

  &_valid {
    .notification_error {
      display: none;
    }

    .sign-up__thank-you-msg-container {
      display: block;
    }
  }
}

@include media-breakpoint-only(lg) {
  .sign-up {
    &__email-container {
      padding-left: 15px;
    }
  }
}

@include media-breakpoint-only(md) {
  .sign-up {
    &__email {
      padding-right: 40px;
    }
  }
}

@include media-breakpoint-down(md) {
  .sign-up {
    &__email {
      &-container {
        @include make-col(7);
      }
    }
  }
}

@include media-breakpoint-down(sm) {
  .sign-up {
    padding: 15px;

    &__email {
      &-container.sign-up__email-container {
        @include make-col(12);

        .sign-up__email {
          font-size: .75rem;
        }
      }
    }

    &__submit {
      &-container {
        @include make-col(3);
      }
    }
  }
}

@include media-breakpoint-down(xs) {
  .sign-up,
  .sign-up-popup {
    &__thank-you-msg {
      font-size: $font-size-base;
    }
  }
}
