.wdns-secure-form {
	--sf-mw-form: 600px;
	--sf-mw-elements: 600px;
}

.wdns-secure-form { max-width:var(--sf-mw-form); padding: 2rem 0; }

.wdns-secure-form LABEL,
.wdns-secure-form FIELDSET { display:inline-block; font-size:.85rem; width:100%;}

.wdns-secure-form INPUT,
.wdns-secure-form SELECT,
.wdns-secure-form TEXTAREA { display:block; }

.wdns-secure-form INPUT[type="radio"],
.wdns-secure-form INPUT[type="checkbox"] { display:inherit; margin:.25rem .25rem .25rem 0; }

.wdns-secure-form INPUT[type="file"] { border: none; font-size: inherit; padding-left: 0; }

.wdns-secure-form BUTTON[type="submit"] { display: block; margin-top: 2rem; border-radius: 3px; padding: .25rem .5rem; border: 1px solid #eee; background: transparent; }

.wdns-secure-form FIELDSET { display:inline-block; margin:.5rem 0; border:1px solid #eee; border-radius:3px; padding:0 1rem .5rem 1rem; }

.wdns-secure-form SELECT { font-size:1rem; width: 100%; max-width: var(--sf-mw-elements); }
.wdns-secure-form FIELDSET LEGEND { padding:0 .25rem; font-size:1rem; width: max-content; }

.wdns-secure-form TEXTAREA,
.wdns-secure-form INPUT:not([type=checkbox]):not([type=radio]) { width:100%; max-width:var(--sf-mw-elements); }

.wdns-secure-form-option { /*display:inline-block !important;  margin:.25rem .75rem 0 0; width: max-content !important;*/ }

.wdns-secure-form .mw25 { width:24.8%; margin-left:.1%; margin-right:.1%; max-width:var(--sf-mw-elements); }
.wdns-secure-form .mw33 { width:33.12%;   margin-left:.1%; margin-right:.1%; max-width:var(--sf-mw-elements); }
.wdns-secure-form .mw50 { width:49.8%; margin-left:.1%; margin-right:.1%; max-width:var(--sf-mw-elements); }
.wdns-secure-form .mw66 { width:66.4%;   margin-left:.1%; margin-right:.1%; max-width:var(--sf-mw-elements); }
.wdns-secure-form .mw75 { width:74.8%; margin-left:.1%; margin-right:.1%; max-width:var(--sf-mw-elements); }
.wdns-secure-form .mw100 { width:99.8%; margin-left:.1%; margin-right:.1%; max-width:var(--sf-mw-elements); }

.wdns-secure-form .d-high LABEL, .wdns-secure-form LABEL.d-high, .wdns-secure-form DIV.d-high { margin-top:1rem; margin-bottom:.5rem; }
.wdns-secure-form .d-higher LABEL, .wdns-secure-form LABEL.d-higher, .wdns-secure-form DIV.d-higher { margin-top:.5rem; margin-bottom:.5rem; }

.wdns-secure-form .d-inline LABEL { display: inline-block !important; margin: .25rem .75rem 0 0; width: max-content !important; }

.wdns-secure-form-message { margin:1rem 0 0 0; padding: .65rem .85rem; border: 1px solid transparent; border-radius: 3px; }
.wdns-secure-form-message:empty { display: none; }
.wdns-secure-form-message.is-success { color: #155724; background: #d4edda; border-color: #c3e6cb; }
.wdns-secure-form-message.is-info { color: #084298; background: #cfe2ff; border-color: #b6d4fe; }
.wdns-secure-form-message.is-warn { color: #664d03; background: #fff3cd; border-color: #ffecb5; }
.wdns-secure-form-message.is-failure { color: #842029; background: #f8d7da; border-color: #f5c2c7; }

/* Server-side validation: apply the state to the field wrapper, not the control. */
.wdns-secure-form .wdns-validation-error { border-color: #b42318; }
.wdns-secure-form label.wdns-validation-error,
.wdns-secure-form div.wdns-validation-error { color: #b42318; }
.wdns-secure-form .wdns-field-error-message { display:block; margin-top:.05rem; font-size:.875em; color:#b42318; line-height:1; padding-left:.125rem; }
