/*
 *  1.0. Mixins
*/

.contact-form {
  position: relative;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  @media screen and (max-width: 1024px) {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(min-content, auto) 1fr;
    
  }

  & > .contact-form__info {
    position: relative;

    padding: 4rem;

    @media screen and (max-width: 1024px) {
      padding: 2rem 2rem 4rem 2rem;
      
    }

    &::after{
      content: "";
      position: absolute;
      z-index: -1;
      top: 0;
      left: 0;

      width: 100%;
      height: 100%;

      background-color: white;
      opacity: 0.5;
    }

    & > .contact-form__info__text {
      height: 100%;
      & .contact-form__info__text__header{
        display: flex;
        flex-direction: column;
        justify-content: center;

        height: 100%;

        @media screen and (max-width: 1024px) {
          justify-self: center;
          
        }
      }
      h2 {
        letter-spacing: 2px;
        font-size: 3rem;
        font-weight: 700;
        color: black;

        padding-bottom: 0;
        margin-bottom: 0;

        @media screen and (max-width: 500px) {
          font-size: 2rem;
          
        }
      }

      h3 {
        margin-top: 0.5rem;
        margin-bottom: 0;
        letter-spacing: 1px;
        font-size: 1.4rem;
        font-weight: 400;
        color: black;
        font-style: italic;

        @media screen and (max-width: 500px) {
          font-size: 1.2rem;
          
        }
      }

      .contact-form__info__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        gap: 3rem;
     
        padding-left: 1.5rem;

        flex: 1;
        height: 100%;

        @media screen and (max-width: 1024px) {
          margin-top: 2rem;
            
          gap: 1.5rem;
        }
        @media screen and (max-width: 500px) {
          max-height: 200px;
          
        }
        & > * {
          display: flex;
          align-items: center;
          gap: 1.5rem;
          font-size: 1.2rem;
          font-weight: 600;
          
          margin-bottom: 0;

          @media screen and (max-width: 500px) {
            font-size: 1rem;
            gap: 1rem;
            
          }
          & > svg {
            width: 2rem;
            height: 2rem;

          }
        }
      }
    }

    & .contact-form__info__svg {
      position: absolute;
      top: 2rem;
      right: 0;
      z-index: 1;

      width: 50px;
      height: 100px;
      @media screen and (max-width: 1024px) {
        
        top: auto;
        bottom: 0;
        right: auto;
        left: 0rem;
        transform: rotate(90deg) translateX(-50%);
        transform-origin: bottom center;
      }

    }

    .contact-form__info__img__container {
      position: absolute;
      top: 0;
      right: 0;

      width: 100%;
      height: 100%;

      z-index: -2;
      & img {
        position: relative;

        width: 100%;
        height: 100%;
        opacity: 0.5;
        object-fit: cover;
        object-position: top right;
        z-index: -1;
      }
    }
  }

  & > .contact-form__the-form {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 4rem;

    background: #58a77c;

    @media screen and (max-width: 500px) {
      padding: 2rem;
      
    }

    & form {
      display: flex;
      flex-direction: column;
      gap: 1rem;

      width: 100%;

      & .contact__fields {
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }

      & input,
      & textarea,
      & button {
        width: 100%;

        border-radius: 0.4rem !important;
        border: 1px solid white;
        background: transparent;

        color: white !important;
        &::placeholder {
          color: white;
          opacity: 1;
        }
      }
      & button {
        transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
      }
      & button:hover {
        background-color: white !important;
        color: #59a77c !important;
        border: 1px solid #59a77c !important;
      }
    }
  }
}
