/*
 * Trust Rank Form Handler - front-end additions.
 * Only styles the elements the plugin adds (error box, live region) and the
 * busy/invalid states. The form's own design is untouched.
 */
form#b-fm .trkfh-live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

form#b-fm .trkfh-error {
	background: #fdeded;
	color: #a1181b;
	padding: 12px;
	border-radius: 12px;
	font-weight: 500;
}

form#b-fm .trkfh-error[hidden] {
	display: none;
}

/* Busy: keep the button focusable but visibly inactive. */
form#b-fm .b-btn[aria-disabled="true"] {
	opacity: 0.7;
	cursor: progress;
	transform: none;
	box-shadow: none;
}

form#b-fm [aria-invalid="true"] {
	border-color: #c62828;
	outline: 2px solid #c62828;
}

@media (prefers-reduced-motion: reduce) {
	form#b-fm .b-btn {
		transition: none;
	}
}
