/**
 * Publisher signup form — front-end overrides.
 *
 * Surface form-level (non-field) errors. The theme hides Formidable's
 * top-of-form error summary globally (variables.css: `.frm_error_style {
 * display: none }`), which silently swallows Everflow / anti-spam / general
 * submission errors — the form appears to just reload with no message.
 * Re-enable the summary, scoped to this form only, so every error is visible.
 */
#form_affiliatesignup .frm_error_style {
	display: block;
}

/**
 * Consent checkboxes: make the checked state clearly visible.
 *
 * Formidable renders these with `appearance: none` and draws the checkmark
 * near-white on a light-grey box, so a checked box looks blank — publishers
 * can't tell they've agreed. Mirror the theme's own accessible checkbox
 * (.register-today-form): a brand-green fill with a crisp white checkmark.
 */
#form_affiliatesignup .frm_checkbox input[type="checkbox"]:checked {
	/* !important is required: Formidable sets the checkbox background with
	   !important, which beats even an ID selector without it. A white SVG
	   checkmark is used instead of a rotated-border pseudo-element so it stays
	   crisp and well-proportioned at the checkbox's small size. */
	background-color: var(--color-green-coral) !important;
	border-color: var(--color-green-coral) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5 7 11.5 12 5.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 80% !important;
}
/* Hide Formidable's faint default checkmark; the SVG above replaces it. */
#form_affiliatesignup .frm_checkbox input[type="checkbox"]:checked::before {
	display: none !important;
}
