/**
 * Special Needs Group — Contact Form 7
 * Aligns CF7 UI with theme tokens (navy / cyan / Poppins / pill CTAs).
 * Covers table-based legacy forms (e.g. Request Information) and stacked forms.
 */

/* -------------------------------------------------------------------------- */
/* Wrapper                                                                    */
/* -------------------------------------------------------------------------- */

.wpcf7 {
	font-family: var(--incuca-font-family, Poppins, sans-serif);
	color: var(--ink, #10222f);
	max-width: 100%;
}

.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.wpcf7-form p {
	margin: 0 0 0.75rem;
}

.wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Legacy table layout (label | field)                                        */
/* -------------------------------------------------------------------------- */

.wpcf7-form > table,
.wpcf7 form table,
.main-pagina .editorial-content .wpcf7 table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0.5rem 0 0;
	border: none;
	background: transparent;
}

.wpcf7-form > table td,
.wpcf7 form table td,
.main-pagina .editorial-content .wpcf7 table td,
.main-pagina .editorial-content .wpcf7 table th {
	border: none;
	padding: 0.65rem 0;
	vertical-align: middle;
	background: transparent;
	color: inherit;
}

.wpcf7-form > table tr td:first-child,
.wpcf7 form table tr td:first-child,
.main-pagina .editorial-content .wpcf7 table tr td:first-child {
	width: 11rem;
	max-width: 36%;
	padding-right: 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink, #10222f);
	white-space: nowrap;
}

.wpcf7-form > table tr td:first-child p,
.wpcf7-form > table tr td:first-child div,
.wpcf7 form table tr td:first-child p,
.wpcf7 form table tr td:first-child div {
	margin: 0;
	font-weight: inherit;
	color: inherit;
}

.wpcf7-form > table tr td:last-child,
.wpcf7 form table tr td:last-child {
	width: auto;
}

.wpcf7-form > table tr td[valign="top"],
.wpcf7 form table tr td[valign="top"] {
	vertical-align: top;
	padding-top: 1rem;
}

@media (max-width: 640px) {
	.wpcf7-form > table,
	.wpcf7 form table,
	.main-pagina .editorial-content .wpcf7 table,
	.wpcf7-form > table tbody,
	.wpcf7 form table tbody,
	.wpcf7-form > table tr,
	.wpcf7 form table tr,
	.wpcf7-form > table td,
	.wpcf7 form table td {
		display: block;
		width: 100% !important;
		max-width: 100%;
	}

	.wpcf7-form > table tr td:first-child,
	.wpcf7 form table tr td:first-child,
	.main-pagina .editorial-content .wpcf7 table tr td:first-child {
		padding-right: 0;
		padding-bottom: 0.35rem;
		white-space: normal;
	}

	.wpcf7-form > table tr td:last-child,
	.wpcf7 form table tr td:last-child {
		padding-top: 0;
		padding-bottom: 1rem;
	}
}

/* -------------------------------------------------------------------------- */
/* Fields: text, email, tel, url, number, date, textarea, select              */
/* -------------------------------------------------------------------------- */

.wpcf7 input.wpcf7-form-control:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.wpcf7 textarea.wpcf7-form-control,
.wpcf7 select.wpcf7-form-control {
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 0.95rem;
	border: 1px solid var(--line, #d7e3ec);
	border-radius: 12px;
	background-color: #fff;
	color: var(--ink, #10222f);
	font-family: var(--incuca-font-family, Poppins, sans-serif);
	font-size: 0.95rem;
	line-height: 1.4;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.wpcf7 select.wpcf7-form-control {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23004b8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 1rem;
	cursor: pointer;
}

.wpcf7 textarea.wpcf7-form-control {
	min-height: 10rem;
	resize: vertical;
}

.wpcf7 input.wpcf7-form-control:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.wpcf7 textarea.wpcf7-form-control:focus,
.wpcf7 select.wpcf7-form-control:focus {
	outline: none;
	border-color: var(--cyan, #00aedb);
	box-shadow: 0 0 0 3px rgba(0, 174, 219, 0.2);
}

.wpcf7 input.wpcf7-form-control::placeholder,
.wpcf7 textarea.wpcf7-form-control::placeholder {
	color: var(--slate, #3d5468);
	opacity: 0.7;
}

/* Validation state */
.wpcf7 .wpcf7-not-valid {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #b91c1c;
	line-height: 1.35;
}

/* -------------------------------------------------------------------------- */
/* Checkbox / radio                                                           */
/* -------------------------------------------------------------------------- */

.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio,
.wpcf7 .wpcf7-acceptance {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wpcf7 .wpcf7-list-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
}

.wpcf7 .wpcf7-list-item-label {
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--slate, #3d5468);
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	accent-color: var(--navy, #004b8d);
	flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Submit — matches custom-blocks/cta primary                                 */
/* -------------------------------------------------------------------------- */

.wpcf7 input.wpcf7-submit,
.wpcf7 button.wpcf7-submit,
.wpcf7 input[type="submit"].wpcf7-form-control,
.wpcf7 button[type="submit"].wpcf7-form-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
	width: auto;
	min-height: 3.25rem;
	padding: 0.875rem 1.75rem;
	border: none;
	border-radius: 9999px;
	background-color: var(--navy, #004b8d);
	background-image: none;
	color: #fff;
	font-family: var(--incuca-font-family, Poppins, sans-serif);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	box-shadow: var(--shadow-sng-2, 0 6px 24px rgba(2, 48, 87, 0.12));
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		color 0.15s ease,
		transform 0.15s ease,
		box-shadow 0.15s ease;
}

.wpcf7 input.wpcf7-submit:hover,
.wpcf7 button.wpcf7-submit:hover,
.wpcf7 input[type="submit"].wpcf7-form-control:hover,
.wpcf7 button[type="submit"].wpcf7-form-control:hover {
	background-color: var(--navy-deep, #023057);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-sng-3, 0 16px 48px rgba(2, 48, 87, 0.18));
}

.wpcf7 input.wpcf7-submit:focus-visible,
.wpcf7 button.wpcf7-submit:focus-visible {
	outline: 3px solid var(--focus, #2563eb);
	outline-offset: 2px;
}

.wpcf7 input.wpcf7-submit:disabled,
.wpcf7 button.wpcf7-submit:disabled,
.wpcf7 .wpcf7-submit.disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* Spinner next to submit */
.wpcf7 .wpcf7-spinner {
	margin-left: 0.75rem;
	vertical-align: middle;
}

/* -------------------------------------------------------------------------- */
/* Response / notices                                                         */
/* -------------------------------------------------------------------------- */

.wpcf7 .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.9rem 1.1rem;
	border-radius: 12px;
	border: 1px solid var(--line, #d7e3ec);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.45;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #86efac;
	background: #f0fdf4;
	color: #166534;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #fca5a5;
	background: #fef2f2;
	color: #991b1b;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: #fcd34d;
	background: #fffbeb;
	color: #92400e;
}

/* -------------------------------------------------------------------------- */
/* Captcha / Turnstile                                                        */
/* -------------------------------------------------------------------------- */

.wpcf7 .wpcf7-turnstile,
.wpcf7 .cf-turnstile,
.wpcf7 .wpcf7-recaptcha {
	margin: 0.75rem 0 1rem;
}

.wpcf7 #captcha {
	margin: 0.5rem 0;
	color: #b91c1c;
}
