/**
 * Formulare – Gärtnerei Klute
 *
 * Kontaktformular (Seite Kontakt) und Blumenabo (Blumen & Floristik),
 * beide Contact Form 7 mit Markup .klute-form (Setup-Skripte in content/).
 * Nach Figma: Felder 65px, Radius 20, rosa Rahmen, Beschriftung Bold 14px.
 */

/* ------------------------------------------------------------------ */
/* Grundgerüst                                                         */
/* ------------------------------------------------------------------ */

.vc_row.row-blumenabo {
	margin-top: var(--klute-section-space);
}

.klute-form {
	margin-top: 68px;
}

.klute-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.klute-form__row + .klute-form__row {
	margin-top: 20px;
}

.klute-form__row.is-full {
	grid-template-columns: minmax(0, 1fr);
}

.klute-form__field {
	display: block;
	color: var(--klute-green);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.8;
}

.klute-form__field .wpcf7-form-control-wrap {
	position: relative;
	display: block;
	margin-top: 12px;
}

.wpcf7 .klute-form input:not([type=submit]):not([type=checkbox]),
.wpcf7 .klute-form select,
.wpcf7 .klute-form textarea {
	display: block;
	width: 100%;
	height: 65px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 30px;
	border: 1px solid var(--klute-rose);
	border-radius: 20px;
	background-color: #fff;
	color: var(--klute-green);
	font-family: Montserrat, sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.8;
	-webkit-appearance: none;
	appearance: none;
}

.wpcf7 .klute-form textarea {
	height: 160px;
	padding-top: 17px;
	padding-bottom: 17px;
	resize: vertical;
}

.wpcf7 .klute-form select {
	padding-right: 70px;
	cursor: pointer;
}

.klute-form ::placeholder {
	color: var(--klute-green);
	opacity: 1;
}

.wpcf7 .klute-form input:focus,
.wpcf7 .klute-form select:focus,
.wpcf7 .klute-form textarea:focus {
	border-color: var(--klute-green);
	outline: 1px solid var(--klute-green);
}

/* Pfeil im Auswahlfeld */
.klute-form__select .wpcf7-form-control-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 27px;
	height: 27px;
	background: url("../img/icon-auswahl.svg") center / 27px 27px no-repeat;
	transform: translateY(-50%) rotate(90deg);
	pointer-events: none;
}

.klute-form__heading {
	margin: 33px 0 18px;
	color: var(--klute-rose);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 42px;
}

.klute-design .klute-form .klute-form__info {
	margin: 36px 0 0;
	font-style: italic;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.6;
}

/* Hinweis in der Beschriftung, z. B. "(Pflichtfeld bei Lieferung)" */
.klute-form__hint {
	font-weight: 400;
	font-size: 12px;
}

/* Einwilligung: Checkbox nach Figma (31px, rosa Rahmen, grüner Haken) */
.klute-form__consent {
	margin-top: 39px;
}

.klute-form__consent .wpcf7-list-item {
	margin: 0;
}

.klute-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	cursor: pointer;
}

.wpcf7 .klute-form__consent input[type=checkbox] {
	flex: 0 0 auto;
	width: 31px;
	height: 31px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--klute-rose);
	border-radius: 3px;
	background: #fff center / 18px 18px no-repeat;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.wpcf7 .klute-form__consent input[type=checkbox]:checked {
	border-color: var(--klute-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='%23256C4F' stroke-width='2'/%3E%3C/svg%3E");
}

.wpcf7 .klute-form__consent input[type=checkbox]:focus-visible {
	outline: 2px solid var(--klute-green);
	outline-offset: 2px;
}

.klute-form__consent .wpcf7-list-item-label {
	padding-top: 2px;
	color: var(--klute-green);
	font-family: Montserrat, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
}

.klute-form__consent a,
.klute-form__recaptcha a {
	color: inherit;
	font-size: inherit;
	text-decoration: underline;
}

.klute-design .klute-form .klute-form__recaptcha {
	margin: 14px 0 0 47px;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.6;
}

.klute-form__submit {
	margin-top: 39px;
}

.wpcf7 .klute-form input[type=submit].klute-button {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 16px 30px;
	border: 2px solid var(--klute-green);
	background-color: #fff;
	color: var(--klute-green);
	font-weight: 500;
	text-transform: none;
	cursor: pointer;
}

.wpcf7 .klute-form input[type=submit].klute-button:hover,
.wpcf7 .klute-form input[type=submit].klute-button:focus-visible {
	background-color: var(--klute-green);
	color: #fff;
}

.klute-form .wpcf7-not-valid-tip {
	margin: 6px 0 0;
}

.wpcf7:has(.klute-form) .wpcf7-response-output {
	margin: 24px 0 0;
}

@media screen and (max-width: 767px) {
	.klute-form {
		margin-top: 40px;
	}
	.klute-form__row {
		grid-template-columns: minmax(0, 1fr);
	}
	.wpcf7 .klute-form input:not([type=submit]):not([type=checkbox]),
	.wpcf7 .klute-form select,
	.wpcf7 .klute-form textarea {
		height: 56px;
		padding: 0 20px;
		font-size: 16px;
	}
	.wpcf7 .klute-form select {
		padding-right: 60px;
	}
	.wpcf7 .klute-form textarea {
		height: 140px;
		padding-top: 14px;
		padding-bottom: 14px;
	}
	.klute-form__consent .wpcf7-list-item-label {
		font-size: 14px;
	}
	.klute-design .klute-form .klute-form__recaptcha {
		margin-left: 0;
	}
}
