/* ===========================================================================
 * CONTACT FORM
 *
 * The form inside the footer strip's expandable content. Self-contained
 * input / textarea / button styling with hover and transition states.
 * The :focus-visible outline lives in css/a11y.css so all accessibility-
 * specific rules are grouped together.
 * ===========================================================================
 */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  /* Legible face instead of inheriting the body's Redacted Script
     obfuscating font — the visitor (and you while testing) must be able
     to read what they type into the form. */
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: #f0f0f0;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(240, 240, 240, 0.25);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form button {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.6rem 2rem;
  /* Legible face instead of the body's Redacted Script obfuscating font,
     so the button label ("Send" / "Sending…" / "Sent!") stays readable —
     matches the input/textarea override above. */
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.6);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(240, 240, 240, 0.9);
}

/* Disabled during the AJAX round-trip ("Sending…") and the "Sent!"
   confirmation beat — see js/contactForm.js. */
.contact-form button:disabled {
  opacity: 0.55;
  pointer-events: none;
}
