/* Page styles for contact. Moved verbatim from the inline <style> block of
   app/views/site/contact.view.php (php-wapi, git HEAD~1). Unlayered on purpose, exactly as
   the inline block was, so it keeps winning over the layered site styles. */


main {
  min-height: 75vh;
}

section {
  position: relative;

  & .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: -1;
  }

  .wrapper {
    width: min(1200px, 90%);
    margin-inline: auto;
  }
}

#header {
  isolation: isolate;
  --min-header-height: 145px;
  min-height: var(--min-header-height);
  background-color: black;

  & .wrapper {
    padding-block-start: calc(var(--min-header-height) * 0.8);
    padding-block-end: 4em;
    text-align: center;
    text-transform: uppercase;

    & h1 {
      font-size: 4rem;
      color: white;

      & span {
        color: #b8084b;
      }
    }

    & p {
      color: white;
      font-size: 1.2rem;
      margin-block-start: 2em;

      a {
        color: white;
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }
    }

    & nav {
      & ul {
        list-style: none;
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        gap: 0.3em;

        max-width: max-content;
        margin-inline: auto;

        & li {
          font-size: 1.2rem;
          font-weight: bold;
          color: #b8084b;

          &:not(:nth-child(1))::before {
            content: "-";
            color: white;
            margin-inline-end: 0.3em;
          }

          & a {
            text-decoration: none;
            color: white;

            &:hover {
              text-decoration: underline;
            }
          }
        }
      }
    }
  }
}

.page-heading {
  font-size: 1.8rem;
  text-transform: uppercase;
  font-weight: 600;

  & span {
    color: #b8084b;
  }
}

#contact-form {
  padding-block: 6em;

  & form {
    --width: 1200px;
    width: min(var(--width), 90%);
    margin-inline: auto;

    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1em;

    & input,
    & textarea,
    & button {
      padding: 1em 1.5em;
      font: inherit;
    }

    &>.c-1 {
      flex: 1 1 calc((var(--width) / 2) - 6em);
    }

    &>.c-full {
      flex: 2 1 var(--width);
    }

    & button {
      width: min(400px, 90%);
      max-width: 100%;
      cursor: pointer;
    }
  }
}
