/* Native modal provides keyboard focus containment and Escape to close. */
.demo-dialog-open { overflow: hidden; }
.demo-dialog { position: fixed; inset: 0; margin: auto; width: min(720px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 33px 36px 30px; border: 1px solid #ffffffed; border-radius: 25px; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(140deg, #fafcff, #eef5fff5); box-shadow: inset 0 1px 0 #fff, 0 30px 100px #102f6240; }
.demo-dialog::backdrop { background: #16365866; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.demo-dialog [hidden] { display: none !important; }
.demo-dialog-close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 33px; height: 33px; padding: 7px; border: 1px solid #dce6f2; border-radius: 50%; background: #ffffff9c; color: #69809c; }
.demo-dialog-close svg { width: 19px; height: 19px; }
.demo-dialog-close:hover { background: #fff; color: #0867db; }
.demo-dialog-heading { margin-bottom: 23px; padding-right: 20px; }
.demo-dialog-heading h2 { font-size: 28px; margin: 9px 0 8px; }
.demo-dialog-heading p { color: #6d819b; font-size: 12px; line-height: 1.9; }
.demo-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.demo-form-grid label { display: block; font-size: 12px; color: #526c8b; font-weight: 500; }
.demo-form-grid label > span { color: #1176de; }
.demo-form-grid #demo-email-label { color: inherit; }
.demo-form-grid #demo-license-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.demo-form-grid :is(input, textarea, select) { display: block; width: 100%; margin: 7px 0 0; padding: 11px 13px; border: 1px solid #d6e3f2; border-radius: 9px; background: #ffffffcb; color: #223d61; font: 13px/1.6 var(--font); outline: none; transition: border-color .15s, box-shadow .15s; }
.demo-form-grid :is(input, select) { min-height: 44px; }
.demo-form-grid textarea { resize: vertical; min-height: 90px; max-height: 230px; }
.demo-form-grid :is(input, textarea)::placeholder { color: #96a4b7; font-weight: 400; }
.demo-form-grid :is(input, textarea, select):focus { border-color: #6ca9ee; box-shadow: 0 0 0 3px #0b73df12; background-color: #fff; }
.demo-form-grid :is(input, textarea, select):disabled { opacity: .7; }
.demo-form-full { grid-column: 1 / -1; }
.demo-quote-context { padding: 12px 14px; border: 1px solid #cfdef1; border-radius: 9px; background: #e8f1fc80; color: #526c8b; font-size: 12px; }
.demo-quote-context > span { font-weight: 600; }
.demo-quote-context > p { margin-top: 6px; max-height: 144px; overflow-y: auto; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.8; }
.demo-quote-context input { display: none; }
.demo-form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.demo-form-purpose { margin: 15px 0 17px; color: #8192a7; font-size: 10px; line-height: 1.8; }
.demo-form-purpose a { color: #4679af; white-space: nowrap; }
.demo-form-status { padding: 10px 13px; margin: 0 0 16px; border-radius: 8px; background: #fff1eb; border: 1px solid #f3d3c4; color: #975330; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.demo-form-submit { width: 100%; min-height: 46px; font-size: 14px; }
.demo-form-success { text-align: center; padding: 30px 15px; }
.demo-success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 23px; border: 1px solid #fff; border-radius: 50%; background: #e0f4ee; color: #138967; font-size: 29px; }
.demo-form-success h3 { font-size: 26px; margin-bottom: 14px; }
.demo-form-success p { color: #6a809b; line-height: 1.95; font-size: 14px; }
.demo-form-success .button { margin-top: 27px; min-width: 160px; }
.demo-form-purpose a:focus-visible { outline: 3px solid #5a9ded; outline-offset: 5px; border-radius: 5px; }
@media (max-width: 540px) {
  .demo-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 27px 22px 23px; border-radius: 20px; }
  .demo-dialog-close { top: 17px; right: 16px; }
  .demo-dialog-heading { margin-bottom: 20px; }
  .demo-dialog-heading h2 { font-size: 25px; }
  .demo-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .demo-form-grid :is(input, textarea, select) { font-size: 16px; padding: 10px 12px; }
  .demo-form-grid select { padding-right: 44px; }
  .demo-form-purpose { font-size: 9px; }
}
@media (forced-colors: active) {
  .demo-form-grid select { appearance: auto; -webkit-appearance: auto; background-image: none; }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .demo-dialog { background: Canvas; }
  .demo-dialog::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.demo-dialog .demo-kicker { display: inline-block; color: var(--blue); font-size: 12px; font-weight: 650; letter-spacing: .075em; }
