/* contact.css */

/* —— Layout container —— */
.contact-container {
  max-width: 40rem;
  padding: 2rem 1rem;
  margin-inline: auto;
}

/* —— Typography —— */
.contact-heading {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-block-end: 1.5rem;
}

.contact-intro {
  color: #4b5563;      /* gray‑600 */
  margin-block-end: 1.5rem;
}

/* —— Flash message banner —— */
.flash-message {
  background-color: #d1fae5; /* emerald‑100 */
  border: 1px solid #6ee7b7; /* emerald‑300 */
  padding: 1rem;
  border-radius: 0.5rem;
  margin-block-end: 1.5rem;
}

/* —— Contact form —— */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  font-weight: 500;
  margin-block-end: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db; /* gray‑300 */
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
}

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

/* —— Submit button —— */
.contact-form button {
  background-color: #1f2937; /* gray‑800 */
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.contact-form button:hover {
  background-color: #111827; /* gray‑900 */
}

/* —— Accessibility helpers —— */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
