.newhome-newsletter {
  background-color: $secondary-color;
  padding: 120px 10px;

  @include sm {
    padding: 90px 10px;
  }

  > div {
    max-width: $max-width;
    margin: 0 auto;
  }

  h2 {
    color: #fff;
    font-style: italic;
    margin: 0 0 15px;

    @include sm {
      font-size: 2.7rem;
      line-height: 3.3rem;
    }
  }

  p {
    color: $white;
    font-size: 1.8rem;
    line-height: 1.5;
    margin: 0;

    @include sm {
      font-size: 1.6rem;
    }
  }

  a {
    color: $white;
    font-weight: bold;
  }

  .newhome-newsletter__legal {
    font-size: 1.2rem;
    line-height: 1.5rem;
    margin: 0 0 0 10px;
  }

  .std-button {
    background-color: #fff;
    color: $secondary-color;
    line-height: 18px;
    padding: 10px 20px;
    height: auto;
    min-width: 130px;
    transition: all 0.2s ease-in-out;

    @include sm {
      width: 100%;
      padding: 13px 20px;
    }

    &:hover {
      background-color: $primary-color;
      color: #fff;
    }
  }

  .error-message {
    display: none;
    margin-top: 15px;
  }
}

.newhome-newsletter__wrap {
  width: calc(100% / 12 * 8);
  padding: 0 20px;
  margin: auto;
  display: flex;
  justify-content: space-between;

  @include sm {
    width: 100%;
    padding: 0 12px;
  }

  @include md {
    flex-direction: column;
  }
}

.newhome-newsletter__copy {
  padding-right: 30px;
  max-width: 500px;
}

.newhome-newsletter__form {
  width: 350px;
  max-width: 100%;
  flex-shrink: 0;
  color: #fff;

  @include sm {
    margin-top: 10px;
  }

  &.subscribing {
    opacity: 0.5;
    pointer-events: none;
  }

  label {
    display: block;
    font-weight: bold;
    margin-bottom: 2px;
  }

  input[type="email"] {
    height: 52px;
    width: 100%;
    border: 1px solid $white;
    border-radius: 2px;
    background: transparent;
    color: $white;
    font-size: 1.6rem;
    padding: 17px 20px;
  }

  &.validation-error {
    input[type="email"] {
      border-color: $invalid-color;
    }
  }
}
