/* WellSaid forms: contrast fixes for the shared Formidable style (contact form and feedback form).
   Defaults failed WCAG 1.4.3: error summary #b94a48 on #f2dede (3.9:1), success #468847 on #dff0d8 (3.8:1). */

.frm_style_formidable-style.with_frm_style {
	--error-bg: #fff;
	--error-border: #a4262c;
	--error-text: #a4262c;
	--success-bg-color: #fff;
	--success-border-color: #000;
	--success-text-color: #1a1a1a;
}

/* Links in field descriptions: theme lime fails contrast on white */
.frm_style_formidable-style .frm_description a {
	color: #1a1a1a;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Error summary links readable and underlined in both forms */
.frm_style_formidable-style.with_frm_style .frm_error_style ul li a {
	color: #1a1a1a;
	text-decoration: underline;
}

.frm_style_formidable-style.with_frm_style .frm_error_style {
	border-width: 2px;
	border-left-width: 8px;
}

/* Contact form specific below */

/* Links in descriptions: theme lime fails contrast on white */
#form_wellsaid-yhteydenotto .frm_description a {
	color: #1a1a1a;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

#form_wellsaid-yhteydenotto .frm_description a:hover {
	text-decoration-thickness: 2px;
}

/* Error summary: dark text on white, red border (was 3.9:1) */
#form_wellsaid-yhteydenotto .frm_error_style {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	background: #fff;
	color: #1a1a1a;
	border: 2px solid #a4262c;
	border-left-width: 8px;
	border-radius: 0;
}

#form_wellsaid-yhteydenotto .frm_error_style > span {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 700;
}

#form_wellsaid-yhteydenotto .frm_error_style ul {
	margin: 0 0 0 1.25rem;
	padding: 0;
	list-style: disc;
}

#form_wellsaid-yhteydenotto .frm_error_style a {
	color: #1a1a1a;
	text-decoration: underline;
}

/* Field error text (6.5:1 on white) */
#form_wellsaid-yhteydenotto .frm_error {
	color: #a4262c;
	font-weight: 600;
}

#form_wellsaid-yhteydenotto .frm_error_style:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

/* Success message: own colours regardless of the Formidable style (green on green fails) */
.frm_message .wsy-success {
	margin: 0;
	padding: 1.25rem 1.5rem;
	background: #fff;
	color: #1a1a1a;
	border: 2px solid #000;
	border-left: 8px solid #44d62c;
}

.frm_message .wsy-success p {
	margin: 0;
	color: #1a1a1a;
}
