/* WP Medical Booking - Public Styles */

.wpmb-booking-wrapper {
	max-width: 800px;
	margin: 40px auto;
	padding: 30px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Steps Indicator */
.wpmb-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 40px;
	gap: 10px;
}

.wpmb-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	opacity: 0.4;
	transition: opacity 0.3s;
}

.wpmb-step.active {
	opacity: 1;
}

.wpmb-step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #666;
	transition: all 0.3s;
}

.wpmb-step.active .wpmb-step-number {
	background: #2c7be5;
	color: #fff;
}

.wpmb-step-label {
	font-size: 13px;
	color: #666;
	text-align: center;
}

.wpmb-step-divider {
	width: 60px;
	height: 2px;
	background: #e0e0e0;
	margin-top: -20px;
}

/* Step Content */
.wpmb-step-content {
	animation: fadeIn 0.4s ease-in-out;
}

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

.wpmb-step-title {
	font-size: 24px;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 8px;
	text-align: center;
}

.wpmb-step-subtitle {
	font-size: 15px;
	color: #7f8c8d;
	text-align: center;
	margin-bottom: 30px;
}

/* Calendar */
.wpmb-calendar-wrapper {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

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

.wpmb-calendar-nav h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.wpmb-nav-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	color: #2c7be5;
	transition: all 0.3s;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wpmb-nav-btn:hover {
	background: #2c7be5;
	color: #fff;
	transform: scale(1.1);
}

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

.wpmb-calendar-header span {
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #7f8c8d;
	padding: 8px 0;
}

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

.wpmb-calendar-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
	background: #fff;
	color: #2c3e50;
	border: 2px solid transparent;
}

.wpmb-calendar-day.empty {
	background: transparent;
	cursor: default;
}

.wpmb-calendar-day.past {
	background: #f0f0f0;
	color: #ccc;
	cursor: not-allowed;
}

.wpmb-calendar-day.unavailable {
	background: #f8d7da;
	color: #721c24;
	cursor: not-allowed;
}

.wpmb-calendar-day.available:hover {
	background: #e3f2fd;
	border-color: #2c7be5;
	transform: scale(1.05);
}

.wpmb-calendar-day.selected {
	background: #2c7be5;
	color: #fff;
	border-color: #2c7be5;
}

/* Legend */
.wpmb-legend {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
}

.wpmb-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.wpmb-legend-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
}

.wpmb-legend-dot.available {
	background: #fff;
	border: 2px solid #2c7be5;
}

.wpmb-legend-dot.unavailable {
	background: #f8d7da;
}

.wpmb-legend-dot.selected {
	background: #2c7be5;
}

/* Time Slots */
.wpmb-slots-wrapper {
	min-height: 300px;
	position: relative;
}

.wpmb-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
}

.wpmb-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #e0e0e0;
	border-top-color: #2c7be5;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.wpmb-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.wpmb-slot-btn {
	padding: 16px;
	border: 2px solid #e0e0e0;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #2c3e50;
	transition: all 0.3s;
	text-align: center;
}

.wpmb-slot-btn:hover {
	border-color: #2c7be5;
	background: #e3f2fd;
	transform: translateY(-2px);
}

.wpmb-slot-btn.selected {
	background: #2c7be5;
	color: #fff;
	border-color: #2c7be5;
}

.wpmb-no-slots {
	text-align: center;
	padding: 60px 20px;
	color: #7f8c8d;
}

.wpmb-no-slots-icon {
	font-size: 50px;
	margin-bottom: 15px;
}

/* Back Button */
.wpmb-back-btn {
	background: none;
	border: none;
	color: #2c7be5;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 20px;
	padding: 8px 0;
	transition: opacity 0.3s;
}

.wpmb-back-btn:hover {
	opacity: 0.7;
}

/* Booking Summary */
.wpmb-booking-summary {
	display: flex;
	align-items: center;
	gap: 15px;
	background: #e3f2fd;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	border-left: 4px solid #2c7be5;
}

.wpmb-summary-icon {
	font-size: 32px;
}

.wpmb-summary-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wpmb-summary-details strong {
	font-size: 16px;
	color: #2c3e50;
}

.wpmb-summary-details span {
	font-size: 14px;
	color: #7f8c8d;
}

/* Form */
.wpmb-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.wpmb-field-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wpmb-field-group label {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
}

.wpmb-field-group input {
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.3s;
	font-family: inherit;
}

.wpmb-field-group input:focus {
	outline: none;
	border-color: #2c7be5;
}

.required {
	color: #e74c3c;
}

.wpmb-terms-group {
	margin: 25px 0;
}

.wpmb-checkbox-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
	color: #2c3e50;
}

.wpmb-checkbox-label input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.wpmb-submit-btn {
	width: 100%;
	padding: 16px;
	background: #2c7be5;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 12px rgba(44, 123, 229, 0.3);
}

.wpmb-submit-btn:hover {
	background: #1e5bb8;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(44, 123, 229, 0.4);
}

.wpmb-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
}

.wpmb-btn-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.wpmb-spinner-small {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

.wpmb-form-error {
	background: #f8d7da;
	color: #721c24;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	border-left: 4px solid #dc3545;
}

/* Success Screen */
.wpmb-success-screen {
	text-align: center;
	padding: 40px 20px;
}

.wpmb-success-icon {
	font-size: 80px;
	margin-bottom: 20px;
}

.wpmb-success-screen h3 {
	font-size: 28px;
	color: #28a745;
	margin-bottom: 15px;
}

.wpmb-success-screen p {
	font-size: 16px;
	color: #666;
	margin-bottom: 30px;
}

.wpmb-success-details {
	background: #d4edda;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	border-left: 4px solid #28a745;
	font-size: 15px;
	color: #155724;
}

.wpmb-new-booking-btn {
	padding: 14px 30px;
	background: #2c7be5;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.wpmb-new-booking-btn:hover {
	background: #1e5bb8;
	transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
	.wpmb-booking-wrapper {
		padding: 20px;
		margin: 20px auto;
	}

	.wpmb-steps {
		gap: 5px;
	}

	.wpmb-step-label {
		font-size: 11px;
	}

	.wpmb-step-divider {
		width: 30px;
	}

	.wpmb-form-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.wpmb-slots-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 8px;
	}

	.wpmb-calendar-grid {
		gap: 4px;
	}

	.wpmb-calendar-day {
		font-size: 12px;
	}
}
