/* ── Request Tour Form Styles ── */

/* Field error state */
.rt-field-error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 1px #ef4444 !important;
}

/* Required asterisk */
.rt-required-mark {
	color: #ef4444 !important;
}

/* Make select placeholders match input placeholders */
.rt-custom-tour-form select:invalid,
.rt-custom-tour-form select:disabled,
.rt-custom-tour-form input:disabled {
	color: #9ca3af !important;
}

/* Visually disable fields */
.rt-custom-tour-form select:disabled,
.rt-custom-tour-form input:disabled {
	background-color: #f9fafb !important;
	cursor: not-allowed !important;
	opacity: 0.7;
}

/* Hide the chevron arrow when select is disabled (but preserve skeleton loading effect) */
.rt-custom-tour-form select:disabled:not(.rt-skeleton-field) {
	background-image: none !important;
}
select option {
	color: #111827;
}

/* Custom dropdown chevron for selects */
.rt-custom-tour-form select {
	padding-right: 2.5rem !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	/* Tailwind's chevron replaced with a custom colored one */
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%230071b9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='%230071b9' /%3E%3C/svg%3E");
	background-position: right 0.5rem center;
	background-repeat: no-repeat;
	background-size: 1.75em 1.75em;
}

/* Force submit button layout (bypass Tailwind compilation) */
#rt-submit-btn {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	white-space: nowrap !important;
}

#rt-btn-text {
	display: inline-block !important;
	line-height: 1 !important;
}

#rt-btn-spinner {
	flex-shrink: 0 !important;
}

/* Success message */
.rt-msg-success {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

/* Error message */
.rt-msg-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* Inline field error message */
.rt-error-message {
	background-color: #fde8e8; /* Light pink background */
	color: #ef4444; /* Red text */
	font-size: 0.875rem; /* 14px */
	padding: 0.375rem 0.75rem; /* 6px top/bottom, 12px left/right */
	border-radius: 4px;
	margin-top: 0.5rem;
	display: inline-block;
}

/* Edit Mode Styles */
.rt-readonly-field {
	background-color: #f9fafb !important;
	color: #6b7280 !important;
	cursor: not-allowed !important;
	pointer-events: none;
}

/* Action Buttons Container Margin */
#rt-action-buttons {
	margin-top: 2rem !important;
}

/* Custom Cancel Button Styles (Bypass Tailwind JIT) */
.rt-cancel-btn {
	border: 1px solid #f87171 !important; /* Tailwind red-400 (lighter border) */
	color: #dc2626 !important; /* Tailwind red-600 */
	background-color: #ffffff !important;
	transition: all 0.2s ease !important;
}

.rt-cancel-btn:hover:not(:disabled) {
	background-color: #fef2f2 !important; /* Tailwind red-50 */
	border-color: #dc2626 !important; /* Tailwind red-600 */
	color: #dc2626 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.15), 0 2px 4px -1px rgba(220, 38, 38, 0.1) !important;
}

.rt-cancel-btn:active:not(:disabled) {
	transform: translateY(0) !important;
	box-shadow: 0 1px 2px 0 rgba(0, 113, 185, 0.1) !important;
}

.rt-cancel-btn:active:not(:disabled) {
	transform: translateY(0) !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.rt-cancel-btn:focus {
	outline: none !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

/* Submit Button Hover Effects */
#rt-submit-btn {
	transition: all 0.2s ease !important;
}
#rt-submit-btn:hover:not(:disabled) {
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}
#rt-submit-btn:active:not(:disabled) {
	transform: translateY(0) !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.rt-info-banner {
	background-color: #f0f7fa;
}



/* Spinner animation (fallback if Tailwind animate-spin not available) */
@keyframes rt-spin {
	to {
		transform: rotate(360deg);
	}
}

#rt-btn-spinner {
	animation: rt-spin 1s linear infinite;
}

/* ── Flatpickr Custom Styling ── */
.flatpickr-calendar {
	border: none !important;
	border-radius: 12px !important;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
	padding: 10px !important;
	font-family: inherit !important;
	width: 320px !important;
	margin-top: 4px !important;
}



.flatpickr-months .flatpickr-month {
	background: transparent !important;
	color: #111827 !important;
	height: 50px !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
	fill: #6b7280 !important;
	padding: 15px !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
	fill: #0071b9 !important;
}

.flatpickr-current-month {
	font-size: 1.1rem !important;
	color: #111827 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px;
	padding-top: 5px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
	font-weight: 700 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23111827' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' /%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right center !important;
	background-size: 16px 16px !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 4px 22px 6px 4px !important;
	margin: 0 !important;
	line-height: 1.5 !important;
	height: auto !important;
	vertical-align: middle !important;
}

.flatpickr-current-month input.cur-year {
	font-weight: 400 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.flatpickr-weekdays {
	background: transparent !important;
	height: 36px !important;
}

span.flatpickr-weekday {
	background: transparent !important;
	color: #6b7280 !important;
	font-weight: 600 !important;
	text-transform: lowercase !important;
}

.flatpickr-days {
	width: 100% !important;
}

.dayContainer {
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	justify-content: space-around !important;
}

.flatpickr-day {
	border-radius: 50% !important;
	color: #4b5563 !important;
	border: 1px solid transparent !important;
	margin: 2px 0 !important;
	height: 40px !important;
	max-width: 40px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding-bottom: 2px !important;
	box-sizing: border-box !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
	color: #e5e7eb !important;
}

.flatpickr-day:hover {
	background: #f3f4f6 !important;
}

/* Enabled/Available dates style */
.flatpickr-day:not(.flatpickr-disabled):not(.selected):not(.startRange):not(.endRange) {
	border: 1px solid #bae6fd !important; /* light blue outline to look clickable */
	background: transparent !important;
	color: #0071b9 !important;
	font-weight: 600 !important;
}

.flatpickr-day:not(.flatpickr-disabled):not(.selected):not(.startRange):not(.endRange):hover {
	background: #e0f2fe !important;
}

/* Disabled dates */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
	color: #d1d5db !important;
	/* light gray */
	background: transparent !important;
}

/* Reset focus style */
.flatpickr-day:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* Selected style */
.flatpickr-day.selected:not(.prevMonthDay):not(.nextMonthDay),
.flatpickr-day.selected:not(.prevMonthDay):not(.nextMonthDay):hover,
.flatpickr-day.startRange:not(.prevMonthDay):not(.nextMonthDay),
.flatpickr-day.endRange:not(.prevMonthDay):not(.nextMonthDay) {
	background: #0071b9 !important;
	color: #ffffff !important;
	border: 1px solid #0071b9 !important;
	font-weight: 600 !important;
}

/* Fix padding for Datum input to avoid overlapping with icon (targets both original and Flatpickr altInput) */
#rt-date,
#rt-tour-request-form .flatpickr-wrapper > input[type="text"] {
	padding-left: 3rem !important;
}

/* Fix wrapper width for static Flatpickr */
.flatpickr-wrapper {
	display: block !important;
	width: 100% !important;
}

/* ── Custom Animations ── */
@keyframes rt-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-rt-fade-in-up {
	animation: rt-fade-in-up 0.4s ease-out both;
}

/* ── Dynamic Time Slot Active States ── */
.rt-time-slot-input:checked+.rt-time-slot-box {
	border-color: #0071b9 !important;
	/* vk-blue */
	background-color: #eaf4fa !important;
	color: #0071b9 !important;
}

.rt-time-slot-input:checked+.rt-time-slot-box svg {
	color: #0071b9 !important;
}

/* ── Form Inputs Focus State ── */
#rt-tour-request-form input:not([type="radio"]):not([type="checkbox"]):not(.cur-year),
#rt-tour-request-form select:not(.flatpickr-monthDropdown-months),
#rt-tour-request-form textarea {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid #e2e8f0 !important;
	/* Lighter border */
	box-shadow: none !important;
	/* Remove any default shadow */
	border-radius: 6px !important;
}

#rt-tour-request-form input:not([type="radio"]):not([type="checkbox"]):not(.cur-year):focus,
#rt-tour-request-form select:not(.flatpickr-monthDropdown-months):focus,
#rt-tour-request-form textarea:focus {
	outline: none !important;
	border-color: #0071b9 !important; /* Vlietkinderen blue */
	box-shadow: none !important; /* Remove thick/muddy shadows for a clean 1px border */
}

/* ── Skeleton Shimmer Effect ── */
@keyframes rt-shimmer {
	0% {
		background-position: 150% 0;
	}
	100% {
		background-position: -50% 0;
	}
}

.rt-skeleton {
	border-radius: 9999px;
	background-color: #f3f4f6 !important;
	background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%) !important;
	background-size: 200% 100% !important;
	animation: rt-shimmer 1s infinite linear !important;
}

.rt-skeleton-field,
.rt-custom-tour-form .rt-skeleton-field {
	background-image: linear-gradient(110deg, transparent 40%, rgba(0, 113, 185, 0.06) 50%, transparent 60%) !important;
	background-size: 200% 100% !important;
	animation: rt-shimmer 1s infinite linear !important;
	color: #9ca3af !important; /* Soft gray text while loading */
	border-color: #e2e8f0 !important;
}

/* Prevent layout jump during skeleton transition */
#rt-time-container {
	min-height: 42px;
}

/* ── Modal Styling ── */
#rt-cancel-modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 99999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
}
#rt-cancel-modal.hidden {
	display: none !important;
}
.rt-modal-overlay {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background-color: rgba(17, 24, 39, 0.7) !important; /* Darker overlay */
	backdrop-filter: blur(4px) !important;
}
.rt-modal-content {
	position: relative !important;
	background-color: #ffffff !important;
	border-radius: 16px !important; /* Premium rounded */
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
	padding: 32px 32px 32px 32px !important;
	width: 100% !important;
	max-width: 400px !important; 
	z-index: 100000 !important;
	margin: auto !important; 
	text-align: left !important; /* Left-aligned content */
}
.rt-modal-body {
	display: flex !important;
	align-items: flex-start !important;
	gap: 16px !important;
}
.rt-modal-text {
	flex: 1 !important;
}
.rt-modal-close-x {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	width: 32px !important;
	height: 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid #f3f4f6 !important;
	background-color: #ffffff !important;
	color: #6b7280 !important; /* gray-500 */
	border-radius: 50% !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	padding: 0 !important;
}
.rt-modal-close-x:hover {
	background-color: #f9fafb !important; /* gray-50 */
	color: #111827 !important; /* gray-900 */
	transform: scale(1.1) !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}
.rt-modal-close-x svg {
	width: 20px !important;
	height: 20px !important;
}
.rt-modal-icon-small {
	width: 40px !important;
	height: 40px !important;
	background-color: #fee2e2 !important; /* red-100 */
	color: #dc2626 !important; /* red-600 */
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
}
.rt-modal-icon-small svg {
	width: 20px !important;
	height: 20px !important;
}
.rt-modal-content h3 {
	margin-top: 0 !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: #111827 !important; /* gray-900 */
	margin-bottom: 12px !important;
}
.rt-modal-content p {
	color: #6b7280 !important; /* gray-500 */
	margin-bottom: 32px !important;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
}
.rt-modal-actions {
	display: flex !important;
	flex-direction: row !important;
	justify-content: flex-end !important;
	gap: 12px !important;
	width: 100% !important;
	margin-top: 8px !important;
}
#rt-modal-close-btn {
	padding: 10px 16px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	color: #374151 !important;
	cursor: pointer !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
	transition: all 0.2s ease !important;
}
#rt-modal-close-btn:hover {
	background: #f9fafb !important;
	border-color: #9ca3af !important;
}
#rt-modal-confirm-btn {
	padding: 10px 16px !important;
	border: none !important;
	border-radius: 8px !important;
	background: #ef4444 !important; /* red-500 */
	color: #ffffff !important;
	cursor: pointer !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
	transition: all 0.2s ease !important;
}
#rt-modal-confirm-btn:hover {
	background: #dc2626 !important; /* red-600 */
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3) !important;
}