/* Booking Modal Overlay */
.xbadb-modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.6);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: 0.3s ease;
}
.xbadb-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Modal Card */
.xbadb-modal-card {
	background: #fff;
	width: 90%;
	max-width: 480px;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	transform: translateY(20px);
	transition: 0.3s ease;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}
.xbadb-modal-overlay.active .xbadb-modal-card {
	transform: translateY(0);
}

/* Header */
.xbadb-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eaeaea;
	padding-bottom: 15px;
	margin-bottom: 20px;
}
.xbadb-modal-header h3 {
	margin: 0;
	font-size: 20px;
	color: #0b2e59; /* Brand Primary */
	font-weight: 800;
}
.xbadb-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #888;
	transition: 0.2s;
}
.xbadb-modal-close:hover {
	color: #e74c3c;
}

/* Form Groups */
.xbadb-form-group {
	margin-bottom: 15px;
	text-align: right;
}
.xbadb-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #2c3e50;
	font-size: 14px;
}

/* Time Slot Grid */
.xbadb-time-slot-btn {
	background: #fff;
	border: 1px solid #0b2e59;
	color: #0b2e59;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	flex: 1 1 calc(33.333% - 10px);
	text-align: center;
	min-width: 70px;
	position: relative;
	overflow: hidden;
}

.xbadb-time-slot-btn:hover {
	background: #f0f7ff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(11, 46, 89, 0.1);
}

.xbadb-time-slot-btn.selected {
	background: #005a9c;
	color: #fff;
	font-weight: bold;
	box-shadow: 0 4px 10px rgba(0, 90, 156, 0.3);
	transform: translateY(-2px);
}
.xbadb-form-group input, 
.xbadb-form-group select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s;
	box-sizing: border-box;
}
.xbadb-form-group input:focus, 
.xbadb-form-group select:focus {
	outline: none;
	border-color: #0b2e59;
}

/* Submit Button */
.xbadb-btn-submit {
	width: 100%;
	background: #0b2e59;
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 10px;
	position: relative;
	overflow: hidden;
}
.xbadb-btn-submit::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
	transform: skewX(-25deg);
	transition: left 0.5s ease;
}
.xbadb-btn-submit:hover {
	background: #114b91;
	box-shadow: 0 6px 15px rgba(11, 46, 89, 0.4);
	transform: translateY(-2px);
}
.xbadb-btn-submit:hover::after {
	left: 150%;
}
.xbadb-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Notification Box */
.xbadb-notification {
	margin-top: 20px;
	padding: 15px;
	border-radius: 8px;
	font-weight: 600;
	display: none;
	text-align: center;
}
.xbadb-notification.success {
	display: block;
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.xbadb-notification.error {
	display: block;
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Success State Override */
.xbadb-success-state {
	text-align: center;
	padding: 30px 10px;
}
.xbadb-success-state .icon {
	font-size: 60px;
	color: #2ecc71;
	margin-bottom: 20px;
}
.xbadb-success-state h3 {
	color: #2c3e50;
	margin-bottom: 10px;
}
.xbadb-success-state p {
	color: #7f8c8d;
	line-height: 1.6;
}
