.custom-newsletter-banner {
  width: 100%;
  position: relative;

  .custom-newsletter-banner__container {
    position: relative;

    @media screen and (max-width: 749px) {
      display: flex;
      flex-direction: column;
    }
  }

  .custom-newsletter-banner__image {
    position: relative;
    width: 100%;
    z-index: 1;

    @media screen and (max-width: 749px) {
      height: 100%;
      align-self: stretch;
      aspect-ratio: 390/319;
    }

    .custom-newsletter-banner__img {
      width: 100%;
      height: auto;
      display: block;
      margin-bottom: -1px;
    }
  }

  .custom-newsletter-banner__image--desktop {
    display: none;

    @media screen and (min-width: 750px) {
      display: block;
    }
  }

  .custom-newsletter-banner__image--mobile {
    display: block;

    @media screen and (min-width: 750px) {
      display: none;
    }
  }
}

.newsletter-section {
  background: var(--color-black);
  padding: 3rem 2rem;
  text-align: center;

  @media screen and (min-width: 750px) {
    position: absolute;
    top: 50%;
    left: clamp(8rem, 4.167vw, 11rem);
    transform: translateY(-50%);
    width: auto;
    height: auto;
    z-index: 2;
    background: transparent;
    padding: 4rem 0 0 0;
  }

  .newsletter-section__container {
    max-width: clamp(630px, 44vw, 840px);

    @media screen and (max-width: 749px) {
      max-width: 100%;
    }
  }

  .newsletter-section__content {
    text-align: left;
  }

  .newsletter-section__icon {
    display: none;

    @media screen and (min-width: 750px) {
      display: inline-block;
      vertical-align: middle;
      margin-right: 1.6rem;
    }
  }

  .newsletter-section__title {
    color: var(--color-white);
    font-size: 2.4rem;
    font-weight: bold;
    font-family: var(--font-family-tertiary);
    margin-bottom: 2rem;
    display: inline-block;

    @media screen and (min-width: 768px) {
      font-size: clamp(3.6rem, 2.4vw, 4.8rem);
    }
  }

  .newsletter-section__form {
    margin-bottom: 2rem;

    .newsletter-section__field-wrapper {
      width: 100%;
    }

    .field {
      display: flex;
      background: linear-gradient(90deg, rgba(231, 0, 0, 0.00) 80.77%, rgba(231, 0, 0, 0.80) 100%), var(--color-medium-gray);
      border-radius: 25px;
      overflow: hidden;
      width: 100%;
      margin: 0 auto;

      .field__input {
        flex: 1;
        padding: 1rem 1.5rem;
        border: none;
        outline: none;
        font-size: clamp(1.4rem, 0.833vw, 1.6rem);
        font-weight: 300;
        background: transparent;

        &:focus {
          outline: none;
          border: none;
          box-shadow: none;
        }

        &::placeholder {
          color: var(--color-gray);
          opacity: 1;
        }
      }

      .newsletter-form__button {
        height: auto;
        background: transparent;
        color: var(--color-white);
        border: none;
        padding: 1rem 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;

        &:hover {
          opacity: 0.9;
        }

        :is(svg) {
          width: 20px;
          height: 20px;
        }
      }
    }

    .newsletter-form__message {
      margin-top: 1rem;
      font-size: clamp(1.2rem, 0.833vw, 1.6rem);
    }
  }

  .newsletter-section__text {
    color: var(--color-white);
    font-size: clamp(1.2rem, 0.833vw, 1.6rem);
    line-height: 1.8rem;
    margin: 0 auto;
    font-family: var(--font-family-secondary);

    :is(a) {
      color: var(--color-red);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
  }
}