/* ===========================================
   CONTACT MODAL
   Site-wide modal opened from the nav "Contact" button
   and any element with data-modal-open="contact-modal".
   Behavior lives in scripts/site.js (initContactModal).
   =========================================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  /* The overlay is the scroll container, so a wheel or trackpad anywhere on
     screen scrolls the form, not only with the pointer over the dialog. The
     dialog centres with auto margins and grows past the viewport freely. */
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.contact-modal.is-open {
  display: flex;
}
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  /* Visual only. Wheel and clicks fall through to the overlay, which is the
     scroll container and closes on a click outside the dialog (site.js). */
  pointer-events: none;
  background: rgba(11, 48, 48, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalBackdropIn 220ms var(--ease-out);
}
.contact-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: var(--white);
  padding: 56px 56px 48px;
  box-shadow: 0 30px 80px rgba(11, 48, 48, 0.25);
  animation: modalDialogIn 260ms var(--ease-out);
}
@keyframes modalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalDialogIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border: 0;
  color: var(--teal);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  border-radius: 50%;
}
.contact-modal-close:hover {
  color: var(--white);
  background: var(--teal);
  transform: scale(1.05);
}
.contact-modal-close:focus { outline: none; }
.contact-modal-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.contact-modal-close svg {
  width: 16px;
  height: 16px;
}
.contact-modal-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.contact-modal-dialog h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--teal);
  margin-bottom: 12px;
}
.contact-modal-intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--teal-60);
  margin-bottom: 28px;
}
.contact-modal-intro a {
  color: var(--orange);
  font-weight: 600;
}
.contact-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.contact-modal-form label em {
  font-style: normal;
  font-weight: 400;
  color: var(--teal-muted);
  text-transform: none;
  letter-spacing: 0;
}
.contact-modal-form input,
.contact-modal-form textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal);
  background: var(--off-white);
  border: 1px solid transparent;
  border-bottom: 1px solid var(--teal-15);
  padding: 12px 14px;
  transition: border-color 160ms ease, background 160ms ease;
  width: 100%;
}
.contact-modal-form input:focus,
.contact-modal-form textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
  background: var(--white);
  border-color: var(--teal-15);
}
.contact-modal-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.contact-modal-submit {
  align-self: flex-start;
  margin-top: 8px;
  background: var(--orange);
  color: var(--white);
  border: 0;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease;
}
.contact-modal-submit:hover {
  background: var(--orange-hover);
}
.contact-modal-consent {
  border: 0;
  margin: 4px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--teal-15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-modal-consent legend {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 0;
  margin-bottom: 4px;
}
.contact-modal-form .contact-modal-consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal);
  cursor: pointer;
}
.contact-modal-consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}
.contact-modal-consent-check a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 160ms ease;
}
.contact-modal-consent-check a:hover {
  color: var(--orange-hover);
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .contact-modal-dialog { padding: 48px 24px 32px; }
  .contact-modal-row { grid-template-columns: 1fr; }
}
/* Short viewports (landscape phones, small laptops): less chrome around
   the form so more of it fits before scrolling. */
@media (max-height: 640px) {
  .contact-modal { padding: 12px; }
  .contact-modal-dialog { padding: 40px 32px 32px; }
}
