/* The site contact form (Contact Form 7, migration/cf7-form.txt) in the page and footer slots.
   Text and controls meet WCAG 1.4.3 and 1.4.11: on the dark consultation panel the labels are white
   and the error text is rose #F2B8C2 (9.74:1); on light backgrounds the error text is red (7.88:1). */
.jspa-form { display: grid; gap: 16px; margin-top: 10px; font-family: var(--wp--preset--font-family--body); }
.jspa-form p { margin: 0; }
.jspa-form label { display: grid; gap: 6px; }
.jspa-form__label { font-size: 14px; font-weight: 500; line-height: 1.3; }
.jspa-form__req { font-weight: 400; opacity: 0.85; }
.jspa-form__hint { font-size: 13px; line-height: 1.45; opacity: 0.85; }
.jspa-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.jspa-form__address { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.jspa-form__address legend { padding: 0; margin-bottom: 4px; }
.jspa-form__count { font-size: 12px; opacity: 0.85; margin-top: -8px !important; }
/* The confidentiality notice above the message box: a red rule at the left, so it reads as a notice. */
.jspa-form__notice { font-size: 14px; line-height: 1.45; padding: 8px 0 8px 12px; border-left: 3px solid var(--wp--preset--color--red); }
.faq-split__form .jspa-form__notice { border-left-color: var(--jspa-link-on-dark); }
.jspa-form input:not([type="submit"]),
.jspa-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid #8a8f93;
	border-radius: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 15px;
}
.jspa-form textarea { min-height: 110px; resize: vertical; }
.jspa-form input:focus-visible,
.jspa-form textarea:focus-visible { outline: 2px solid var(--wp--preset--color--red); outline-offset: 1px; }
.jspa-form ::placeholder { color: #6b7174; }
.jspa-form .wpcf7-form-control-wrap { display: block; }
.jspa-form__submit,
.jspa-form .wpcf7-submit {
	width: 100%;
	padding: 14px 20px;
	border: 1px solid var(--wp--preset--color--red);
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--button);
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}
.jspa-form .wpcf7-submit:is(:hover, :focus-visible) { background: var(--wp--preset--color--white); color: var(--wp--preset--color--red); }
.jspa-form .wpcf7-not-valid-tip { color: var(--wp--preset--color--red); font-size: 13px; margin-top: 4px; }
.jspa-form .wpcf7-response-output { margin: 0 !important; padding: 10px 14px !important; font-size: 14px; }
.jspa-form .wpcf7-spinner { display: none; }
.jspa-form .wpcf7-turnstile:empty { display: none; }

/* On the dark consultation panel. */
.faq-split__form .jspa-form { color: var(--wp--preset--color--white); }
.faq-split__form .jspa-form .wpcf7-not-valid-tip { color: var(--jspa-link-on-dark); }
.faq-split__form .jspa-form input:focus-visible,
.faq-split__form .jspa-form textarea:focus-visible { outline-color: var(--jspa-link-on-dark); }

/* The phone and email links shown until the form exists. */
.jspa-form-fallback { font-family: var(--wp--preset--font-family--body); font-size: 18px; line-height: 1.6; }
.jspa-form-fallback a { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767.98px) {
	.jspa-form__row { grid-template-columns: 1fr; }
}
