/* Contact page layout and form component. Shared palette and typography
   are supplied by styles/site.css. */
.contact-page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 96px 25px;
  overflow: hidden;
}

/* Blur only the image; keep the form and overlay sharp. */
.contact-page::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -2;
  pointer-events: none;
  background: url("../../assets/contact%20us%20background.jpeg") center / cover
    no-repeat;
  filter: blur(3px);
}

.contact-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgb(0 0 0 / 60%);
}

.contact-page header {
  position: absolute;
  left: 16px;
  top: 16px;
}

.contact-content {
  width: 100%;
  max-width: 620px;
}

.contact-content h1 {
  margin-bottom: 32px;
  text-align: center;
}

.form-fields {
  display: grid;
  gap: 18px;
}
.form-fields label {
  display: grid;
  gap: 8px;
  font-size: var(--size-p);
  line-height: 1.5;
}
.form-fields input,
.form-fields textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(6, 23, 34, 0.7);
  color: var(--color-text);
  font: inherit;
  font-size: var(--size-p);
}
.form-fields input {
  min-height: 48px;
}
.form-fields textarea {
  resize: vertical;
  min-height: 120px;
}
.form-fields input:focus-visible,
.form-fields textarea:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}
#send-button {
  margin-top: 20px;
}
#form-status {
  margin: 16px 0 0;
}
#form-status:empty {
  display: none;
}

@media (max-width: 800px) {
  .contact-page {
    padding: 80px 25px;
  }
  .contact-page::before {
    background-position: 24% center;
  }
  .contact-page header {
    left: 8px;
    top: 0;
  }
}

/* A direct calling option beneath the form. */
.contact-phone {
  margin: 28px 0 0;
  font-size: var(--size-h3);
  text-align: left;
}
.contact-phone a {
  white-space: nowrap;
  text-decoration: none;
}
