@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

#contactForm
{
  font: 1rem "Work Sans", sans-serif;

  #contactFormGrid
  {
    input, textarea
    {
      border-radius: 0.5rem;
    }
  }

  #contactFormFooter
  {
    #submitButton
    {
      background-color: #666666;
      color: white;
      text-decoration: none;
      border-radius: 0.5rem;
      padding: 0.5rem;
      font: 1.2rem "Work Sans", sans-serif;
      transition-duration: 0.2s;

      cursor: pointer;
    }

    #submitButton:hover
    {
      background-color: #888888;
    }
  }
}

#contactFormNotes
{
  font: 1rem "Work Sans", sans-serif;
}

/* Desktop */
@media not (pointer: coarse), (min-width: 768px)
{
  #contactForm
  {
    #contactFormGrid
    {
      display: grid;
      grid-template-columns: auto 1fr;
      grid-row-gap: 1rem;
      grid-column-gap: 1rem;

      label
      {
        padding-top: 0.5rem;
      }

      input, textarea
      {
        padding: 0.5rem;
      }

      #contactFormLocationField
      {
        min-height: 3rem;
      }

      #contactFormMessageField
      {
        min-height: 8rem;
      }
    }

    #contactFormFooter
    {
      margin-top: 2rem;
      display: grid;
      grid-template-columns: 1fr auto;
    }
  }
}

/* Mobile */
@media (pointer: coarse) and (width < 768px)
{
  #contactForm
  {
    padding-left: 1rem;
    padding-right: 1rem;

    margin-bottom: 2rem;

    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 12rem);
  }

  #contactFormGrid
  {
    display: flex;
    flex-direction: column;

    label
    {
      color: #6d6d6d;
      font-size: 0.8rem;
    }

    input, textarea
    {
      margin-bottom: 0.5rem;
    }

    #contactFormMessageField
    {
      min-height: 8rem;
      field-sizing: content;
    }
  }

  #contactFormFooter
  {
    margin-top: auto;

    #contactFormNotes
    {
      color: #6d6d6d;
      font-size: 0.8rem;
    }

    #submitButton
    {
      margin-top: 0.5rem;
      width: 100%;
    }
  }
}
