.zs-form-wrapper {
	position: relative;
	padding: 20px 60px;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(0, 55, 94, 0.08);
}

@media (max-width: 768px) {
	.zs-form-wrapper {
		padding: 20px 15px;
	}
}

/* Im Modus „Auto“ etwas mehr Abstand nach unten */
.zs-form-wrapper.zs-auto-height {
	padding-bottom: 40px;
}
.zs-form-wrapper h3 {
	color: #00375E;
	font-weight: 600;
}

.zs-form-wrapper {
	color: #00375E;
	font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.zs-form-wrapper .zs-step {
	display: none;
}

/* Alle Steps optisch gleich hoch halten – optional über Einstellung "Feste Höhe" aktivierbar */
.zs-form-wrapper.zs-fixed-height .zs-step {
	min-height: 480px !important;
}

/* Automatische Höhe („Auto“) – kein min-height-Zwang */
.zs-form-wrapper.zs-auto-height .zs-step {
	min-height: auto !important;
}

.zs-form-wrapper .zs-step-progress {
	margin-bottom: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #00375E;
	min-height: 1em; /* Platzhalter-Höhe, damit Step 0 nicht springt */
}

.zs-form-wrapper .zs-step.zs-active {
	display: block;
}

.zs-form-wrapper label {
	display: block;
	margin-top: 10px;
	font-weight: 600;
}

.zs-form-wrapper input,
.zs-form-wrapper select,
.zs-form-wrapper textarea {
	width: 100%;
	padding: 10px;
	border-radius: 6px;
	margin-top: 5px;
	border: 1px solid #00375E;
	background: #fff;
	color: #00375E;
	font-family: inherit;
}

.zs-form-wrapper select option,
.zs-form-wrapper select optgroup {
	font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.zs-form-wrapper input::placeholder {
	color: #00375E;
	opacity: 0.6;
} 

.zs-form-wrapper .zs-required-error {
	border-color: #b00020 !important;
	background: #fff7f8;
}

.zs-form-wrapper .zs-required-hint {
	margin-top: 4px;
	font-size: 12px;
	color: #b00020;
}


/* Hide helper */
.zs-hidden { display: none; }

/* Zeilenlayout für adressbezogene Felder */
.zs-form-wrapper .zs-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

/* Reduce gap when a row follows a section label to match input spacing */
.zs-form-wrapper label + .zs-row {
	margin-top: 5px;
}

.zs-form-wrapper .zs-field {
	flex: 1 1 50%;
}

.zs-form-wrapper .zs-field-narrow {
	flex: 0 0 auto;
	max-width: 140px;
}

@media (max-width: 768px) {
	/* Auf Mobile zwei schmale Felder (z.B. Hausnummer/PLZ) nebeneinander halten */
	.zs-form-wrapper .zs-field-narrow {
		flex: 1 1 calc(50% - 6px);
		max-width: none;
		min-width: 0;
	}

	/* Verkauf Step 2: Miete volle Breite, DG/Lift nebeneinander */
	.zs-form-wrapper .zs-step[data-step="verkauf-step2"] .zs-v-miete-field {
		flex: 1 1 100%;
	}
	.zs-form-wrapper .zs-step[data-step="verkauf-step2"] .zs-v-dg-field,
	.zs-form-wrapper .zs-step[data-step="verkauf-step2"] .zs-v-lift-field {
		flex: 1 1 calc(50% - 6px);
		min-width: 0;
	}

	/* Verkauf Step 3: Mobil und E-Mail untereinander */
	.zs-form-wrapper .zs-step[data-step="verkauf-step3"] .zs-field-half {
		flex: 1 1 100%;
	}

	/* SMS-Bestätigung (confirm-email): Primärbutton volle Breite, darunter 2 nebeneinander */
	.zs-form-wrapper .zs-step[data-step="confirm-email"] .zs-actions #request_sms_btn {
		flex: 1 1 100%;
		width: 100%;
	}
	.zs-form-wrapper .zs-step[data-step="confirm-email"] .zs-actions #sms_back_btn,
	.zs-form-wrapper .zs-step[data-step="confirm-email"] .zs-actions [data-back="start"] {
		flex: 1 1 calc(50% - 6px);
		min-width: 0;
	}
}

@media (max-width: 1200px) {
	/* Verkauf Step 2: ab <1200px Miete volle Breite, DG/Lift je halbe Zeile */
	.zs-form-wrapper .zs-step[data-step="verkauf-step2"] .zs-v-miete-field {
		flex: 1 1 100%;
	}
	.zs-form-wrapper .zs-step[data-step="verkauf-step2"] .zs-v-dg-field,
	.zs-form-wrapper .zs-step[data-step="verkauf-step2"] .zs-v-lift-field {
		flex: 1 1 calc(50% - 6px);
		min-width: 0;
	}

	/* Verkauf Step 3: ab <1200px Mobil und E-Mail untereinander */
	.zs-form-wrapper .zs-step[data-step="verkauf-step3"] .zs-field-half {
		flex: 1 1 100%;
	}
}

.zs-form-wrapper .zs-field-third {
	flex: 1 1 calc(33.333% - 8px);
	min-width: 120px;
}

.zs-form-wrapper .zs-field-half {
	flex: 1 1 calc(50% - 6px);
}

.zs-form-wrapper .zs-field label {
	margin-top: 0;
}

.zs-form-wrapper .zs-actions {
	display: flex;
	gap: 12px;
	margin-top: 30px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.zs-form-wrapper .zs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	background: #00375E;
	color: #ffffff;
	font-size: 16px;
	font-family: inherit;
	text-decoration: none;
}

.zs-form-wrapper .zs-button.zs-secondary {
	background: #e6e6e6;
	color: #00375E;
}

.zs-form-wrapper .zs-button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Custom select arrow slightly inset from right */
.zs-form-wrapper select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 22px center;
	background-size: 8px 8px;
	padding-right: 8px;
}
.zs-form-wrapper select::-ms-expand { display: none; }

/* Kein Pfeil beim Mehrfach-Select "Grund für Investment" */
.zs-form-wrapper select[data-field="k_grund"] {
	background-image: none;
	background-position: initial;
	background-repeat: initial;
	scrollbar-width: none; /* Firefox: Scrollbalken ausblenden */
}

.zs-form-wrapper select[data-field="k_grund"]::-webkit-scrollbar {
	width: 0;
	height: 0; /* WebKit: Scrollbalken ausblenden */
}

/* Kein Pfeil & Scrollbalken beim Mehrfach-Select "Mein Fokus beim Ankauf" */
.zs-form-wrapper select[data-field="k_fokus"] {
	background-image: none;
	background-position: initial;
	background-repeat: initial;
	scrollbar-width: none;
}

.zs-form-wrapper select[data-field="k_fokus"]::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.zs-form-wrapper gmpx-place-autocomplete {
	display: block;
	width: 100%;
	margin-top: 5px;
}

.zs-form-wrapper .zs-select {
	display: block;
	width: 100%;
	margin-bottom: 15px;
	
}

.zs-form-wrapper .zs-select-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	padding-top: 60px !important;
	width:80%;
	margin: auto auto; 
}

/* Im Modus „Auto“ anderes Spacing für die Auswahl-Kacheln */
.zs-form-wrapper.zs-auto-height .zs-select-grid {
	padding-top: 0 !important;
	padding-bottom: 20px;
}

.zs-form-wrapper .zs-button.zs-select {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px;
	background: #ffffff;
	border: 0px solid #e5e5e5;
	color: #111;
}

.zs-form-wrapper .zs-select-media {
	display: flex;
	width: 100%;
    max-width: 120px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 8px;
	margin: 0 auto;
}

.zs-form-wrapper .zs-select-media img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.zs-form-wrapper .zs-select-label {
	display: block;
	text-align: center;
	font-weight: 600;
	padding: 10px 8px 4px;
	color: #00375E;
}

@media (max-width: 480px) {
	.zs-form-wrapper .zs-select-grid {
		grid-template-columns: 1fr;
	}
	.zs-form-wrapper label {
		font-size: 14px;
	}
	.zs-form-wrapper .zs-step[data-step="verkauf-step2"] .zs-v-dg-field,
	.zs-form-wrapper .zs-step[data-step="verkauf-step2"] .zs-v-lift-field {
		flex: 1 1 100%;
	}
}

.zs-form-wrapper .zs-form-status {
	margin-bottom: 12px;
	min-height: 1em;
	font-size: 14px;
}

.zs-form-wrapper .zs-form-status.zs-success {
	color: #1d7a36;
}

.zs-form-wrapper .zs-form-status.zs-error {
	color: #b00020;
}

/* Einwilligung: Checkbox links vom Text */
.zs-form-wrapper .zs-consent-wrap {
	margin-top: 16px;
	margin-bottom: 0;
}
.zs-form-wrapper .zs-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-weight: 600;
	margin-top: 0;
}
.zs-form-wrapper .zs-consent-label input[type="checkbox"] {
	width: auto;
	flex-shrink: 0;
	margin-top: 4px;
	cursor: pointer;
}
.zs-form-wrapper .zs-consent-desc {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.9;
}
.zs-form-wrapper .zs-consent-privacy {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.9;
}
.zs-form-wrapper .zs-consent-privacy a {
	color: #00375E;
	text-decoration: underline;
}
.zs-form-wrapper .zs-consent-privacy a:hover {
	text-decoration: none;
}

.zs-form-wrapper .zs-confirm-spam-hint {
	margin-top: 12px;
	font-size: 14px;
	opacity: 0.9;
}

.zs-form-wrapper .zs-summary {
	margin-top: 10px;
}
.zs-form-wrapper .zs-summary ul {
	margin: 0;
	padding-left: 18px;
}
.zs-form-wrapper .zs-summary li {
	margin: 4px 0;
}

/* Ausgegraute Test-Anzeige für Bewertungsdetails (Wert A/B/Durchschnitt) */
.zs-form-wrapper .zs-valuation-details {
	margin-top: 4px;
	font-size: 13px;
	color: #6b7280; /* Tailwind gray-500 ähnlich */
}

/* Überschriften für die einzelnen Berechnungsschritte (Wert A, Wert B, Durchschnitt) */
.zs-form-wrapper .zs-valuation-heading {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563; /* etwas dunkleres Grau */
}

/* Zusätzlicher Abstand zwischen den Blöcken (z.B. vor Durchschnitt) */
.zs-form-wrapper .zs-valuation-separator {
	height: 8px;
}

/* Ensure Google Places suggestions overlay above builders/themes */
.pac-container {
	z-index: 2147483647;
}

/* Honeypot-Feld unsichtbar aus dem sichtbaren Bereich schieben */
.zs-form-wrapper .zs-hp-field {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}