.newsletter-section {
  background-color: var(--theme-primary);
  border-radius: 35px;
  padding: 2rem;
  margin: 4rem 250px;
  font-family: 'IBM Plex Sans', sans-serif;

  .newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;

    .newsletter-left,
    .newsletter-right {
      flex: 1;
      min-width: 300px;
    }

    .newsletter-left {
      h3 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        color: var(--theme-black);

        span {
          font-weight: normal;
          color: var(--theme-white);
          font-family: var(--font-technomat);
        }
      }

      p {
        color: var(--theme-black);
        font-weight: bold;
      }
    }

    .newsletter-right {
      display: flex;
      flex-direction: column;

      .form-group {
        display: flex;
        align-items: center;

        input {
          padding: 0.75rem 1rem;
          background-color: var(--theme-light-yellow);
          border: none;
          font-size: 1rem;
          color: var(--theme-black);
          flex: 1;
        }

        button {
          background-color: var(--theme-black);
          color: var(--theme-white);
          padding: 0.75rem 1.5rem;
          font-weight: bold;
          font-size: 0.9rem;
          margin-left: 0.5rem;
          cursor: pointer;
          border: none;
          white-space: nowrap;
        }
      }

      small {
        margin-top: 0.5rem;
        color: var(--theme-black);
        font-size: 0.75rem;
      }
    }
  }

  @media (max-width: 1200px) {
    margin: 3rem 100px;
    padding: 1.5rem;

    .newsletter-container {
      gap: 1.5rem;
    }
  }

  @media (max-width: 768px) {
    margin: 2rem 2rem;
    padding: 1rem;

    .newsletter-container {
      flex-direction: column;
      align-items: stretch;

      .newsletter-left,
      .newsletter-right {
        flex: unset;
        min-width: 100%;
      }

      .newsletter-right {
        .form-group {
          flex-direction: column;

          input {
            margin-bottom: 0.5rem;
            width: 100%;
          }

          button {
            margin-left: 0;
            width: 100%;
          }
        }
      }
    }
  }
}
