/*!
 * Physis Accessibility - WCAG 2.2 AA remediation styles.
 * Built against the Physis Capital Audit V2 sheet. Every rule maps to an
 * audit item; nothing else is touched.
 */

/* -------------------------------------------------------------------------
 * SC 2.4.7 Focus Visible - audit items 6, 14, 15 (Send buttons, Funding
 * Round / lead-investor comboboxes) plus every other interactive control,
 * so keyboard users always have a position indicator. The blue ring plus
 * white halo stays visible on light and dark backdrops. The unconditional
 * :focus (not only :focus-visible) on form controls matches how auditors
 * test (Tab AND programmatic focus).
 * --------------------------------------------------------------------- */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.wpcf7 .wpcf7-submit:focus,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible {
	outline: 3px solid #0b5fff !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #ffffff !important;
}

/* The theme sets its own !important outline-color (white) on the submit
 * button, which won the color while losing the style - leaving a white
 * ring on a white page. Pin every component of the ring explicitly. */
.wpcf7 input.wpcf7-submit:focus,
.wpcf7 input[type="submit"]:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline-style: solid !important;
	outline-width: 3px !important;
	outline-color: #0b5fff !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #ffffff !important;
}

@media (forced-colors: active) {
	.wpcf7 input:focus,
	.wpcf7 select:focus,
	.wpcf7 textarea:focus,
	a:focus-visible,
	button:focus-visible,
	[role="button"]:focus-visible {
		outline: 3px solid Highlight !important;
		box-shadow: none !important;
	}
}

/* Programmatic focus targets (skip-link destination) never paint a ring. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

/* -------------------------------------------------------------------------
 * SC 1.4.3 Contrast (Minimum) - audit item 16: the required-field asterisk
 * (.patchError) is pure #ff0000 on white, 4.0:1. #c20000 is 6.38:1 and
 * reads as the same red.
 * --------------------------------------------------------------------- */
.patchError {
	color: #c20000 !important;
}

/* -------------------------------------------------------------------------
 * SC 1.4.11 Non-text Contrast - audit item 17: the 'Key Investors' and
 * 'Brief Business Description' textareas carry Bootstrap's #ced4da border
 * (1.49:1). #767676 is 4.54:1 on white. Inputs already use #454545.
 * --------------------------------------------------------------------- */
.wpcf7 textarea,
.wpcf7 .form-control,
.wpcf7 select {
	border-color: #767676 !important;
}

/* -------------------------------------------------------------------------
 * SC 1.4.3 - audit item 28: Elementor accordion body text is #7a7a7a on
 * white, 4.29:1. #6a6a6a is 5.41:1 - visually indistinguishable.
 * --------------------------------------------------------------------- */
.elementor-tab-content,
.elementor-tab-content p {
	color: #6a6a6a !important;
}

/* -------------------------------------------------------------------------
 * SC 3.3.2 - audit item 10: the "* denotes mandatory fields" instruction
 * added to the Pitch form. Styled to sit quietly above the form.
 * --------------------------------------------------------------------- */
.ph-required-note {
	font-size: 0.9em;
	margin: 0 0 14px;
}

/* The theme transitions every property for 0.4s, so the focus ring faded
 * in slowly. Make the indicator appear the instant focus lands. */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
	transition: none !important;
}
