/*
 * Zynthos Mechanic Core - form styles.
 * Selectors are wrapped in :where() so they have zero specificity: any theme
 * (including the Zynthos Mechanic theme) overrides them without a fight.
 */
:where(.zmc-sr) {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}
:where(.zmc-form) { display: grid; gap: 1rem; max-inline-size: 46rem; }
:where(.zmc-form .zmc-field) { display: grid; gap: 0.35rem; margin: 0; }
:where(.zmc-form .zmc-field--consent) { display: block; }
:where(.zmc-form label) { font-weight: 600; }
:where(.zmc-form .zmc-field--consent label) { font-weight: 400; }
:where(.zmc-form .zmc-opt) { font-weight: 400; opacity: 0.75; }
:where(.zmc-form input[type="text"], .zmc-form input[type="email"], .zmc-form input[type="tel"], .zmc-form input[type="date"], .zmc-form select, .zmc-form textarea) {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 2.75rem;
	padding: 0.5rem 0.75rem;
	font: inherit;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: #fff;
	color: #111;
}
:where(.zmc-form input[type="checkbox"]) { inline-size: 1.25rem; block-size: 1.25rem; vertical-align: middle; }
:where(.zmc-form :focus-visible, .zmc-btn:focus-visible) { outline: 3px solid #0b5fff; outline-offset: 2px; }
:where(.zmc-field-row) { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
:where(.zmc-fieldset) { border: 1px solid currentColor; border-radius: 4px; margin: 0; padding: 0.75rem 1rem; }
:where(.zmc-fieldset legend) { font-weight: 600; padding-inline: 0.25rem; }
:where(.zmc-checklist) { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
:where(.zmc-field__help) { font-size: 0.9em; opacity: 0.85; }
:where(.zmc-field__error) { font-weight: 700; border-inline-start: 4px solid currentColor; padding-inline-start: 0.5rem; }
:where(.zmc-form .has-error input, .zmc-form .has-error select, .zmc-form .has-error textarea) { border-width: 3px; }
:where(.zmc-form__errors, .zmc-form__status:not(:empty), .zmc-form__done) { border: 2px solid currentColor; border-radius: 4px; padding: 0.75rem 1rem; margin-block-end: 1rem; }
:where(.zmc-form__expect) { font-weight: 700; margin: 0; }
:where(.zmc-form__privacy, .zmc-form__required-note) { font-size: 0.9em; margin: 0; }
:where(.zmc-form .zmc-btn, button.zmc-btn) {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: #14213d;
	border: 2px solid #14213d;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
}
:where(.zmc-form .zmc-btn:disabled) { opacity: 0.6; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
	:where(.zmc-form *) { transition: none !important; animation: none !important; }
}
