.booking-wizard {
	background: white;
	border-radius: 20px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 800px;
	overflow: hidden;
}

/* Progress Bar */
.booking-progress-container {
	background: #EAF4F5;
	padding: 20px 15px 10px 15px;
	border-bottom: 1px solid #e9ecef;
}

.booking-progress-steps {
	display: flex;
	justify-content: space-between;
	position: relative;
	margin-bottom: 0px;
}

.booking-progress-steps::before {
	content: '';
	position: absolute;
	top: 45px;
	left: 0;
	right: 0;
	height: 3px;
	background: #e9ecef;
	z-index: 1;
}

.booking-progress-bar {
	position: absolute;
	top: 45px;
	left: 0;
	height: 3px;
	background: #2A7178;
	z-index: 2;
	transition: width  0.4s ease;
}

.booking-progress-step {
	position: relative;
	z-index: 3;
	text-align: center;
	flex: 1;
}

.booking-step-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: white;
	border: 2px solid #e9ecef;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 8px;
	font-weight: 600;
	font-size: 14px;
	color: #adb5bd;
	transition: all 0.3s ease;
	position: relative;
}

.booking-progress-step.booking-active .booking-step-circle {
	background: #2A7178;
	border-color: #2A7178;
	color: white;
	transform: scale(1.05);
}

.booking-progress-step.booking-completed .booking-step-circle {
	background: #2A7178;
	border-color: #2A7178;
	color: white;
}

.booking-progress-step.booking-completed .booking-step-circle::after {
	position: absolute;
	font-size: 16px;
	font-weight: bold;
}

.booking-step-label {
	font-size: 12px;
	color: #6c757d;
	font-weight: 500;
}

.booking-progress-step.booking-completed .booking-step-label {
	color: #2A7178;
	font-weight: 600;
}

.booking-progress-step.booking-active .booking-step-label {
	color: #2A7178;
	font-weight: 600;
}

/* Form Content */
.booking-form-content {
	padding: 30px;
}

.booking-step-content {
	display: none;
	animation: fadeIn 0.4s ease;
}

.booking-step-content.booking-active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.booking-step-title {
	font-size: 24px;
	color: #2c3e50;
	margin-bottom: 8px;
	font-weight: 600;
}

.booking-step-subtitle {
	font-size: 14px;
	color: #6c757d;
	margin-bottom: 25px;
}

/* Form Groups */
.booking-form-group {
	margin-bottom: 10px;
}

.booking-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

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

.booking-form-label {
	display: block;
	margin-bottom: 3px;
	color: #495057;
	font-weight: 600;
	font-size: 16px;
}
.booking-radio-label{
    display:block;
}
textarea.booking-form-input{
    height:60px;
}

.booking-required {
	color: #dc3545;
}

.booking-form-select,
.booking-form-input {
	width: 100%;
	padding: 12px 16px; /* Reduced from 14px to fit text better */
	border: 2px solid #e9ecef;
	border-radius: 10px;
	font-size: 15px;
	color: #495057;
	background-color: #f8f9fa;
	transition: all 0.3s ease;
	min-height: 48px; /* Reduced from 52px */
	height: 48px;
	line-height: 1.4; /* Better line height for text visibility */
	box-sizing: border-box; /* Ensure padding is included in height */
}

.booking-form-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	padding-right: 45px;
	cursor: pointer;
}

.booking-form-input {
	cursor: text;
}

.booking-form-select:focus,
.booking-form-input:focus {
	outline: none;
	border-color: #2A7178;
	background-color: white;
	box-shadow: 0 0 0 4px rgba(42, 113, 120, 0.1);
}

.booking-form-select:hover,
.booking-form-input:hover {
	border-color: #2A7178;
}

/* Step 4 — recap of selections from previous steps */
.booking-selection-summary {
	background: #EAF4F5;
	border: 1px solid #c5dfe2;
	border-left: 4px solid #2A7178;
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0 0 20px 0;
}

.booking-selection-summary .booking-summary-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #2A7178;
	margin-bottom: 10px;
}

.booking-selection-summary .booking-summary-line {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #2d3748;
}

.booking-selection-summary .booking-summary-line strong {
	color: #1a202c;
	font-weight: 600;
}

.booking-selection-summary .booking-summary-meta {
	display: inline;
	font-size: 14px;
	font-weight: 500;
	color: #4a5568;
}

.booking-selection-summary .booking-summary-text-muted {
	margin: 0;
	font-size: 14px;
	color: #718096;
	line-height: 1.5;
}

/* Info Cards */
.booking-info-card {
	background: #2A7178;
	color: white;
	padding: 20px;
	border-radius: 12px;
	margin-top: 15px;
	display: none;
}

.booking-info-card.booking-show {
	display: block;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.booking-info-card h4 {
	margin-bottom: 10px;
	font-size: 18px;
}

.booking-info-card p {
	margin-bottom: 8px;
	font-size: 14px;
	opacity: 0.95;
}

.booking-info-card .booking-price {
	font-size: 24px;
	font-weight: 700;
	margin-top: 10px;
}

/* Calendar Styles */
.booking-calendar-container {
	margin-top: 20px;
}

.booking-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.booking-calendar-month {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.booking-calendar-nav-btn {
	background: #2A7178;
	color: white;
	border: none;
	padding: 5px 15px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 14px;
}

.booking-calendar-nav-btn:hover {
	background: #1f5a5f;
}

.booking-calendar-nav-btn:disabled {
	background: #ced4da;
	cursor: not-allowed;
	transform: none;
}

.booking-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	margin-bottom: 20px;
}

.booking-calendar-day-header {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #6c757d;
	padding: 8px;
}

.booking-calendar-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid #dee2e6;
	background: white;
}

.booking-calendar-day:not(.booking-disabled):not(.booking-empty):hover {
	background: #e9ecef;
	transform: scale(1.05);
	border-color: #2A7178;
}

.booking-calendar-day.booking-disabled {
	color: #ced4da;
	cursor: not-allowed;
	background: #f8f9fa;
}

.booking-calendar-day.booking-empty {
	cursor: default;
	border-color: transparent;
	background: transparent;
}

.booking-calendar-day.booking-selected {
	background: #2A7178;
	color: white;
	font-weight: 600;
	border-color: #2A7178;
}

/* Doctor Cards */
.booking-doctors-container {
	display: grid;
	gap: 15px;
	margin-top: 20px;
}

.booking-doctor-card {
	border: 2px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	cursor: pointer;
}

.booking-doctor-card:hover {
	border-color: #2A7178;
	box-shadow: 0 4px 12px rgba(42, 113, 120, 0.15);
}

.booking-doctor-card.booking-selected {
	border-color: #2A7178;
	background: rgba(42, 113, 120, 0.05);
}

.booking-doctor-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.booking-doctor-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.booking-doctor-image {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #2A7178;
}

.booking-doctor-image-placeholder {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #2A7178;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 600;
}

.booking-doctor-details {
	flex: 1;
}

.booking-doctor-name {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.booking-doctor-specialty {
	font-size: 14px;
	color: #6c757d;
	margin-top: 2px;
}

.booking-time-slots-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.booking-time-slot {
	/*padding: 5px 8px;*/
	border: 2px solid #e9ecef;
	border-radius: 8px;
	text-align: center;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: white;
}

.booking-time-slot:hover {
	border-color: #2A7178;
	background: #f8f9fa;
}

.booking-time-slot.booking-selected {
	background: #2A7178;
	color: white;
	border-color: #2A7178;
	font-weight: 600;
}

/* Airline-style: slot currently being booked by someone else */
.booking-time-slot-held {
	background: repeating-linear-gradient(
		45deg, #fff7ed, #fff7ed 6px, #ffedd5 6px, #ffedd5 12px
	);
	border-color: #fdba74;
	color: #9a3412;
	cursor: not-allowed;
	position: relative;
}
.booking-time-slot-held:hover {
	border-color: #fdba74;
	background: repeating-linear-gradient(
		45deg, #fff7ed, #fff7ed 6px, #ffedd5 6px, #ffedd5 12px
	);
}
/* Hover tooltip block — only appears when hovering a being-booked slot. */
.booking-time-slot-held::after {
	content: 'Someone is booking this time';
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: #9a3412;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	padding: 6px 10px;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
	z-index: 20;
}
/* Little arrow under the tooltip. */
.booking-time-slot-held::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 3px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	border: 5px solid transparent;
	border-top-color: #9a3412;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
	z-index: 20;
}
.booking-time-slot-held:hover::after,
.booking-time-slot-held:hover::before {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Action Buttons */
.booking-form-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
	gap: 15px;
}

/* Keep the Next button on the right even when Previous is hidden (step 1). */
.booking-btn-next {
	margin-left: auto;
}

.booking-btn {
	padding: 5px 15px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.booking-btn-prev {
	background: #e9ecef;
	color: #495057;
}

.booking-btn-prev:hover {
	background: #dee2e6;
}

.booking-btn-next,
.booking-btn-submit {
	background: #2A7178;
	color: white;
}

.booking-btn-next:hover,
.booking-btn-submit:hover {
	background: #1f5a5f;
	box-shadow: 0 4px 12px rgba(42, 113, 120, 0.4);
}

.booking-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

/* Loading State */
.booking-loading {
	text-align: center;
	padding: 20px;
	color: #6c757d;
}

.booking-spinner {
	border: 3px solid #f3f3f3;
	border-top: 3px solid #2A7178;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
	padding: 15px 20px;
	border-radius: 10px;
	margin-bottom: 20px;
	display: none;
}

.alert.booking-show {
	display: block;
	animation: slideDown 0.3s ease;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

/* Medical Conditions */
.booking-conditions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin-top: 15px;
}

.booking-condition-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.booking-condition-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.booking-condition-item label {
	cursor: pointer;
	font-size: 14px;
}

/* Custom Questions */
.booking-custom-questions-container {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 2px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
	.booking-wizard {
		border-radius: 0;
	}

	.booking-progress-container {
		padding: 15px;
	}

	.booking-form-content {
		padding: 20px 15px;
	}

	.booking-step-title {
		font-size: 20px;
	}

	.booking-form-actions {
		flex-direction: column;
	}

	.booking-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Modal Styles */
.booking-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	padding: 20px;
}

.booking-modal-overlay.booking-show {
	display: flex;
	animation: fadeIn 0.3s ease;
}

.booking-modal {
	background: white;
	padding: 20px;
	border-radius: 15px;
	max-width: 500px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.booking-modal-header {
	margin-bottom: 15px;
	text-align: center;
}

.booking-modal-header h3 {
	color: #2c3e50;
	font-size: 20px;
	margin-bottom: 8px;
	font-weight: 600;
}

.booking-modal-header .booking-icon {
	font-size: 36px;
	margin-bottom: 8px;
}

.booking-modal-content .booking-important-text {
	color: #dc3545;
	font-weight: 600;
	margin-bottom: 12px;
	text-align: center;
	font-size: 14px;
}

.booking-modal-content .booking-question {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 12px;
	font-size: 15px;
	text-align: center;
}

.booking-conditions-list {
	background-color: #f8f9fa;
	padding: 15px;
	border-radius: 10px;
	margin-bottom: 15px;
	border: 2px solid #e9ecef;
	max-height: 300px;
	overflow-y: auto;
}

.booking-conditions-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.booking-conditions-list li {
	padding: 5px 0;
	padding-left: 20px;
	position: relative;
	color: #495057;
	line-height: 1.5;
	font-size: 14px;
}

.booking-conditions-list li:before {
	content: "•";
	color: #2A7178;
	font-weight: bold;
	font-size: 18px;
	position: absolute;
	left: 5px;
}

.booking-modal-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 15px;
}

.booking-modal-btn {
	padding: 12px 28px;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	flex: 1;
	max-width: 180px;
}

.booking-modal-btn.booking-yes {
	background-color: #dc3545;
	color: white;
}

.booking-modal-btn.booking-yes:hover {
	background-color: #c82333;
}

.booking-modal-btn.booking-no {
	background: #2A7178;
	color: white;
}

.booking-modal-btn.booking-no:hover {
	background: #1f5a5f;
}

.booking-start-over-btn {
	background: #2A7178;
	color: white;
	padding: 12px 32px;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 15px;
}

.booking-start-over-btn:hover {
	background: #1f5a5f;
}

.booking-not-available-content {
	text-align: center;
	padding: 15px 10px;
}

.booking-not-available-content p {
	margin-bottom: 12px;
	line-height: 1.5;
	color: #495057;
	font-size: 14px;
}

.booking-not-available-content p strong {
	color: #2c3e50;
}

@media (max-width: 768px) {
	.booking-modal {
		padding: 15px;
		max-width: 95%;
	}

	.booking-modal-header h3 {
		font-size: 18px;
	}

	.booking-modal-header .booking-icon {
		font-size: 32px;
	}

	.booking-conditions-list {
		max-height: 200px;
		padding: 12px;
	}

	.booking-conditions-list li {
		font-size: 13px;
	}
}

/* Success and Error Messages */
.booking-success-message, .booking-error-message {
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.6;
	display: none;
	animation: fadeIn 0.3s ease;
}

.booking-success-message.booking-show, .booking-error-message.booking-show {
	display: block;
}

.booking-success-message {
	background-color: #d4edda;
	color: #155724;
	border-left: 4px solid #28a745;
	margin:10px 5px;
}

.booking-error-message {
	background-color: #f8d7da;
	color: #721c24;
	border-left: 4px solid #dc3545;
}

.booking-success-message strong, .booking-error-message strong {
	font-weight: 600;
}

/* Loading Spinner */
.booking-loading-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #2A7178;
	border-radius: 50%;
	animation: booking-spin 0.8s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

@keyframes booking-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Loading state for select fields */
.booking-form-select.booking-loading,
.booking-form-input.booking-loading {
	background-color: #f8f9fa;
	cursor: wait;
	opacity: 0.7;
	pointer-events: none;
}

.booking-form-select:disabled,
.booking-form-input:disabled {
	background-color: #e9ecef;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Loading overlay for sections */
.booking-section-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.5;
}

.booking-section-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30px;
	height: 30px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #2A7178;
	border-radius: 50%;
	animation: booking-spin 0.8s linear infinite;
	z-index: 10;
}

/* Loading text */
.booking-loading-text {
	color: #6c757d;
	font-size: 14px;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.booking-loading-text .booking-loading-spinner {
	margin-left: 8px;
	margin-right: 0;
}

/* ── Image upload question ──────────────────────────────── */
.booking-upload-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.booking-file-input {
	padding: 8px;
	cursor: pointer;
}
.booking-upload-hint {
	font-size: 12px;
	color: #718096;
}
.booking-upload-preview img {
	display: block;
	max-width: 180px;
	max-height: 120px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	margin-top: 6px;
}
/* ── Service-type chooser (service_type = 'both') ── */
.booking-svctype-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 6px;
}
@media (max-width: 560px) {
	.booking-svctype-grid { grid-template-columns: 1fr; }
}
.booking-svctype-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.booking-svctype-card:hover {
	border-color: #2A7178;
	box-shadow: 0 2px 8px rgba(42, 113, 120, 0.12);
}
.booking-svctype-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.booking-svctype-card.booking-svctype-selected {
	border-color: #2A7178;
	background: #EAF4F5;
	box-shadow: 0 0 0 1px #2A7178;
}
.booking-svctype-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #EAF4F5;
	color: #2A7178;
}
.booking-svctype-selected .booking-svctype-icon {
	background: #2A7178;
	color: #fff;
}
.booking-svctype-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.booking-svctype-body strong { font-size: 14px; color: #1a2942; }
.booking-svctype-body small  { font-size: 12px; color: #64748b; line-height: 1.4; }
.booking-svctype-card:focus-within {
	outline: 2px solid #2A7178;
	outline-offset: 2px;
}

/* ── Medicine-type promo pricing ── */
.med-type-card-price-was {
	text-decoration: line-through;
	color: #94a3b8;
	font-weight: 400;
	font-size: 0.85em;
	margin-right: 6px;
}
.med-type-card-promo-note {
	font-size: 12px;
	color: #b45309;
	font-weight: 600;
	margin-top: 4px;
}