﻿#contact {
  font-family: 'ClashDisplay', sans-serif;
  font-size: 1rem;
  color: white;

  height: 50rem;
  width: 72%;
  max-width: 84rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5rem;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    margin: 0 auto;
    height: auto;
    padding-bottom: 5rem;
    width: 80%;
  }

  @media (max-width: 768px) {
    width: 85%;
    column-gap: 0;
  }

  .contact-message {

    @media (max-width: 1024px) {
      padding-bottom: 3rem;
    }

    .subtitle {
      font-size: 3.5rem;
      line-height: 4rem;
      font-weight: bold;

      @media (max-width: 1024px) {
        font-size: 2.5rem;
        line-height: 3rem;
      }

      @media (max-width: 768px) {
        font-size: 2.2rem;
        line-height: 2.8rem;
      }

      span {
        color: dimgrey;
      }
    }

    p {
      font-size: 2rem;

      @media (max-width: 1024px) {
        font-size: 1.5rem;
      }

      @media (max-width: 768px) {
        font-size: 1.2rem;
        margin-bottom: 2rem;
      }
    }
  }

  .contact-form {
    display: flex;
    flex-direction: column;

    .form-two-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 5rem;

      @media (max-width: 1024px) {
        column-gap: 2rem;
      }

      @media (max-width: 768px) {
        grid-template-columns: 1fr;
        column-gap: 0;
      }
    }

    .form-field {
      font-family: 'Roboto', sans-serif;
      display: flex;
      flex-direction: column;
      margin-bottom: 3rem;

      label {
        color: dimgrey;
      }

      .input-field {
        font-family: 'Roboto', sans-serif;
        color: white;
        font-size: 1.2rem;
        background-color: transparent;
        border: none;
        border-bottom: 1px solid dimgrey;
        padding-bottom: 1rem;

        &:focus {
          outline: none;
        }

        &::placeholder {
          color: rgb(180, 180, 180);
        }
      }

      textarea {
        resize: none;
        height: 10rem;
      }

      button {
        cursor: pointer;
        background-color: white;
        border: none;
        padding: 0.5rem 1.2rem 0.5rem 1.2rem;
        border-radius: 5rem;
        letter-spacing: 0.2rem;
      }
    }

    .form-field.button {
      display: grid;
      grid-template-columns: 2fr 3fr;
      height: 3rem;
      font-family: 'Roboto', sans-serif;
    }

    .contact-message {
      display: flex;
      align-items: center;
      margin-left: 2rem;
      font-family: 'Roboto', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;
      transition: opacity 0.3s ease;
    }

    .contact-message.success {
      color: green;
    }

    .contact-message.error {
      color: red;
    }

    .contact-message.sending {
      color: dimgrey;
    }

    button:disabled {
      opacity: 0.7;
      cursor: not-allowed;
    }
  }
}
