.klm-modal[hidden] { display: none !important; }
.klm-modal { --klm-white: #fff; --klm-charcoal: #27231e; --klm-muted: #746e65; --klm-border: #d8d1c6; --klm-gold: #987440; position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 12px; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }
.klm-modal__backdrop { position: absolute; inset: 0; background: rgba(27, 24, 20, .62); backdrop-filter: blur(3px); }
.klm-modal__dialog { position: relative; width: 680px; max-width: calc(100vw - 24px); max-height: min(700px, calc(100dvh - 24px)); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; box-sizing: border-box; background: var(--klm-white); color: var(--klm-charcoal); border: 1px solid rgba(151, 119, 70, .28); box-shadow: 0 28px 90px rgba(19, 16, 12, .3); }
.klm-modal__close { position: absolute; z-index: 2; top: 8px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #80663f; font: 300 34px/1 Arial, sans-serif; cursor: pointer; }
.klm-modal__close:focus-visible { outline: 2px solid var(--klm-gold); outline-offset: -3px; }
.klm-modal__heading { padding: 34px 42px 18px; }
.klm-modal__eyebrow { margin: 0 0 7px; color: var(--klm-gold); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.klm-modal__title { margin: 0; padding-right: 34px; color: var(--klm-charcoal); font-family: Georgia, "Times New Roman", serif; font-size: 33px; font-weight: 400; line-height: 1.12; }
.klm-modal__description { margin: 9px 0 0; color: var(--klm-muted); font-size: 14px; font-weight: 400; line-height: 1.5; }
.klm-form { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.klm-modal__content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 42px 18px; scrollbar-gutter: stable; }
.klm-form__field { min-width: 0; }
.klm-form__label { display: block; margin: 0 0 5px; color: #4f4942; font-size: 12px; font-weight: 600; line-height: 1.3; }
.klm-form input[type="text"], .klm-form input[type="tel"], .klm-form input[type="email"], .klm-form textarea { width: 100%; height: 48px; margin: 0; padding: 11px 14px; box-sizing: border-box; border: 1px solid var(--klm-border); border-radius: 0; background: var(--klm-white); color: var(--klm-charcoal); font: 400 15px/1.35 Arial, sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; }
.klm-form textarea { min-height: 78px; max-height: 120px; resize: vertical; }
.klm-form input:focus, .klm-form textarea:focus { border-color: var(--klm-gold); box-shadow: 0 0 0 3px rgba(152, 116, 64, .13); }
.klm-form__contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; margin-top: 12px; }
.klm-form__contacts--either { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 7px; }
.klm-form__or { align-self: center; justify-self: center; padding-top: 17px; color: #9b948b; font: italic 12px/1 Georgia, serif; }
.klm-form__cities { margin: 12px 0 0; padding: 0; border: 0; }
.klm-form__cities legend { margin: 0 0 8px; padding: 0; color: #4d4740; font-size: 12px; font-weight: 600; line-height: 1.4; }
.klm-form__city-options { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 26px; }
.klm-form__city-options label, .klm-form__check { display: flex; gap: 9px; align-items: flex-start; color: #5d574f; font: 400 12px/1.45 Arial, sans-serif; cursor: pointer; }
.klm-form__check { margin-top: 10px; }
.klm-form input[type="radio"], .klm-form input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--klm-gold); }
.klm-form__check a { color: #745429; font-weight: 600; text-decoration: underline !important; text-underline-offset: 2px; }
.klm-form__check a:focus-visible { outline: 2px solid var(--klm-gold); outline-offset: 2px; }
.klm-form__error { display: block; min-height: 0; margin-top: 3px; color: #a13f36; font-size: 11px; }
.klm-form__error:not(:empty) { min-height: 14px; }
.klm-modal__actions { position: relative; z-index: 1; padding: 12px 42px 24px; background: var(--klm-white); border-top: 1px solid #ece7df; box-shadow: 0 -8px 20px rgba(39, 35, 30, .035); }
.klm-form__status { min-height: 16px; margin-bottom: 7px; color: #625c54; font-size: 12px; line-height: 1.35; }
.klm-form__status[data-state="success"] { color: #346747; }
.klm-form__status[data-state="error"] { color: #a13f36; }
.klm-form__submit { width: 100%; min-height: 48px; padding: 12px 22px; border: 1px solid var(--klm-gold); border-radius: 0; background: var(--klm-gold); color: var(--klm-white); font: 700 13px/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.klm-form__submit:hover, .klm-form__submit:focus-visible { background: #76562d; }
.klm-form__submit:focus-visible { outline: 2px solid var(--klm-charcoal); outline-offset: 2px; }
.klm-form__submit:disabled { cursor: wait; opacity: .6; }
.klm-form__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.klm-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body.klm-modal-open { overflow: hidden; }
@media (max-width: 760px) {
    .klm-modal { padding: 0; }
    .klm-modal__dialog { width: 95vw; max-width: 95vw; max-height: 100dvh; }
    .klm-modal__heading { padding: max(28px, env(safe-area-inset-top)) 18px 15px; }
    .klm-modal__title { font-size: clamp(27px, 8vw, 32px); }
    .klm-modal__description { font-size: 13px; }
    .klm-modal__content { padding: 2px 18px 16px; }
    .klm-form__contacts, .klm-form__contacts--either { grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }
    .klm-form__or { display: none; }
    .klm-form__city-options { gap: 8px 22px; }
    .klm-form input[type="text"], .klm-form input[type="tel"], .klm-form input[type="email"] { height: 52px; }
    .klm-form textarea { min-height: 76px; }
    .klm-modal__actions { padding: 10px 18px max(16px, env(safe-area-inset-bottom)); }
    .klm-form__submit { min-height: 52px; }
}
@media (max-height: 600px) {
    .klm-modal__heading { padding-top: 22px; padding-bottom: 12px; }
    .klm-modal__title { font-size: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
    .klm-modal__dialog { animation: klm-modal-in .18s ease-out; }
    @keyframes klm-modal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
