#pricing-table {
  display: flex;
  gap: 16px;
  @media screen and (max-width: 1000px) {
    gap: 8px;
  }
  flex-direction: column;
  margin-bottom: 50px;

  @media screen and (min-width: 1000px) {
    /* fixme: this is a temporary fix to make the table fit on the page */
    zoom: 0.8;
  }

  .row {
    display: grid;
    gap: 16px;

    @media screen and (max-width: 1000px) {
      gap: 8px;
    }

    grid-template-columns: 1fr 1fr 1fr;

    /* header cells */
    &:first-child > .cell:not(:first-child) {
      background-color: #3a016d;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 16px;

      .price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
      }

      .title {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 16px;
      }

      h2 {
        font-size: 40px;
      }

      h3 {
        font-size: 48px;
      }

      p {
        font-size: 14px;
        display: block;
        color: #ffffffaa;
      }

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

        h2 {
          font-size: 50px;
        }

        h3 {
          font-size: 40px;
        }

        p {
          font-weight: 400 !important;
        }
      }

      @media screen and (max-width: 600px) {
        .title {
          gap: 8px;
        }

        h2 {
          font-size: 32px;
        }

        h3 {
          font-size: 24px;
        }

        p {
          font-size: 12px !important;
          font-weight: 400 !important;
        }
      }
    }

    /* footer cells */
    &:last-child > .cell:not(:first-child) {
      background-color: transparent;
      align-items: flex-start;

      p {
        display: block;
        font-size: 12px !important;
        font-weight: 400 !important;
        color: #ffffffaa !important;
      }
    }

    .cell {
      padding: 16px;
      border-radius: 12px;

      @media screen and (max-width: 1000px) {
        padding: 8px;
        border-radius: 8px;
      }

      &:not(:first-child):empty {
        background-color: #12043f77 !important;
      }

      &:first-child:not(:empty) {
        background-color: #3a016d;
      }

      &:not(:first-child) {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #291367;

        p {
          display: none;
          color: #c5bbf9;

          @media screen and (max-width: 1000px) {
            &:not(.sub) {
              color: #fff;
              font-size: 16px;
              font-weight: 700;
            }
          }
        }
      }

      &:has(div):not(:has(icon)) {
        > div {
          text-align: center;
          color: #ffffffaa;
          font-size: 16px;
        }
      }

      p.sub {
        color: #ffffffaa;
        font-size: 14px;
        margin-top: 8px;
      }
    }

    /* top left cell */
    &:first-child > .cell:first-child {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
      overflow: hidden;

      @media screen and (max-width: 1000px) {
        display: none;
      }

      h2 {
        font-size: 40px;
      }
    }

    icon {
      color: #1a0231;
      background-color: #07b5ca;
      /* padding: 4px; */
      border-radius: 4px;
    }

    @media screen and (max-width: 1000px) {
      grid-template-columns: 1fr 1fr;

      .cell {
        &:first-child {
          display: none;
        }

        &:not(:first-child) {
          justify-content: space-between;
          gap: 8px;
          p {
            display: block;
          }

          &:has(div):not(:has(icon)) {
            align-items: flex-start;
            flex-direction: column;
            justify-content: flex-start;

            > div {
              font-size: 12px;
              text-align: left !important;
            }
          }
        }

        p.sub {
          font-size: 12px;
        }
      }
    }
  }
}

.cell {
  .video-wrapper {
    position: relative;
    height: 100px;
    aspect-ratio: 1;

    > video {
      height: 400px;
      position: absolute;
      top: 20%;
      left: 20%;
      transform: translate(-50%, -50%);
      margin: unset;

      opacity: 0.7;
      /* filter: grayscale(0.7); */

      transition:
        opacity 300ms ease,
        filter 300ms ease;
    }
  }

  &:hover {
    .video-wrapper > video {
      opacity: 1;
      /* filter: grayscale(0); */
    }
  }
}

.cta-holder {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  margin-bottom: 100px;

  &:has(.cta-activated-form.active) {
    border-radius: 36px;
    border: 1px solid #58476f;
    background: #190233;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
  }
}

.cta-activated-form {
  max-height: 0;
  transition: 300ms max-height ease;
  overflow: hidden;

  &.active {
    max-height: 1000px;
  }
}
