* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Outfit, "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
    sans-serif;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

#content {
  overflow: hidden;
}

.inp_inac {
  border: 2px solid transparent !important;
  outline: none;
  padding: 8px;
  border-radius: 5px;
}

.main-hero {
  position: relative;
  background-color: #346a45;
  /* todo: dynamic */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 150px;
  gap: 1rem;

  .text-content {
    color: #fff;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;

    @media (min-width: 941px) {
      max-width: 450px;
    }

    h1 {
      text-transform: uppercase;
      line-height: 1;

      span {
        font-weight: bold;
      }

      @media (min-width: 941px) {
        span:nth-child(1) {
          font-size: 1.9em;
          font-weight: bold;
          display: block;
        }

        span:nth-child(2) {
          font-weight: bold;
          font-size: 1.25em;
        }
      }
    }

    p {
      font-size: 1.3em;
      font-weight: 200;
    }

    button {
      background: transparent;
      border-radius: 50px;
      width: 200px;
      height: 50px;
      color: #fff;
      font-size: 1.2em;
      border: 2px solid white;
    }
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#13141700, #131417);
  }

  .anim-container {
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 400px;
    height: 400px;
    /* min-width: 400px;
    min-height: 400px; */
    max-width: 100%;
    max-height: 100%;
    /* background: black; */

    @media (max-width: 940px) {
      width: 340px;
      height: 340px;
    }

    svg.back {
      position: absolute;
      /* top: 50%; */
      width: 150%;
      height: 150%;
      display: flex;
      justify-content: center;
      margin: 0;
      padding: 0;
      align-items: center;
      background: transparent;
      /* transform: translateY(-50%); */

      path {
        transition: all 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11);
      }

      &.back-1 path {
        fill: #ffffff;
      }

      /* white */
      &.back-2 path {
        fill: #37c673;
      }

      /* green */
      &.back-3 path {
        fill: #00eed4;
      }

      /* blue */
      &.back-4 path {
        fill: #ffd400;
      }

      /* yellow */
      &.back-5 path {
        fill: #ffffff;
      }

      /* back to white */
      &.back-6 path {
        fill: #37c673;
      }

      /* green */
      &.back-7 path {
        fill: #00eed4;
      }

      /* blue */
      &.back-8 path {
        fill: #ffd400;
      }

      /* yellow */
    }

    .front {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        /* width: 100%; */
        /* height: 100%; */
        /* max-width: 100%; */
        width: 90%;
        object-fit: cover;
        position: absolute;
        opacity: 0;
        /* transition: all 0.3s ease-in; */

        &.enter-1 {
          animation: kf-enter-1 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11) forwards;
        }

        &.exit-1 {
          animation: kf-exit-1 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11) forwards;
        }

        &.enter-2 {
          animation: kf-enter-2 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11) forwards;
        }

        &.exit-2 {
          animation: kf-exit-2 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11) forwards;
        }

        &.enter-3 {
          animation: kf-enter-3 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11) forwards;
        }

        &.exit-3 {
          animation: kf-exit-3 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11) forwards;
        }

        &.enter-4 {
          animation: kf-enter-4 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11) forwards;
        }

        &.exit-4 {
          animation: kf-exit-4 0.6s cubic-bezier(0.17, 0.67, 0.55, 1.11) forwards;
        }
      }
    }
  }

  @media (max-width: 1150px) {
    padding: 20px 90px;
  }

  @media (max-width: 940px) {
    flex-direction: column;
    /* min-height: 100vh;
    height: 100% !important; */
    gap: 70px;
    padding: 40px 15px;

    .text-content {
      --x-gap: 15vw;
      text-align: center;
      align-items: center;
      gap: 1em;
      padding: 0 var(--x-gap);

      @media (max-width: 570px) {
        --x-gap: 0;
        font-size: 0.8em;
      }

      /* span {
        display: inline !important;
        font-size: 1.25em !important;
        font-weight: 300;
      } */

      h1 {
        font-size: clamp(2em, 1.2em + 2.5vw, 3.125em);
      }
    }
  }

  @media (max-width: 600px) {
    gap: 0px;
    padding-bottom: 0;

    svg.back {
      width: 100% !important;
      height: 100% !important;
    }

    .front img {
      width: 70% !important;
    }

    .front {
      max-width: 100% !important;
    }
  }

  @media (max-width: 440px) {
    svg.back {
      width: 100% !important;
      height: 100% !important;
    }

    .anim-container {
      max-width: 100%;
    }
  }
}

@keyframes kf-enter-1 {
  0% {
    opacity: 0;
    transform: translate(-30px, -30px) rotate(0deg);
    /* scale: 0.8; */
  }

  50% {
    opacity: 1;
    transform: translate(3px, 3px) rotate(0deg);
    /* scale: 1; */
  }

  100% {
    opacity: 1;
    transform: translate(0px, 0px) rotate(0deg);
  }
}

@keyframes kf-exit-1 {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate(0px, 0px) rotate(0deg);
    opacity: 0;
  }
}

@keyframes kf-enter-2 {
  0% {
    opacity: 0;
    transform: rotate(-23deg) translate(30px, 30px);
  }

  50% {
    opacity: 1;
    transform: rotate(-23deg) translate(-3px, -3px);
  }

  100% {
    opacity: 1;
    transform: rotate(-23deg) translate(0px, 0px);
  }
}

@keyframes kf-exit-2 {
  0% {
    opacity: 1;
    transform: rotate(-15deg) translate(0px, 0px);
  }

  100% {
    opacity: 0;
    transform: rotate(-15deg) translate(0px, 0px);
  }
}

@keyframes kf-enter-3 {
  0% {
    opacity: 0;
    transform: rotate(-15deg) translate(0px, 0px);
  }

  50% {
    opacity: 1;
    transform: rotate(17deg);
  }

  100% {
    opacity: 1;
    transform: rotate(15deg);
  }
}

@keyframes kf-exit-3 {
  0% {
    opacity: 1;
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(15deg);
    opacity: 0;
  }
}

@keyframes kf-enter-4 {
  0% {
    transform: rotate(15deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
    transform: rotate(-17deg);
  }

  100% {
    opacity: 1;
    transform: rotate(-15deg);
  }
}

@keyframes kf-exit-4 {
  0% {
    opacity: 1;
    transform: rotate(-15deg);
  }

  100% {
    opacity: 0;
    transform: rotate(-15deg);
  }
}

.testimonial {
  height: 230px;
  flex-direction: row;
  gap: 15px;
  width: 400px !important;
  min-width: 400px !important;
  border-radius: 20px;

  img {
    width: 125px;
    border-radius: 10px;
    height: 170px;
  }

  .side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

    .upper {
      height: 50%;
    }

    .lower {
      height: 50%;
    }
  }
}

@media (max-width: 490px) {
  .testimonial {
    height: 230px;
    flex-direction: row;
    gap: 15px;
    width: 100% !important;
    min-width: 280px !important;
    border-radius: 20px;

    img {
      width: 125px;
      border-radius: 10px;
      height: 170px;
    }

    .side {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;

      .upper {
        height: 30%;
      }

      .lower {
        height: 75%;
      }
    }
  }
}

.card {
  height: 270px;
  flex-shrink: 0;
  min-width: 210px;
  width: 210px !important;
  position: relative;
  transition: all 0.2s ease-in-out;
  border-radius: 10px;
}

.swal2-popup {
  background-color: #1e1e1e !important;
  color: #b5b7c3 !important;
}

.swal2-confirm {
  background-color: #37c673 !important;
  color: #b5b7c3 !important;
}

.swal-title {
  color: rgba(0, 0, 0, 0.65);
  font-weight: 600;
  text-transform: none;
  position: relative;
  display: block;
  padding: 13px 16px;
  font-size: 27px;
  line-height: normal;
  text-align: center;
  margin-bottom: 0;
}

.invalid {
  border: 2px solid #ef4444 !important;
  outline: none;
  padding: 8px;
  border-radius: 5px;
}

.otp-timer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#resendOtpBtn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #3a3a3a;
  color: #fff;
  font-weight: bold;
  cursor: not-allowed;
  opacity: 0.6;
}

#resendOtpBtn:not([disabled]) {
  cursor: pointer;
  opacity: 1;
  background: #346a45;
}

.swal-title-small {
  font-size: 22px !important;
  margin-bottom: 10px;
}