/* Contact form + status pages.

   The original form styling came from the Everest Forms plugin CSS, which is
   removed in the clean build; this recreates a matching look using the theme
   palette (accent #0d54e5, body text #495057, link styles from zakra). */

.contact-form {
  max-width: 100%;
}

.contact-field {
  margin-bottom: 1.25rem;
}

.contact-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: #495057;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 3px;
  background: #fff;
  color: #212529;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #0d54e5;
  box-shadow: 0 0 0 2px rgba(13, 84, 229, 0.25);
}

.contact-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-field .required-note {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: normal;
}

/* Honeypot: off-screen and untouchable by keyboard users. */
.contact-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact-form button[type="submit"] {
  display: inline-block;
  background-color: #0d54e5;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 0.65rem 1.6rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus {
  background-color: #0a44ba;
}

.contact-form button[type="submit"]:focus-visible {
  outline: 2px solid #0d54e5;
  outline-offset: 2px;
}

/* Turnstile widget slot */
.contact-turnstile {
  margin-bottom: 1.25rem;
}

/* Privacy notice */
.contact-privacy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Success / error status pages served by the /api/contact function */
.contact-status-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #495057;
  background: #f7f8fa;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.contact-status {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  padding: 2rem 2.5rem;
  max-width: 34rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.contact-status h1 {
  color: #212529;
  margin-top: 0;
}

.contact-status ul {
  padding-left: 1.2rem;
}

.contact-status a {
  color: #0d54e5;
}
