/* ═══════════════════════════════════════════════════════════════════
   THORNWOOD STANDARD MODAL — static sites (canonical, 2026-09-14)
   Generated per-site by _infra/apply-modal.mjs; do not hand-edit a site's
   copy — change this template and re-run the applier.

   Mechanics live in js/site.js (PATTERNS/modal-form.html lineage): backdrop
   blur, spring-in card, Esc / click-outside / close button, scroll-lock,
   focus trap via `inert`, honeypot + load-time, in-modal success state.

   ⚠️ WHY EVERYTHING IS PIXELS AND SCOPED TO .jm-box
   The zeus theme's overrides.css caps every text input at `max-width:220px`
   and forces `font-size:18px !important`, and the theme sets a non-16px root
   font size — so rem sizing and unscoped .jm-input rules both lose. Pixel
   values scoped to .jm-box (plus !important on width/padding/font-size) are
   what make this render correctly on a zeus port. Learned on Jeff Adams.
═══════════════════════════════════════════════════════════════════ */
.jm-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(123, 105, 84, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.jm-backdrop.open { opacity: 1; pointer-events: all; }
.jm-box { position: relative; background: #fff; border-radius: 12px; width: 100%; max-width: 540px; padding: 36px 36px 30px; max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 24px 80px rgba(16, 20, 26, .38); transform: translateY(22px) scale(.97); opacity: 0; transition: transform .32s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
  font-family: 'Roboto', sans-serif; font-size: 15px; line-height: 1.5; color: #1f1f1f; text-align: left; letter-spacing: normal; text-transform: none; }
.jm-backdrop.open .jm-box { transform: translateY(0) scale(1); opacity: 1; }
.jm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.jm-eyebrow { display: block; font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #7b6954; margin-bottom: 6px; }
/* border/background reset matters: themes decorate their headings (LeBaron puts a
   `border-left: 5px solid` on every h2) and the modal title is an h2/h3. */
.jm-box .jm-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.15; color: #7b6954; margin: 0; padding: 0; border: 0; background: none; letter-spacing: normal; text-transform: none; text-align: left; }
.jm-box .jm-title::before, .jm-box .jm-title::after { content: none; display: none; }
.jm-box .jm-sub { font-family: 'Roboto', sans-serif; font-size: 15px; line-height: 1.55; color: #6f6a63; margin: 7px 0 0; padding: 0; border: 0; letter-spacing: normal; text-transform: none; }
.jm-close { flex: 0 0 auto; margin: -6px -8px 0 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: #6f6a63; border-radius: 50%; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.jm-close:hover, .jm-close:focus-visible { color: #7b6954; background: #f4eee6; }
.jm-close:focus-visible { outline: 2px solid #7b6954; outline-offset: 2px; }
.jm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .jm-grid { grid-template-columns: 1fr; } .jm-box { padding: 28px 22px 24px; border-radius: 10px; } }
.jm-field { margin-bottom: 16px; }
.jm-box .jm-field label { display: block; width: auto; max-width: none; float: none; font-family: 'Roboto', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7b6954; margin: 0 0 6px; line-height: 1.3; }
.jm-box .jm-field label span { color: #c0392b; }
.jm-box .jm-input { display: block; width: 100% !important; max-width: none !important; min-width: 0; margin: 0 !important; border: 1.5px solid #e0dad1; border-radius: 8px;
  padding: 12px 16px !important; font-size: 16px !important; line-height: 1.4; font-family: 'Roboto', sans-serif; font-weight: 400; color: #1f1f1f; background: #faf8f5;
  outline: none; box-shadow: none; height: auto; letter-spacing: normal; text-transform: none; -webkit-appearance: none; appearance: none; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.jm-box select.jm-input { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%237b6954' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 42px !important; }
.jm-box .jm-input:focus { border-color: #7b6954; box-shadow: 0 0 0 3px rgba(123, 105, 84, 0.18); background: #fff; }
.jm-box .jm-input::placeholder { color: #a3a8af; opacity: 1; font-size: 16px; }
.jm-box .jm-input:user-invalid { border-color: #c0392b; }
.jm-box textarea.jm-input { resize: vertical; min-height: 110px; line-height: 1.55; }
/* consent / opt-in checkbox row */
.jm-box .jm-check-row { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; }
.jm-box .jm-check-row input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #7b6954; cursor: pointer; }
.jm-box .jm-check-row label { display: block; margin: 0; font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: normal; text-transform: none; color: #6f6a63; cursor: pointer; }
.jm-box .jm-check-row label strong { color: #7b6954; font-weight: 600; }
.jm-box .jm-check-row label a { color: #7b6954; text-decoration: underline; }
.jm-box .jm-check-row label a:hover { color: #7b6954; }
.jm-box .jm-submit { display: block; width: 100%; background: #7b6954; color: #fff; font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 16px; border: 0; border-radius: 8px; cursor: pointer; margin-top: 6px; line-height: 1.2; max-width: none; height: auto; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.jm-box .jm-submit:hover { background: #635543; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(123, 105, 84, 0.22); }
.jm-box .jm-submit:active { transform: translateY(0); }
.jm-box .jm-submit:focus-visible { outline: 2px solid #7b6954; outline-offset: 3px; }
form.sending .jm-submit { opacity: .6; cursor: progress; transform: none; }
.jm-foot { text-align: center; font-family: 'Roboto', sans-serif; font-size: 13px; color: #6f6a63; margin: 14px 0 0; line-height: 1.5; }
.jm-foot a { color: #7b6954; font-weight: 600; text-decoration: none; }
.jm-foot a:hover { text-decoration: underline; }
/* status line (shared with the inline page forms) — quiet inline error in the modal */
.jm-form .form-status { display: none; margin: 0 0 12px; border: 0; padding: 0; text-align: left; font-size: 14px; font-weight: 500; background: none; }
.jm-form .form-status.err { display: block; color: #c0392b; }
.jm-form .form-status.ok { display: none; }
.jm-success { text-align: center; padding: 12px 0 4px; }
.jm-check { width: 58px; height: 58px; border-radius: 50%; background: #f4eee6; color: #7b6954; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.jm-success .jm-title { text-align: center; }
.jm-success .jm-sub { max-width: 380px; margin: 8px auto 0; text-align: center; }
.jm-done { max-width: 220px; margin: 22px auto 0; }
.jm-turnstile { display: flex; justify-content: center; margin: 0 0 14px; }
.jm-inline-ok { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #0db363; color: #fff; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 600; text-align: center; }
body.jm-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .jm-backdrop, .jm-box, .jm-submit, .jm-close, .jm-input { transition: none; } }
