@use "../custom" as *;

.contact {
  position: relative;
  z-index: 2;
  margin-top: -150px;
  margin-bottom: 9.375rem;
  &__wrapper {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;

    @media (max-width: 1000px) {
      flex-direction: column;
    }
  }

  &__left {
    max-width: 72rem;
    width: 100%;

    &-content {
      width: 100%;
      background-color: $white;
      border-radius: 0.75rem;
      overflow: hidden;
      padding: 1.5rem;
    }
  }

  &__submit {
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    height: 2.75rem;
    padding: 0 2rem;
    border-radius: 0.38rem;
    padding: 0 2rem;
    background: #0c9f2c;
    border: none;
    outline: none;
    margin-top: 1rem;

    &:hover {
      background-color: rgba(#0c9f2c, 0.8);
    }
  }

  &__title {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    color: #183b56;
    font-family: $roobert;
    display: block;
  }

  &__description {
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(#7c8499, 0.5);
    margin: 0;
    font-family: $roobert;
    margin-top: 0.375rem;
  }

  &__input,
  &__textarea {
    width: 100%;
    border-radius: 0.375rem;
    height: 3.5rem;
    outline: none;
    border: 1px solid rgba(106, 106, 149, 0.06);
    background-color: $white;
    padding: 0 1rem;
    font-family: $roobert;
    font-size: 0.88rem;
    color: #183b56;

    &::placeholder {
      color: #7c8499;
    }

    &:focus {
      border-color: #183b56;
    }
  }

  &__textarea {
    min-height: 9.375rem;
    height: 9.375rem;
    padding: 1rem;
  }

  &__input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  &__right {
    height: auto;
    background-color: #9752ff;
    max-width: 27rem;
    width: 100%;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;

    img {
      width: 55.44rem;
      height: 41.44rem;
      position: absolute;
      right: -230px;
      top: 120px;
      transform: rotate(20deg);
      z-index: 3;
    }

    &::before {
      content: "";
      position: absolute;
      width: 41.0625rem;
      height: 41.0625rem;
      border-radius: 100vh;
      background-color: rgba($white, 0.1);
      left: 50%;
      bottom: -273px;
      transform: translateX(-50%);
    }
    &::after {
      content: "";
      position: absolute;
      width: 541px;
      height: 541px;
      border-radius: 100vh;
      background-color: rgba($white, 0.2);
      left: 50%;
      bottom: -215px;
      transform: translateX(-50%);
    }

    @media (max-width: 1000px) {
      display: none;
    }
  }

  &__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;

    @media (max-width:1250px) {
      grid-template-columns: repeat(2, 1fr);
    }
    @media (max-width:800px) {
      grid-template-columns: repeat(1, 1fr);
    }
  }

  &__item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    gap: 1rem;
    background-color: #128c7e;

    &-subtitle {
      font-weight: 400;
      font-size: 0.88rem;
      color: #fff;
      font-family: $roobert;
      display: block;
    }

    &-title {
      font-weight: 600;
      font-size: 1rem;
      color: #fff;
      font-family: $roobert;
      display: block;
    }

    &.whatsapp{
      background-color: #128c7e;
    }
    &.email{
      background-color: #9752FF;
    }
    &.adress{
      background-color: #1A1E32;
    }
  }
}

.contactIntro {
  background: no-repeat url("../images/bg-secondary.webp");
  background-position: bottom center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 9.375rem 0 7.5rem;

  .container {
    position: relative;
  }

  &__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: auto;

    &-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem 2rem;

      @include media-breakpoint-down(md) {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-bottom: 1rem;
      }
    }
  }

  &__icon {
    min-width: 6.25rem;
    width: 6.25rem;
    height: 6.25rem;
    position: relative;
    background-color: rgba($purple, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100vh;

    i,
    img {
      color: $white;
      font-size: 1.3125rem;
      min-width: 1.3125rem;
      width: 1.3125rem;
      height: 1.3125rem;
      object-fit: contain;
      object-position: center;
      position: relative;
      z-index: 3;
    }

    &::after {
      content: "";
      min-width: 4.25rem;
      width: 4.25rem;
      height: 4.25rem;
      border-radius: 100vh;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: $purple;
      border: 8px solid #1a1e32;
    }
  }

  &__headline {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.5;
    color: $white;
    font-family: $roobert;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
  }

  &__description {
    font-weight: 400;
    font-size: 1rem;
    color: rgba(#7c8499, 0.6);
    font-family: $roobert;
    margin: 0;
    position: relative;
    z-index: 3;
    background-color: #1a1e32;
  }
}
