.wpcf7 .screen-reader-response {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
	word-break: normal !important;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

.wpcf7 form .wpcf7-response-output {
	margin: 2em 0.5em 1em;
	padding: 0.2em 1em;
	border: 2px solid #00a0d2; /* Blue */
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #46b450; /* Green */
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #dc3232; /* Red */
}

.wpcf7 form.spam .wpcf7-response-output {
	border-color: #f56e28; /* Orange */
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #ffb900; /* Yellow */
}

.wpcf7-form-control-wrap {
	position: relative;
}

.wpcf7-not-valid-tip {
	color: #dc3232; /* Red */
	font-size: 1em;
	font-weight: normal;
	display: block;
}

.use-floating-validation-tip .wpcf7-not-valid-tip {
	position: relative;
	top: -2ex;
	left: 1em;
	z-index: 100;
	border: 1px solid #dc3232;
	background: #fff;
	padding: .2em .8em;
	width: 24em;
}

.wpcf7-list-item {
	display: inline-block;
	margin: 0 0 0 1em;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
	content: " ";
}

.wpcf7-spinner {
	visibility: hidden;
	display: inline-block;
	background-color: #23282d; /* Dark Gray 800 */
	opacity: 0.75;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 100%;
	padding: 0;
	margin: 0 24px;
	position: relative;
}

form.submitting .wpcf7-spinner {
	visibility: visible;
}

.wpcf7-spinner::before {
	content: '';
	position: absolute;
	background-color: #fbfbfc; /* Light Gray 100 */
	top: 4px;
	left: 4px;
	width: 6px;
	height: 6px;
	border: none;
	border-radius: 100%;
	transform-origin: 8px 8px;
	animation-name: spin;
	animation-duration: 1000ms;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
	.wpcf7-spinner::before {
		animation-name: blink;
		animation-duration: 2000ms;
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes blink {
	from {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.wpcf7 [inert] {
	opacity: 0.5;
}

.wpcf7 input[type="file"] {
	cursor: pointer;
}

.wpcf7 input[type="file"]:disabled {
	cursor: default;
}

.wpcf7 .wpcf7-submit:disabled {
	cursor: not-allowed;
}

.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
	direction: ltr;
}

.wpcf7-reflection > output {
	display: list-item;
	list-style: none;
}

.wpcf7-reflection > output[hidden] {
	display: none;
}

/* Modern UI enhancement — keeps Contact Form 7 functionality unchanged. */
.wpcf7 {
	--wpcf7-ui-border: #d9dee7;
	--wpcf7-ui-border-focus: #4f46e5;
	--wpcf7-ui-text: #1f2937;
	--wpcf7-ui-muted: #6b7280;
	--wpcf7-ui-bg: #ffffff;
	--wpcf7-ui-soft: #f8fafc;
	--wpcf7-ui-danger: #dc2626;
	--wpcf7-ui-success: #15803d;
	--wpcf7-ui-radius: 12px;
	box-sizing: border-box;
	color: var(--wpcf7-ui-text);
}

.wpcf7 *,
.wpcf7 *::before,
.wpcf7 *::after {
	box-sizing: border-box;
}

.wpcf7 form > p {
	margin: 0 0 12px;
}

.wpcf7 form > p:last-of-type {
	margin-bottom: 0;
}

.wpcf7 form label {
	display: block;
	margin: 0 0 5px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--wpcf7-ui-text);
}

.wpcf7 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.wpcf7 textarea,
.wpcf7 select {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	padding: 8px 11px;
	border: 1px solid var(--wpcf7-ui-border);
	border-radius: var(--wpcf7-ui-radius);
	background: var(--wpcf7-ui-bg);
	color: var(--wpcf7-ui-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wpcf7 textarea {
	min-height: 105px;
	resize: vertical;
}

.wpcf7 select {
	cursor: pointer;
}

.wpcf7 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.wpcf7 textarea:hover,
.wpcf7 select:hover {
	border-color: #b9c1ce;
}

.wpcf7 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	border-color: var(--wpcf7-ui-border-focus);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: var(--wpcf7-ui-muted);
	opacity: .8;
}

.wpcf7 input[type="file"] {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border: 1px dashed var(--wpcf7-ui-border);
	border-radius: var(--wpcf7-ui-radius);
	background: var(--wpcf7-ui-soft);
	color: var(--wpcf7-ui-text);
	font: inherit;
	font-size: 14px;
}

.wpcf7 input[type="file"]::file-selector-button {
	margin-right: 10px;
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: #eef2ff;
	color: #3730a3;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 22px;
	border: 0;
	border-radius: var(--wpcf7-ui-radius);
	background: #4f46e5;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.18);
	transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, background-color .2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
	background: #4338ca;
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.24);
	transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:focus-visible,
.wpcf7 .wpcf7-submit:focus-visible {
	outline: 3px solid rgba(79, 70, 229, 0.22);
	outline-offset: 2px;
}

.wpcf7 form.submitting input[type="submit"],
.wpcf7 form.submitting .wpcf7-submit {
	opacity: .7;
	cursor: wait;
	transform: none;
}

.wpcf7 .wpcf7-list-item {
	margin: 0 14px 6px 0;
}

.wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: #4f46e5;
}

.wpcf7-not-valid {
	border-color: var(--wpcf7-ui-danger) !important;
}

.wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--wpcf7-ui-danger);
	font-size: 13px;
	line-height: 1.45;
}

.wpcf7 form .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 9px 11px;
	border-width: 1px;
	border-style: solid;
	border-radius: 10px;
	background: var(--wpcf7-ui-soft);
	font-size: 13px;
	line-height: 1.45;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: var(--wpcf7-ui-success);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #fecaca;
	background: #fef2f2;
	color: var(--wpcf7-ui-danger);
}

.wpcf7 form.spam .wpcf7-response-output {
	border-color: #fed7aa;
	background: #fff7ed;
	color: #c2410c;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #fde68a;
	background: #fffbeb;
	color: #a16207;
}

@media (max-width: 600px) {
	.wpcf7 form > p {
		margin-bottom: 10px;
	}

	.wpcf7 input[type="submit"],
	.wpcf7 .wpcf7-submit {
		width: 100%;
	}
}

@media (prefers-color-scheme: dark) {
	.wpcf7 {
		--wpcf7-ui-border: #3f4652;
		--wpcf7-ui-text: #e5e7eb;
		--wpcf7-ui-muted: #9ca3af;
		--wpcf7-ui-bg: #111827;
		--wpcf7-ui-soft: #18202d;
	}

	.wpcf7 input[type="file"]::file-selector-button {
		background: #252a44;
		color: #c7d2fe;
	}

	.wpcf7 form.sent .wpcf7-response-output {
		background: #10251a;
		color: #86efac;
	}

	.wpcf7 form.failed .wpcf7-response-output,
	.wpcf7 form.aborted .wpcf7-response-output {
		background: #2a1518;
		color: #fca5a5;
	}
}
