/* Template Online Termin */

.zw-booking-banner-img {
	display: block;
	width: 100%;
	height: auto;
}

.zw-booking-banner-img--mobile {
	display: block;
}

.zw-booking-banner-img--desktop {
	display: none;
}

@media (min-width: 768px) {
	.zw-booking-banner-img--mobile {
		display: none;
	}

	.zw-booking-banner-img--desktop {
		display: block;
	}
}

.zw-booking-content {
	padding-top: 30px;
	padding-bottom: 30px;
}

@media (min-width: 768px) {
	.zw-booking-content {
		padding-top: 55px;
		padding-bottom: 55px;
	}
}

.zw-booking-step hr {
	border: none;
	border-top: 1px solid #f1f1f1;
}

/* Icon placeholders inside form fields */
.zw-icon-field-wrap {
	position: relative;
	display: block;
}

.zw-icon-field-wrap input,
.zw-icon-field-wrap select {
	padding-left: 42px !important;
}

.zw-icon-field-wrap::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 15px;
	width: 18px;
	height: 18px;
	z-index: 2;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

.zw-icon-field-wrap--user::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.zw-icon-field-wrap--phone::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.zw-icon-field-wrap--email::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}

.zw-icon-field-wrap--calendar::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

/* Step visibility */
.zw-booking-step {
	display: none;
}

.zw-booking-step.is-active {
	display: block;
}

/* Step 1 nav — Nächste, right-aligned single button */
.zw-booking-step-nav {
	display: flex;
	justify-content: flex-end;
	gap: 15px;
	margin-top: 20px;
}

.zw-step-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 20px 60px;
	border: none;
	border-radius: 3px;
	font-size: 14px;
	cursor: pointer;
	background-color: #02adea;
	color: #ffffff;
	transition: background-color 0.3s ease;
}

.zw-step-next:hover {
	background-color: #000;
}

/* Step 2 nav — Senden on top, Zurück as plain link below, left-aligned */
.zw-booking-step-nav--final {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

body .zw-step-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 20px 60px;
	border: none;
	border-radius: 3px;
	background: none;
	color: #333333;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	margin-top: 25px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

body .zw-step-back:hover {
	background-color: #000000;
	color: #ffffff;
	text-decoration: none;
}


/* Senden button — reuses the same slide-in icon animation as the footer form */
.zw-contact-form-button {
	display: inline-block;
}

.zw-booking-content .zw-submit-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
	padding: 20px 60px;
	border: none;
	border-radius: 3px;
	background-color: #02adea;
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	line-height: 18px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.zw-booking-content .zw-submit-btn:hover {
	background-color: #02adea;
}

.zw-booking-content .zw-submit-btn__icon {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}

.zw-booking-content .zw-submit-btn__icon svg {
	display: block;
}

.zw-booking-content .zw-submit-btn__text {
	position: relative;
	z-index: 5;
	display: inline-block;
	white-space: nowrap;
	transition: transform 0.3s ease;
}

.zw-booking-content .zw-submit-btn:hover .zw-submit-btn__text {
	transform: translateX(230%);
}

.zw-booking-content .zw-submit-btn:hover .zw-submit-btn__icon {
	transform: translateX(0);
}

/* Form layout — 2 columns 50/50, borders, focus state */
.zw-booking-content .zw-form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

@media (min-width: 768px) {
	.zw-booking-content .zw-form-row {
		grid-template-columns: 1fr 1fr;
	}
}

.zw-booking-content .zw-form-row--full {
	grid-template-columns: 1fr;
}

.zw-booking-content .zw-form-col label {
	display: block;
	font-size: 13px;
	color: #333333;
	margin-bottom: 6px;
}

.zw-booking-content input[type="text"],
.zw-booking-content input[type="tel"],
.zw-booking-content input[type="email"],
.zw-booking-content select {
	width: 100%;
	background-color: #ffffff;
	border: 1px solid #e3e3e3;
	border-radius: 2px;
	padding: 20px 15px;
	font-size: 13px;
	color: #999999;
	box-sizing: border-box;
}

.zw-booking-content input[type="text"]:focus,
.zw-booking-content input[type="tel"]:focus,
.zw-booking-content input[type="email"]:focus,
.zw-booking-content select:focus {
	border-color: #009DDC;
	outline: none;
}

/* Form Validation */

.online-termin-form-wrapper .wpcf7-form-control.wpcf7-not-valid {
	border-color: #E74922;
}

.online-termin-form-wrapper input.wpcf7-not-valid,
.online-termin-form-wrapper select.wpcf7-not-valid,
.online-termin-form-wrapper textarea.wpcf7-not-valid {
	border-color: #E74922;
}

.online-termin-form-wrapper .wpcf7-not-valid-tip {
	display: inline-block;
	margin-top: 10px;
	padding: 15px;
	background-color: #E74922;
	color: #ffffff;
}

@media (max-width: 767px) {
	.zw-booking-step-nav {
		margin-top: 0;
	}
}