.contact-modal-trigger {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.contact-modal-trigger:hover { color: var(--green, #304721); }

.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 32, 25, .62);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.contact-modal-backdrop.is-open { opacity: 1; visibility: visible; }

.contact-modal {
  position: relative;
  width: min(100%, 570px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  color: var(--ink, #192019);
  background: var(--cream, #f5f5ee);
  box-shadow: 0 24px 70px rgba(18, 27, 14, .28);
}

.contact-modal h2 { margin: 0 0 8px; font: 500 clamp(2rem, 5vw, 3.2rem)/1.05 'Playfair Display', Georgia, serif; letter-spacing: -.04em; }
.contact-modal-intro { margin: 0 0 26px; color: #687066; font-size: .98rem; }
.contact-modal-close { position: absolute; top: 12px; right: 16px; border: 0; color: inherit; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; }
.contact-modal-form { display: grid; gap: 15px; }
.contact-modal-form label { display: grid; gap: 6px; color: #52604e; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-modal-form input, .contact-modal-form textarea { width: 100%; border: 1px solid #b6c0a6; border-radius: 3px; padding: 12px 13px; color: var(--ink, #192019); background: #fff; font: 400 1rem/1.45 'DM Sans', sans-serif; }
.contact-modal-form textarea { min-height: 130px; resize: vertical; }
.contact-modal-form input:focus, .contact-modal-form textarea:focus { outline: 2px solid rgba(104, 121, 81, .4); outline-offset: 1px; }
.contact-modal-submit { justify-self: start; border: 0; padding: 13px 20px; color: #fff; background: var(--green, #304721); font: 700 .78rem 'DM Sans', sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.contact-modal-submit:disabled { opacity: .58; cursor: wait; }
.contact-modal-status { min-height: 1.4em; margin: 0; color: #52604e; font-size: .86rem; }
.contact-modal-status.is-error { color: #9a3e32; }
.contact-modal-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.contact-modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .contact-modal-backdrop { padding: 12px; }
  .contact-modal { max-height: calc(100vh - 24px); }
  .contact-modal-submit { width: 100%; }
}
