.demo-modal[hidden] { display: none; }
.demo-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(15, 29, 60, .58); }
.demo-dialog { position: relative; width: min(620px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow: auto; padding: 30px; border: 1px solid #d8e4fb; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(16, 42, 100, .25); }
.demo-dialog h2 { margin: 0 42px 8px 0; color: #162a5c; font-size: 26px; line-height: 1.25; }
.demo-dialog > p { margin-bottom: 20px; color: #65748b; font-size: 14px; }
.demo-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #162a5c; background: #eef4ff; font-size: 24px; cursor: pointer; }
.demo-form { display: grid; gap: 14px; }
.demo-form label { display: grid; gap: 6px; color: #162a5c; font-size: 13px; font-weight: 700; }
.demo-form input, .demo-form select, .demo-form textarea { width: 100%; padding: 11px 13px; border: 1px solid #cbd8ef; border-radius: 10px; color: #1f2937; background: #fff; font: inherit; font-size: 14px; }
.demo-form textarea { min-height: 90px; resize: vertical; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: 3px solid #dce8ff; border-color: #1f6bff; }
.demo-form .demo-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.demo-submit { min-height: 46px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #2f7dff, #0b53e0); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.demo-submit:disabled { opacity: .6; cursor: wait; }
.demo-status { min-height: 22px; margin: 0; color: #c63d50; font-size: 13px; }
.demo-status.success { color: #087c58; }
body.demo-open { overflow: hidden; }
@media (max-width: 580px) { .demo-dialog { padding: 24px 18px; } .demo-dialog h2 { font-size: 22px; } }
