/* Shared by the demo and the ordinary contact form; native selects remain the fallback. */
[data-contact-form] [hidden],[data-contact-form] input[type=hidden]{display:none!important}
[data-contact-form].kfa-contact select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:48px;margin:0;padding:12px;border:1px solid #b4c0ae;border-radius:8px;background:#fff;color:#303e35;font:400 16px/1.5 var(--wp--preset--font-family--body,Manrope,Arial,sans-serif)}
[data-contact-form].kfa-contact label:not(.kfa-checkbox){margin:20px 0 8px}
[data-contact-form].kfa-contact>label[data-contact-name-label]{margin-top:0}
[data-contact-form].kfa-contact input[type=email]{margin-bottom:0}
:is(.kfa-demo-shell,[data-contact-form]) .kfa-demo-role-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:12px;border:1px solid #b4c0ae;border-radius:8px;background:#fff;color:#303e35;font:400 16px/1.5 var(--wp--preset--font-family--body,Manrope,Arial,sans-serif);text-align:left;cursor:pointer}
:is(.kfa-demo-shell,[data-contact-form]) .kfa-demo-role-toggle:hover{border-color:#708d70;background:#f7f9f4}
.kfa-demo-role-toggle[aria-invalid=true]{border-color:#9b3434}
.kfa-demo-role-chevron{flex:none;width:8px;height:8px;margin-right:3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.kfa-demo-role-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);overflow:auto;margin:0;padding:24px;border:1px solid #ffffffb3;border-radius:18px;background:rgba(252,251,247,.88);color:#303e35;box-shadow:0 20px 70px #17281b30;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);font:400 15px/1.5 var(--wp--preset--font-family--body,Manrope,Arial,sans-serif)}
.kfa-demo-role-dialog::backdrop{background:rgba(22,35,27,.16);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.kfa-demo-role-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.kfa-demo-role-dialog header h3{margin:0;color:#303e35;font:600 20px/1.35 var(--wp--preset--font-family--body,Manrope,Arial,sans-serif);letter-spacing:-.015em}
.kfa-demo-role-dialog .kfa-demo-role-close{display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:0;margin:-8px -8px -8px 0;padding:0;border:0;border-radius:8px;background:transparent;color:#435d4c;font:400 28px/1 var(--wp--preset--font-family--body,Manrope,Arial,sans-serif);cursor:pointer}
.kfa-demo-role-options{display:grid;gap:8px}
.kfa-demo-role-dialog .kfa-demo-role-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0;padding:12px 14px;border:1px solid #d5dfd0;border-radius:9px;background:rgba(255,255,255,.65);color:#303e35;font:400 15px/1.5 var(--wp--preset--font-family--body,Manrope,Arial,sans-serif);text-align:left;cursor:pointer}
.kfa-demo-role-dialog .kfa-demo-role-options button:hover,.kfa-demo-role-dialog .kfa-demo-role-options button[aria-pressed=true]{border-color:#708d70;background:#e8eee4}
.kfa-demo-role-dialog .kfa-demo-role-options button[aria-pressed=true]::after{content:'✓';color:#435d4c;font-weight:600}
.kfa-demo-role-dialog button:focus-visible{outline:2px solid #708d70;outline-offset:3px}
