/* Contact modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--off-black);
  line-height: 1;
}

.modal h2 {
  margin: 0 0 1.5rem;
  font-family: pacaembu, sans-serif;
  color: var(--dark-teal);
}

.modal label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--off-black);
}

.modal input,
.modal textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.modal button[type="submit"] {
  background: var(--dark-teal);
  color: var(--white);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.modal button[type="submit"]:hover { background: var(--light-teal); }

#contactSuccess { color: var(--dark-teal); }
#contactError { color: #c0392b; }
