* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

:where(button) {
  text-decoration: none;
  outline: none;
  border: none;
  box-sizing: border-box;
}

.products__img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.products__img img {
  max-width: 600px;
  object-fit: contain;
}

.products__content {
  padding-block: 6rem 4rem !important;
}

.products__content img {
  max-width: 200px;
  margin-block-end: 1rem;
}

.products__content h4 {
  font-size: 2rem;
}

.products__content p {
  font-size: 0.875rem;
}

.media__text {
  display: flex;
  width: 100%;
  font-size: 22px;
  text-align: center;
  font-weight: 300;
}

.media__sponsors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.team {
  padding-block: 4rem;
}

.team > .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team__title {
  grid-column: 1/-1;

  font-family: 'DM Serif Display', serif;
  text-align: center;
}

.team__group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.partner__image {
  display: block;
  margin-inline: auto;

  width: clamp(100px, 100%, 200px);
  aspect-ratio: 1/1;

  background-position: center;
  background-size: contain;
  border-radius: 100vw;
}

.partner__name {
  font-family: 'DM Serif Display', serif;
  text-align: center;
}

.partner__description {
  line-height: 1.5;
  font-size: 0.75rem;
  text-align: center;
}

.demo {
  display: grid;
  place-items: center;

  min-height: calc(100vh - 94px);
  padding-block: 3rem;

  background-color: #1a3e6f;
}

.demo > .container {
  display: flex;
  justify-content: center;
  gap: 6rem;
}

.demo__logo {
  max-width: 250px;
  margin-inline: 1.5rem;
}

.demo__h1 {
  position: relative;
  padding-inline-start: 3.5rem;
  margin-block-end: 1rem;

  font-size: 2rem;
  font-style: italic;
  white-space: nowrap;
  font-family: 'DM Serif Display', serif;
  color: #ffffff;
  line-height: 3rem;
}

.demo__h1::before {
  content: '';
  position: absolute;
  top: 50%;
  bottom: 0;
  left: 0;

  transform: translate3d(0, -50%, 0);

  height: 80%;
  width: 2px;
  border-radius: 100vw;
  background-color: #ffffff;
}

.demo__h1 span {
  color: #eec358;
}

.demo__image {
  width: clamp(250px, 28vw, 500px);
}

.demo__p {
  width: clamp(300px, 30vw, 500px);

  margin-block: 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.5rem;
}

.demo__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin-block-start: 3rem;
  padding: 4rem;

  background-color: #ffffff;
  border-radius: 0.875rem;
}

.demo__success[aria-hidden='false'] {
  display: inherit;
}

.demo__success[aria-hidden='true'] {
  display: none;
}

.demo__success .demo__h2 {
  font-size: 1.5rem;
  white-space: nowrap;
  font-family: 'DM Serif Display', serif;
  color: #1a3e6e;
}

.demo__success p {
  margin-block: 3rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  color: #4b4b4b;
  line-height: 1.5rem;
}

.demo__success a {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #e62737;

  cursor: pointer;
}

.demo__success a:hover {
  text-decoration: underline;
}

.demo__success .demo__check {
  max-width: 40px;
}

.demo__scheduling {
  max-width: 500px;
  height: fit-content;

  margin-block-start: 3rem;
  padding: 2rem;

  background-color: #ffffff;
  border-radius: 0.875rem;
}

.demo__scheduling[aria-hidden='false'] {
  display: initial;
}

.demo__scheduling[aria-hidden='true'] {
  display: none;
}

.demo__scheduling .demo__h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: #4b4b4b;
  line-height: 2rem;
}

.demo__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  padding-block: 1rem;
}

.demo__form .indicates-required {
  align-self: flex-end;
  font-size: 12px;
}

.demo__form .field-group label {
  font-size: 1rem;
  color: #4b4b4b;
  padding-inline: 1rem;
}

.demo__form .mce_inline_error {
  font-size: 12px;
  color: #e62737;
  padding-inline: 1rem;
}

.demo__form .asterisk {
  color: #e62737;
}

.demo__form input {
  margin-block: 0;
  padding-inline: 1.5rem;

  color: #4b4b4b;

  background-color: #f5f5f5;
  border-radius: 100vw;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

.demo__form input::placeholder {
  color: #686767;
}

.demo__form :is(input:focus, input.valid) {
  border: none !important;
  box-shadow: none !important;
}

.demo__form button {
  align-self: center;
  margin-block-start: 1rem;
}

@media screen {
  @media (max-width: 1024px) {
    .demo > .container {
      flex-direction: column;
      gap: unset;
    }

    .demo__presentation {
      display: flex;
      flex-direction: column;
    }

    .demo__h1 {
      align-self: center;
      left: -1rem;
    }

    .demo__p {
      width: 100%;
      padding-inline: 2rem;
      font-size: 1.25rem;
      line-height: 2rem;
    }

    .demo__image {
      order: 3;
      width: 100%;
      padding-inline: 2rem;
    }

    .demo__scheduling {
      max-width: 100%;
    }
  }

  @media (max-width: 640px) {
    .media__sponsors {
      flex-direction: column;
    }

    .team > .container {
      grid-template-columns: repeat(2, 1fr);
    }

    .demo__h1 {
      align-self: flex-start;
      left: 0rem;
    }

    .demo__p {
      padding-inline: 0rem;

      font-size: 1rem;
      line-height: 1.5rem;
    }

    .demo__image {
      padding-inline: 0rem;
    }
  }

  @media (max-width: 320px) {
    .demo__h1 {
      font-size: 1.75rem;
      line-height: 2.5rem;
    }
    .demo__scheduling {
      padding: 1rem;
    }

    .demo__scheduling .demo__h2 {
      font-size: 1.25rem;
    }
  }
}

@media only screen and (max-width: 992px) {
  .parallax-container .section {
    position: absolute;
    top: 40%;
  }
  #index-banner .section {
    top: 10%;
  }

  .products__img {
    display: none;
  }

  .products__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 4rem !important;
  }

  .products__content :is(h4, p) {
    text-align: center;
  }
}

@media only screen and (max-width: 600px) {
  #index-banner .section {
    top: 0;
  }
}
