/* "Book your site visit" popup, carried over from the previous Trident Hills site. */
.contact-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  z-index: 99990; /* above the header, below the platform OTP modal (100000) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.contact-modal.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
body.modal-open { overflow: hidden; }
.contact-modal__backdrop { position: absolute; inset: 0; background: rgba(9, 20, 14, 0.72); }
.contact-modal__dialog {
  position: relative;
  width: min(100%, 920px);
  max-height: min(100vh - 2.5rem, 760px);
  overflow: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
}
.contact-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 80, 31, 0.08);
  color: #143321;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.contact-modal__content { display: grid; grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr); }
.contact-modal__intro { background: linear-gradient(160deg, #02501f 0%, #0d6a31 100%); color: #ffffff; padding: 2.5rem 2rem; }
.contact-modal__eyebrow {
  margin: 0 0 0.75rem;
  color: #ffffff;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font: 700 0.78rem/1.2 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.contact-modal__intro h2 {
  margin: 0;
  color: #ffffff;
  letter-spacing: normal;
  font: italic 500 clamp(2rem, 4vw, 3.2rem)/1.05 "Times New Roman", Georgia, serif;
}
.contact-modal__intro p { margin: 1rem 0 0; color: #ffffff; font: 400 1rem/1.7 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }
.contact-modal__intro .contact-meta p { margin-top: 0.5rem; }
.contact-modal__intro a { color: #ffffff; text-decoration: none; }
.contact-modal__intro a:hover { text-decoration: underline; }
.contact-modal__form { padding: 2.5rem 2rem 2rem; }
.contact-modal__field, .contact-modal__field-row { display: grid; gap: 0.45rem; }
.contact-modal__field + .contact-modal__field,
.contact-modal__field-row,
.contact-modal__field-row + .contact-modal__field { margin-top: 1rem; }
.contact-modal__field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-modal__field-row .contact-modal__field { margin-top: 0; }
.contact-modal__field label {
  margin: 0;
  color: #1b1b1b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font: 700 0.8rem/1.2 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.contact-modal__field input,
.contact-modal__field textarea {
  width: 100%;
  margin: 0;
  border: 1px solid #d8e1da;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #ffffff;
  color: #111111;
  font: 400 0.95rem/1.5 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.contact-modal__field textarea { resize: vertical; min-height: 132px; }
.contact-modal__submit {
  margin-top: 1.25rem;
  width: 100%;
  border: 1px solid #1f5c39;
  border-radius: 999px;
  background: #02501f;
  color: #ffffff;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font: 700 0.82rem/1 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
@media (max-width: 920px) {
  .contact-modal { padding: 0.75rem; }
  .contact-modal__dialog { border-radius: 20px; max-height: calc(100vh - 1.5rem); }
  .contact-modal__content { grid-template-columns: 1fr; }
  .contact-modal__intro, .contact-modal__form { padding: 1.5rem 1.25rem; }
  .contact-modal__field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-modal__field-row .contact-modal__field + .contact-modal__field { margin-top: 1rem; }
  .contact-modal__field input, .contact-modal__field textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .contact-modal__close { top: 0.6rem; right: 0.6rem; background: rgba(255, 255, 255, 0.18); color: #ffffff; }
}
