.tour-booking-modal {
	background: #fff;
	border-radius: 32px;
	box-shadow: 0 14px 44px rgba(24, 24, 24, 0.12);
	color: #181818;
	display: none;
	max-width: 900px;
	padding: 48px 56px 56px;
	position: relative;
	width: min(900px, calc(100vw - 32px));
}

.fancybox__content .tour-booking-modal,
.fancybox-content .tour-booking-modal {
	display: block !important;
}

.fancybox__content:has(.tour-booking-modal) {
	background: transparent;
	padding: 0;
}

.tour-booking-modal__title {
	color: #000;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 44px;
	margin: 0 0 32px;
	padding-right: 40px;
}

.tour-booking-modal__tour-name {
	display: inline;
}

.tour-booking-modal__calendar-block {
	margin-bottom: 24px;
}

.tour-booking-calendar-wrap {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	padding: 12px 12px 8px;
	position: relative;
}

/* Flatpickr anchor: no visible input, calendar is rendered beside/after it */
.tour-booking-calendar-host,
.tour-booking-calendar-host.flatpickr-input {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	height: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	overflow: hidden;
	padding: 0 !important;
	position: absolute;
	width: 1px;
	clip: rect(0, 0, 0, 0);
}

.tour-booking-calendar-wrap .flatpickr-calendar {
	border: none;
	box-shadow: none;
	margin: 0 auto;
	max-width: 100%;
	width: 100% !important;
}

.tour-booking-calendar-wrap .flatpickr-calendar.inline {
	display: block;
}

.tour-booking-calendar-wrap .flatpickr-months {
	align-items: center;
	padding: 0 4px;
}

.tour-booking-calendar-wrap .flatpickr-months .flatpickr-month {
	height: 40px;
}

.tour-booking-calendar-wrap .flatpickr-current-month {
	font-size: 18px;
	font-weight: 500;
}

.tour-booking-calendar-wrap .flatpickr-weekdays {
	margin-top: 4px;
}

.tour-booking-calendar-wrap span.flatpickr-weekday {
	color: #737373;
	font-size: 13px;
	font-weight: 400;
}

.tour-booking-calendar-wrap .flatpickr-days {
	width: 100% !important;
}

.tour-booking-calendar-wrap .dayContainer {
	max-width: none;
	min-width: 0;
	width: 100% !important;
}

.tour-booking-calendar-wrap .flatpickr-day {
	border-radius: 50%;
	color: #181818;
	flex-basis: 14.285%;
	font-size: 15px;
	height: 40px;
	line-height: 40px;
	max-width: none;
}

.tour-booking-calendar-wrap .flatpickr-day.today:not(.selected) {
	border-color: #181818;
	color: #181818;
}

.tour-booking-calendar-wrap .flatpickr-day.selected,
.tour-booking-calendar-wrap .flatpickr-day.startRange,
.tour-booking-calendar-wrap .flatpickr-day.endRange,
.tour-booking-calendar-wrap .flatpickr-day.selected:hover,
.tour-booking-calendar-wrap .flatpickr-day.startRange:hover,
.tour-booking-calendar-wrap .flatpickr-day.endRange:hover {
	background: #181818 !important;
	border-color: #181818 !important;
	color: #fff !important;
}

.tour-booking-calendar-wrap .flatpickr-day.flatpickr-disabled,
.tour-booking-calendar-wrap .flatpickr-day.prevMonthDay,
.tour-booking-calendar-wrap .flatpickr-day.nextMonthDay {
	color: #acacac;
}

.tour-booking-modal__form {
	margin-top: 0;
}

.tour-booking-modal .wpcf7 {
	margin: 0;
}

.tour-booking-modal form.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.tour-booking-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tour-booking-modal .tour-booking-form > p {
	display: contents;
	margin: 0;
}

.tour-booking-modal .wpcf7-form-control-wrap:has(input[type="hidden"]) {
	display: none !important;
}

.tour-booking-stepper {
	align-items: center;
	background: #f7f7f7;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	min-height: 52px;
	padding: 8px 12px 8px 16px;
	position: relative;
}

.tour-booking-stepper__text {
	color: #acacac;
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 20px;
	pointer-events: none;
}

.tour-booking-stepper__controls {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	gap: 12px;
}

.tour-booking-stepper__btn {
	align-items: center;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 50%;
	color: #1c1c1e;
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font-size: 20px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	width: 36px;
}

.tour-booking-stepper__btn:hover {
	background: #f0f0f0;
	border-color: #181818;
}

.tour-booking-stepper__value {
	color: #181818;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	min-width: 20px;
	text-align: center;
}

.tour-booking-stepper__input {
	border: 0 !important;
	clip: rect(0, 0, 0, 0);
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden;
	padding: 0 !important;
	position: absolute !important;
	white-space: nowrap;
	width: 1px !important;
}

.tour-booking-modal .wpcf7-form-control-wrap {
	display: block;
	margin: 0;
}

.tour-booking-input,
.tour-booking-modal .wpcf7 input[type="text"],
.tour-booking-modal .wpcf7 input[type="tel"],
.tour-booking-modal .wpcf7 input[type="email"],
.tour-booking-modal .wpcf7 input[type="number"] {
	background: #f7f7f7;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	box-sizing: border-box;
	color: #181818;
	display: block;
	font-size: 14px;
	line-height: 20px;
	margin: 0;
	padding: 16px;
	width: 100%;
}

.tour-booking-modal .wpcf7 textarea.tour-booking-input {
	min-height: 84px;
	resize: vertical;
}

.tour-booking-input::placeholder,
.tour-booking-modal .wpcf7 input::placeholder {
	color: #acacac;
	opacity: 1;
}

.tour-booking-input:focus,
.tour-booking-modal .wpcf7 input:focus {
	border-color: #a12c2f;
	box-shadow: 0 0 0 3px rgba(161, 44, 47, 0.12);
	outline: none;
}

.tour-booking-form__submit,
.tour-booking-submit,
.tour-booking-modal .wpcf7 input[type="submit"] {
	background: #a12c2f;
	border: none;
	border-radius: 12px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 24px;
	margin-top: 8px;
	padding: 18px;
	transition: background-color 0.2s ease;
	width: 100%;
}

.tour-booking-submit:hover,
.tour-booking-modal .wpcf7 input[type="submit"]:hover {
	background: #8f2628;
}

.tour-booking-modal .wpcf7-not-valid-tip {
	color: #be1e2d;
	font-size: 13px;
	line-height: 18px;
	margin-top: 6px;
}

.tour-booking-modal .wpcf7 form .wpcf7-response-output {
	border-radius: 12px;
	font-size: 14px;
	line-height: 20px;
	margin: 12px 0 0;
	padding: 12px 14px;
}

.tour-booking-modal .wpcf7-spinner {
	margin-left: 10px;
	vertical-align: middle;
}

.sp-booking-consents {
	border-top: 1px solid #e5e5e5;
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin-top: 4px;
	padding-top: 14px;
}

.sp-booking-consents .wpcf7-form-control-wrap,
.sp-booking-consents .wpcf7-list-item,
.sp-booking-consents .wpcf7-list-item label {
	display: block;
	margin: 0;
}

.sp-booking-consents .wpcf7-list-item label,
.sp-booking-consents .wpcf7-acceptance label,
.sp-native-booking-form .sp-booking-consents > label {
	align-items: flex-start;
	color: #5f5f5f;
	display: flex;
	font-size: 12px;
	gap: 9px;
	line-height: 1.45;
}

.sp-booking-consents input[type="checkbox"] {
	accent-color: #a12c2f;
	flex: 0 0 auto;
	height: 17px;
	margin: 1px 0 0;
	width: 17px;
}

.sp-booking-consents a {
	color: #a12c2f;
	font-weight: 600;
	text-underline-offset: 2px;
}

@media (max-width: 767px) {
	.tour-booking-modal {
		border-radius: 20px;
		padding: 24px 20px 28px;
	}

	.tour-booking-modal__title {
		font-size: 28px;
		line-height: 36px;
		margin-bottom: 24px;
		padding-right: 32px;
	}

	.tour-booking-modal__calendar-block {
		margin-bottom: 20px;
	}

	.tour-booking-form {
		gap: 10px;
	}

	.tour-booking-calendar-wrap .flatpickr-day {
		font-size: 14px;
		height: 36px;
		line-height: 36px;
	}
}
