.referral-image-container {
  width: 100%;
  position: relative;

  @media screen and (max-width: 768px) {
    margin-bottom: 36px;
  }

  .referral-image-container__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1360 / 510;

    @media screen and (max-width: 768px) {
      aspect-ratio: 346 / 225;
    }
  }

  .referral-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-family: var(--mymoods-font-poppins), sans-serif;
    font-weight: var(--mymoods-font-weight-black);
    font-size: 64px;
    color: white;
    line-height: 1;

    @media (max-width: 768px) {
      font-size: 28px;
    }
  }
}

.referral-contents {
  padding: 0 20px;

  @media screen and (max-width: 768px) {
    padding: 0 12px;
  }
}

.referral-description {
  padding: 80px 20px 0;
  margin: 0 auto 32px;
  max-width: 960px;

  @media screen and (max-width: 768px) {
    padding: 0 20px;
  }

  .referral-description__title {
    font-size: 54px;
    font-weight: bold;
    margin: 0 0 20px;
    text-align: center;
    color: #222222;

    @media screen and (max-width: 768px) {
      font-size: 24px;
    }
  }

  .referral-description__subtitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 32px;
    text-align: center;
    color: #222222;

    @media screen and (max-width: 768px) {
      font-size: 16px;
    }

    .lightgreen {
      background-color: #27FF00;
    }
  }

  .referral-description__text {
    font-size: 16px;
    text-align: center;
    color: #222222;

    @media screen and (max-width: 768px) {
      font-size: 14px;
    }
  }
}

.referral-form {
  padding-top: 170px;
  margin: -170px auto 42px;
  max-width: 960px;

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

  .referral-form__inner {
    display: flex;
    align-items: flex-start;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 6px #00000029;

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

    .referral-form__image {
      max-width: 400px;
      width: 100%;
      align-self: stretch;

      @media screen and (max-width: 1400px) {
        max-width: 280px;
      }

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

      .referral-form__image--image {
        aspect-ratio: 1 / 1.2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;

        @media screen and (max-width: 768px) {
          aspect-ratio: 16 / 9;
        }
      }
    }

    .referral-form__form {
      flex: 1;
      align-self: stretch;
      min-height: 400px;
      background: whitesmoke;

      .referral-form__logo {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        .referral-form__logo--image {
          width: 120px;
          height: auto;
          padding-top: 20px;
          margin-bottom: -40px;
        }
      }

      > div.shopify-app-block {
        padding: 20px;
        height: 100%;
        display: flex;
        align-items: center;
      }

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

        > div.shopify-app-block {
          min-height: 400px;
        }
      }
    }
  }
}

.referral-steps {
  margin: 0 auto 60px;
  max-width: 960px;

  .referral-steps-container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;

    .referral-step {
      display: flex;
      column-gap: 40px;
      row-gap: 20px;
      flex-wrap: wrap;

      @media screen and (max-width: 1400px) {
        gap: 20px;
      }

      .referral-step__image {
        width: 400px;
        box-shadow: 0 3px 6px #00000029;
        aspect-ratio: 398 / 246;
        border-radius: 10px;
        overflow: hidden;

        @media screen and (max-width: 1400px) {
          width: 280px;
        }

        img {
          display: block;
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .referral-step__info {
        flex: 1;
        padding-top: 10px;
        min-width: 200px;

        .referral-step__info--title {
          font-size: 24px;
          font-weight: bold;
          margin-bottom: 10px;
          color: #0E0E0E;
          display: flex;
          align-items: center;
          gap: 18px;

          @media screen and (max-width: 768px) {
            font-size: 18px;
            gap: 15px;
          }

          .referral-step__info--poppins {
            font-family: var(--mymoods-font-poppins), sans-serif;
            font-weight: var(--mymoods-font-weight-bold);
            font-size: 28px;
            color: var(--mymoods-blue);
            line-height: 1;

            @media screen and (max-width: 768px) {
              font-size: 18px;
            }
          }
        }

        .referral-step__info--text {
          color: #666666;
          font-size: 18px;

          @media screen and (max-width: 768px) {
            font-size: 14px;
          }
        }
      }
    }
  }
}