/* Fleet-standard modal (Thornwood / Dr. Blackhurst mechanics) in the zeus idiom:
   Cormorant Garamond titles, Open Sans body, navy #3c4856 / steel blue #5f7fa3 / cream #f7f4ee.
   Replaces the Bootstrap 4-alpha modal + Contact Form 7 markup from WordPress. */
.jm-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(44, 53, 64, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem; 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; font-size: 15px; line-height: 1.5; max-height: calc(100vh - 2.5rem); overflow-y: auto;
  box-shadow: 0 24px 80px rgba(20, 28, 38, .38); transform: translateY(22px) scale(.97); opacity: 0; transition: transform .32s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
  font-family: 'Open Sans', Arial, sans-serif; color: #3c4856; text-align: left; }
.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-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #5f7fa3; margin-bottom: 6px; }
.jm-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.15; color: #3c4856; margin: 0; letter-spacing: 0; text-transform: none; }
.jm-sub { font-size: 15px; line-height: 1.55; color: #6b7480; margin: 7px 0 0; }
.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: #8a8f97; border-radius: 50%; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.jm-close:hover, .jm-close:focus-visible { color: #3c4856; background: #f0eee8; }
.jm-close:focus-visible { outline: 2px solid #5f7fa3; 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-field label { display: block; width: auto; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #3c4856; margin: 0 0 6px; line-height: 1.3; }
.jm-field label span { color: #c0392b; }
.jm-box .jm-input { display: block; width: 100% !important; max-width: none !important; margin: 0 !important; border: 1.5px solid #e1dcd2; border-radius: 8px; padding: 12px 16px !important; font-size: 16px !important; line-height: 1.4; font-family: inherit; color: #2b3138; background: #faf9f6; outline: none; box-shadow: none; height: auto; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; -webkit-appearance: none; appearance: none; }
.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='%235f7fa3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px; padding-right: 2.6rem; }
.jm-box .jm-input:focus { border-color: #5f7fa3; box-shadow: 0 0 0 3px rgba(95, 127, 163, .18); background: #fff; }
.jm-box .jm-input::placeholder { color: #a3a8af; }
.jm-box .jm-input:user-invalid { border-color: #c0392b; }
.jm-box textarea.jm-input { resize: vertical; min-height: 110px; line-height: 1.55; }
.jm-submit { width: 100%; background: #3c4856; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 15px 16px; border: 0; border-radius: 8px; cursor: pointer; font-family: inherit; margin-top: 6px; line-height: 1.2;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.jm-submit:hover { background: #5f7fa3; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(60, 72, 86, .22); }
.jm-submit:active { transform: translateY(0); }
.jm-submit:focus-visible { outline: 2px solid #5f7fa3; outline-offset: 3px; }
form.sending .jm-submit { opacity: .6; cursor: progress; transform: none; }
.jm-foot { text-align: center; font-size: 13px; color: #6b7480; margin: 14px 0 0; }
.jm-foot a { color: #5f7fa3; font-weight: 600; text-decoration: none; }
.jm-foot a:hover { text-decoration: underline; }
/* status line reuses .form-status; in the modal it reads as a quiet inline error */
.jm-form .form-status { margin: 0 0 12px; border: 0; padding: 0; text-align: left; font-size: 14px; font-weight: 500; }
.jm-form .form-status.err { 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: #eef2f7; color: #5f7fa3; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.jm-success .jm-sub { max-width: 380px; margin: 8px auto 0; }
.jm-done { max-width: 220px; margin: 22px auto 0; display: block; }
body.jm-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .jm-backdrop, .jm-box, .jm-submit, .jm-close, .jm-input { transition: none; } }

/* Contact page inline form — same fields as the modal, laid into the theme's two-column rows */
.jm-inline .row { margin-left: -8px; margin-right: -8px; }
.jm-inline [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.jm-inline p { margin: 0 0 16px; }
.jm-inline .jm-input { background: #fff; }
.jm-inline-submit { width: auto; min-width: 200px; }
.jad-form:not(.jm-form) .form-status { margin: .75rem 0 0; }
/* theme selectors (.page-form input / textarea) outrank .jm-input — restate the treatment */
.post_content .jm-inline .jm-input, .post_content .jm-inline textarea.jm-input { width: 100% !important; max-width: none !important; border: 1.5px solid #e1dcd2; border-radius: 8px; padding: 12px 16px !important; font-size: 16px !important; background: #fff; box-shadow: none; height: auto; }
.post_content .jm-inline .jm-box .jm-input:focus { border-color: #5f7fa3; box-shadow: 0 0 0 3px rgba(95, 127, 163, .18); }
