/* Biz-Ai-Forms front end. Minimal and theme-friendly: inherits fonts and colours. */
.bizf-wrap { margin: 1em 0; }
.bizf-fields { display: flex; flex-wrap: wrap; gap: 0 20px; }
.bizf-field { flex: 0 0 100%; margin: 0 0 .9em; min-width: 0; }
.bizf-w-half { flex-basis: calc(50% - 10px); } /* exact: two halves + the 20px gap = 100% */
@media (max-width: 600px) { .bizf-w-half { flex-basis: 100%; } }
.bizf-label { display: block; font-weight: 600; margin-bottom: .35em; color: inherit; }
.bizf-choice, .bizf-field legend { color: inherit; }
.bizf-wrap[style] { margin-left: auto; margin-right: auto; }
.bizf-align-center .bizf-label, .bizf-align-center legend, .bizf-align-center .bizf-help,
.bizf-align-center .bizf-error, .bizf-align-center .bizf-footer, .bizf-align-center.bizf-done { text-align: center; }
.bizf-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bizf-field input[type="text"], .bizf-field input[type="email"], .bizf-field input[type="tel"],
.bizf-field input[type="number"], .bizf-field select, .bizf-field textarea {
	width: 100%; max-width: 100%; box-sizing: border-box;
}
/* Autofilled fields: browsers paint their own (in dark mode semi-transparent) background,
 * which lets a photo behind the form show through. An inset shadow keeps them solid.
 * Sites with dark fields can set --bizf-field-bg and --bizf-field-text. */
.bizf-field input:-webkit-autofill, .bizf-field input:-webkit-autofill:hover, .bizf-field input:-webkit-autofill:focus,
.bizf-field textarea:-webkit-autofill, .bizf-field select:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--bizf-field-bg, #fff) inset !important;
	box-shadow: 0 0 0 1000px var(--bizf-field-bg, #fff) inset !important;
	-webkit-text-fill-color: var(--bizf-field-text, #1e1e1e) !important;
	caret-color: var(--bizf-field-text, #1e1e1e);
}
.bizf-field input:autofill, .bizf-field textarea:autofill, .bizf-field select:autofill {
	box-shadow: 0 0 0 1000px var(--bizf-field-bg, #fff) inset !important;
}
.bizf-choices { display: block; }
.bizf-choice { display: block; margin: .2em 0; font-weight: normal; }
.bizf-req { color: #b32d2e; }
.bizf-help { font-size: .9em; opacity: .8; margin: .3em 0 0; }
.bizf-error { color: #b32d2e; font-size: .9em; margin: .3em 0 0; }
.bizf-has-error input, .bizf-has-error select, .bizf-has-error textarea { border-color: #b32d2e; }
.bizf-errors { border-left: 4px solid #b32d2e; padding: .6em 1em; margin-bottom: 1em; background: rgba(179, 45, 46, .06); }
.bizf-done { border-left: 4px solid #2e7d32; padding: .6em 1em; background: rgba(46, 125, 50, .06); }
.bizf-heading { margin: .5em 0 .2em; }
.bizf-field[hidden], .bizf-cond-hidden { display: none !important; }
.bizf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.bizf-submit[aria-busy="true"] { opacity: .6; cursor: progress; }
