/* Tu Felix Austria – Formulare (Contact Form 7). Wird nur auf Seiten mit Formular geladen. */

.tfa-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem 2rem;
}

@media (min-width: 48rem) {
	.tfa-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tfa-form > p {
	margin: 0;
}

.tfa-form__full {
	grid-column: 1 / -1;
}

.tfa-form label {
	display: block;
}

.tfa-form__label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.8;
}

.tfa-form :where(input[type="text"], input[type="email"], input[type="tel"]) {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--wp--custom--min-target);
	margin: 0;
	padding: 0.5rem 0;
	border: 0;
	border-bottom: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.45);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	transition: border-color 0.3s ease;
}

.tfa-form :where(input[type="text"], input[type="email"], input[type="tel"]):focus {
	border-bottom-color: var(--wp--preset--color--gruen);
}

.tfa-form .wpcf7-not-valid {
	border-bottom-color: var(--wp--preset--color--rot);
}

.tfa-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.25rem;
	color: var(--wp--preset--color--rot);
	font-size: var(--wp--preset--font-size--x-small);
}

.tfa-form__consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.tfa-form__consent label {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
}

.tfa-form__consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.125rem 0 0;
	accent-color: var(--wp--preset--color--gruen);
}

.tfa-form .wpcf7-submit {
	appearance: none;
	min-height: var(--wp--custom--min-target);
	padding: 0.875rem 1.75rem;
	border: 0;
	border-radius: 0.25rem;
	background: var(--wp--preset--color--gruen);
	color: var(--wp--preset--color--creme-hell);
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.tfa-form .wpcf7-submit:hover,
.tfa-form .wpcf7-submit:focus-visible {
	background: var(--wp--preset--color--textgruen);
}

.tfa-form .wpcf7-spinner {
	margin: 0 0 0 1rem;
	vertical-align: middle;
}

.wpcf7 form.wpcf7-form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 0.75rem 1rem;
	border: var(--wp--custom--hairline) solid var(--wp--preset--color--rot);
	font-size: var(--wp--preset--font-size--x-small);
}

.wpcf7 form.wpcf7-form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--gruen);
}
