/**
 * Gravity Forms field and message colors.
 *
 * The support ticket form, from the Deque audit (2837433-2837435, 2837689,
 * 2837690, 2837692):
 *
 * - What a member types was #9ea0a4 on white, 2.62:1. Their own answers were
 *   the hardest text on the page to read, and it fails 1.4.3 at 4.5:1.
 * - Field borders were #e2e2e2 on white, 1.30:1. The border is the only thing
 *   showing where a field is, so 1.4.11 asks for 3:1 against what surrounds it.
 * - The error summary and the per-field messages are set here rather than left
 *   to the plugin's defaults, which only load once a submission has failed.
 *
 * Scoped to .gform_wrapper so nothing else on the sites is touched.
 *
 * Set as Avada's own variables rather than as colors on the fields. Avada
 * styles these through var(--form_text_color) / var(--form_border_color) from
 * a selector carrying four :not() clauses, which outranks anything reasonable
 * written here; feeding it different values changes the fields without an
 * !important fight, and keeps working if the theme reshuffles its selectors.
 */

.gform_wrapper {
	--form_text_color: #333;
	--form_border_color: #767676;
}

.gform_wrapper input[type="text"]::placeholder,
.gform_wrapper input[type="email"]::placeholder,
.gform_wrapper textarea::placeholder {
	/* 4.54:1 - placeholders are text too, and often the only hint of format. */
	color: #767676;
	opacity: 1;
}

/*
 * Error text: 7.5:1 on the pale red the plugin puts behind it, and it stays
 * readable on white where that background does not apply.
 */
.gform_wrapper .gform_submission_error,
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message,
.gform_wrapper .gfield_error .gfield_label {
	color: #a4121b;
}

/* The error state needs to be visible as more than a color change. */
.gform_wrapper .gfield_error input[type="text"],
.gform_wrapper .gfield_error input[type="email"],
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
	border-width: 2px;
	border-color: #a4121b;
}
