/* Public styles for Hospital & Doctor Booking Engine (Premium UI). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--hosp-primary: var(--e-global-color-primary, #3b82f6);
	--hosp-primary-hover: var(--e-global-color-accent, #2563eb);
	--hosp-bg: #f8fafc;
	--hosp-text: var(--e-global-color-text, #1e293b);
	--hosp-text-light: var(--e-global-color-secondary, #64748b);
	--hosp-border: #e2e8f0;
	--hosp-card-bg: rgba(255, 255, 255, 0.9);
	--hosp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--hosp-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--hosp-border-radius: 16px;
	--hosp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hosp-booking-form,
.hosp-doctor-grid,
.hosp-lab-test-grid {
	font-family: 'Inter', sans-serif;
	color: var(--hosp-text);
}

/* Booking Form */
.hosp-booking-form {
	width: 100%;
	background: var(--hosp-card-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 2.5rem;
	border-radius: var(--hosp-border-radius);
	box-shadow: var(--hosp-shadow);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.hosp-booking-form form {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	/* default if not set by Elementor */
}

.hosp-booking-form .hosp-step {
	flex: 1 1 auto;
	margin-bottom: 0;
}

.hosp-booking-form .hosp-step.hosp-step-full {
	flex: 1 1 100%;
}

.hosp-booking-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--hosp-text);
	font-size: 0.95rem;
}

.hosp-booking-form input,
.hosp-booking-form select {
	width: 100%;
	padding: 0.85rem 1rem;
	box-sizing: border-box;
	border: 1px solid var(--hosp-border);
	border-radius: 10px;
	background-color: #ffffff;
	font-family: inherit;
	font-size: 0.95rem;
	transition: var(--hosp-transition);
	color: var(--hosp-text);
}

.hosp-booking-form input:focus,
.hosp-booking-form select:focus {
	outline: none;
	border-color: var(--hosp-primary);
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.hosp-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hosp-slots p {
	color: var(--hosp-text-light);
	font-size: 0.9rem;
	margin: 0;
}

.hosp-slots label {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 0;
	border: none;
	cursor: pointer;
	font-weight: 500;
	margin: 0;
}

.hosp-slots input[type="radio"] {
	display: none;
}

.hosp-slots input[type="radio"]+span {
	background-color: #ffffff;
	color: var(--hosp-text);
	border: 1px solid var(--hosp-border);
	padding: 0.5rem 1rem;
	border-radius: 8px;
	transition: var(--hosp-transition);
	font-size: 0.9rem;
}

.hosp-slots input[type="radio"]:hover+span {
	border-color: var(--hosp-primary);
	background-color: #f0fdfa;
	color: #0f766e;
}

.hosp-slots input[type="radio"]:checked+span {
	background-color: var(--hosp-primary);
	color: var(--hosp-primary-text, #fff);
	border-color: var(--hosp-primary);
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.hosp-booking-form .button-primary {
	width: 100%;
	background: var(--hosp-primary);
	color: var(--hosp-primary-text, #fff);
	padding: 1rem 1.5rem;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	transition: var(--hosp-transition);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hosp-booking-form .button-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
}

.hosp-booking-form .button-primary:active {
	transform: translateY(0);
}

.hosp-message {
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 10px;
	font-weight: 500;
	display: none;
}

.hosp-message:not(:empty) {
	display: block;
	animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.hosp-message.success {
	background-color: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.hosp-message.error {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Booking Modal */
.hosp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	animation: fadeIn 0.25s ease;
}

.hosp-modal-overlay[style*="display:none"],
.hosp-modal-overlay[style*="display: none"] {
	display: none !important;
}

.hosp-modal-container {
	background: #fff;
	border-radius: var(--hosp-border-radius);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	width: 100%;
	max-width: 720px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: scale(0.92) translateY(20px);
	}

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

.hosp-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 2rem;
	border-bottom: 1px solid var(--hosp-border);
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
	border-radius: var(--hosp-border-radius) var(--hosp-border-radius) 0 0;
}

.hosp-modal-header h2 {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--hosp-text);
}

.hosp-modal-close {
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--hosp-text-light);
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	transition: var(--hosp-transition);
}

.hosp-modal-close:hover {
	color: var(--hosp-text);
	background: #f1f5f9;
}

.hosp-modal-body {
	padding: 0;
}

.hosp-modal-body .hosp-booking-form {
	box-shadow: none;
	border: none;
	border-radius: 0 0 var(--hosp-border-radius) var(--hosp-border-radius);
}

.hosp-modal-doctor-name {
	font-size: 1rem;
	color: var(--hosp-text-light);
	font-weight: 500;
}

/* Doctor Directory Layout */
.hosp-directory {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

/* Sidebar Filters */
.hosp-directory-sidebar {
	width: 280px;
	flex-shrink: 0;
	background: transparent;
}

.hosp-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.hosp-sidebar-header h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.hosp-clear-all-link {
	color: #0284c7;
	text-decoration: none;
	font-size: 0.9rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.hosp-clear-all-link:hover {
	text-decoration: underline;
}

.hosp-filter-group {
	margin-bottom: 1.5rem;
}

.hosp-filter-group h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.hosp-filter-trigger .arrow {
	font-size: 1.2rem;
	font-weight: 300;
	transition: transform 0.2s;
}

.hosp-alphabet-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hosp-alpha-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--hosp-border);
	background: #fff;
	color: var(--hosp-text);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.2s;
}

.hosp-alpha-btn:hover {
	border-color: #94a3b8;
}

.hosp-filter-select-link {
	color: #0284c7;
	text-decoration: none;
	font-size: 0.95rem;
	display: inline-block;
	margin-bottom: 0.5rem;
}

.hosp-sidebar-footer {
	margin-top: 2rem;
}

.hosp-clear-all-btn {
	width: 100%;
	padding: 0.75rem;
	border-radius: 30px;
	border: 1px solid var(--hosp-text);
	background: #fff;
	color: var(--hosp-text);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.hosp-clear-all-btn:hover {
	background: #f8fafc;
}

/* Main Content Area */
.hosp-directory-main {
	flex-grow: 1;
	min-width: 0;
}

.hosp-directory-banner {
	background: #ccfbf1;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	display: flex;
	align-items: center;
	margin-bottom: 2rem;
	font-size: 0.95rem;
	color: #0f766e;
}

.hosp-directory-banner .info-icon {
	margin-right: 0.75rem;
	font-size: 1.1rem;
}

.hosp-directory-banner .arrow {
	margin-left: auto;
	font-size: 1.2rem;
}

.hosp-directory-count {
	font-size: 0.9rem;
	color: var(--hosp-text-light);
	margin-bottom: 1.5rem;
}

.hosp-doctor-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hosp-doctor-list-card {
	background: #f8fafc;
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	gap: 2rem;
	transition: var(--hosp-transition);
}

.hosp-doctor-image {
	flex-shrink: 0;
}

.hosp-doctor-image img {
	width: 150px;
	height: 180px;
	object-fit: cover;
	border-radius: 12px;
	background: #e2e8f0;
}

.hosp-doctor-info {
	flex-grow: 1;
}

.hosp-doctor-name {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.hosp-doctor-qualifications {
	color: var(--hosp-text-light);
	font-size: 0.9rem;
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.hosp-meta-section {
	margin-bottom: 0.5rem;
}

.hosp-meta-label {
	display: block;
	font-weight: 700;
	font-size: 0.85rem;
	margin-bottom: 0.25rem;
	color: var(--hosp-text);
}

.hosp-meta-value {
	color: var(--hosp-text-light);
	font-size: 0.9rem;
}

.hosp-meta-grid {
	display: flex;
	gap: 1rem;
	font-size: 0.9rem;
	color: var(--hosp-text-light);
}

.hosp-meta-bar {
	border-top: 1px solid var(--hosp-border);
	padding-top: 0.25rem;
}

.hosp-meta-grid>span,
.hosp-meta-grid>div {
	flex: 1;
}

.hosp-meta-hospital {
	color: #0ea5e9 !important;
}

.hosp-doctor-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-shrink: 0;
	width: 180px;
}

.hosp-btn-book,
.hosp-btn-view {
	text-align: center;
	padding: 0.75rem 1rem;
	border-radius: 30px;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.2s;
	display: block;
}

.hosp-btn-book {
	background: #1e6fa3;
	color: #fff;
	border: 1px solid #1e6fa3;
}

.hosp-btn-book:hover {
	background: #165b87;
}

.hosp-btn-view {
	background: transparent;
	color: var(--hosp-text);
	border: 1px solid var(--hosp-text);
}

.hosp-btn-view:hover {
	background: #f1f5f9;
}

@media (max-width: 768px) {
	.hosp-directory {
		flex-direction: column;
	}

	.hosp-directory-sidebar {
		width: 100%;
	}

	.hosp-doctor-list-card {
		flex-direction: column;
	}

	.hosp-doctor-actions {
		width: 100%;
	}
}

/* Lab test grid / card styles */
.hosp-lab-test-grid {
	display: grid;
	grid-template-columns: repeat(var(--hosp-lab-grid-columns, 3), 1fr);
	gap: 2rem;
}

@media (max-width: 992px) {
	.hosp-lab-test-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.hosp-lab-test-grid {
		grid-template-columns: 1fr;
	}
}

.hosp-lab-test-card {
	border: 1px solid var(--hosp-border);
	border-radius: var(--hosp-border-radius);
	padding: 2rem;
	text-align: center;
	background: var(--hosp-card-bg);
	box-shadow: var(--hosp-shadow);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hosp-lab-test-card__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--hosp-text);
}

.hosp-lab-test-card__category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hosp-primary);
	background: #eff6ff;
	padding: 0.35rem 0.85rem;
	border-radius: 20px;
	margin-bottom: 1.25rem;
}

.hosp-lab-test-card__price {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--hosp-text);
	margin-bottom: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hosp-lab-test-card__link.button {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	background: #f8fafc;
	color: var(--hosp-text);
	border: 1px solid var(--hosp-border);
	padding: 0.85rem;
	border-radius: 10px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--hosp-transition);
	margin-top: auto;
}

.hosp-lab-test-card__link.button:hover {
	background: var(--hosp-primary);
	color: var(--hosp-primary-text, #fff);
	border-color: var(--hosp-primary);
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Lab test table */
.hosp-lab-test-table-wrapper {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: #1f2937;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
	padding: 24px;
	margin-bottom: 2rem;
}

.hosp-lab-test-table-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.hosp-lab-test-table-toolbar select,
.hosp-lab-test-table-toolbar input {
	min-height: 44px;
	padding: 0.6rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #f9fafb;
	color: #1f2937;
	font: inherit;
	transition: all 0.2s ease;
}

.hosp-lab-test-table-toolbar select:focus,
.hosp-lab-test-table-toolbar input:focus {
	outline: none;
	border-color: var(--hosp-primary);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	background: #ffffff;
}

.hosp-lab-test-table-toolbar input {
	min-width: 260px;
}

.hosp-lab-test-table__per-page-wrap {
	display: inline-flex;
	gap: 0.75rem;
	align-items: center;
	font-weight: 500;
	color: #6b7280;
}

.hosp-lab-test-table__responsive {
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid #f3f4f6;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.hosp-lab-test-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
}

.hosp-lab-test-table th,
.hosp-lab-test-table td {
	padding: 1.25rem 1.5rem;
	text-align: left;
	border-bottom: 1px solid #f3f4f6;
}

.hosp-lab-test-table th {
	background: #f1f5f9;
	font-weight: 600;
	color: #475569;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}

.hosp-lab-test-table th:first-child {
	border-top-left-radius: 12px;
}

.hosp-lab-test-table th:last-child {
	border-top-right-radius: 12px;
}

.hosp-lab-test-table tr:last-child td {
	border-bottom: 0;
}

.hosp-lab-test-table a {
	color: var(--hosp-primary);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.hosp-lab-test-table a:hover {
	color: #2563eb;
	text-decoration: underline;
}

.hosp-lab-test-table__error {
	color: #ef4444;
	padding: 1rem;
	background: #fef2f2;
	border-radius: 8px;
	border: 1px solid #fecaca;
}

.hosp-lab-test-table__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
	justify-content: flex-end;
}

.hosp-lab-test-table__pagination button {
	min-width: 40px;
	min-height: 40px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
	color: #475569;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s ease;
}

.hosp-lab-test-table__pagination button:hover:not(:disabled) {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #1e293b;
}

.hosp-lab-test-table__pagination button.is-current {
	color: #ffffff;
	border-color: var(--hosp-primary);
	background: var(--hosp-primary);
	box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.hosp-lab-test-table__pagination button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
	background: #f8fafc;
}

@media (max-width: 576px) {
	.hosp-lab-test-table-toolbar input {
		min-width: 0;
		width: 100%;
	}
}

/* Ensure jQuery Datepicker is styled and positioned properly */
#ui-datepicker-div,
.ui-datepicker {
	position: fixed !important;
	z-index: 999999 !important;
	max-width: 320px !important;
	width: auto !important;
	background: #ffffff !important;
	border: 1px solid var(--hosp-border) !important;
	border-radius: 12px !important;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
	padding: 12px !important;
	font-family: inherit !important;
}

.ui-datepicker table {
	margin: 0 !important;
}

.ui-datepicker td span,
.ui-datepicker td a {
	text-align: center !important;
	border-radius: 6px !important;
}

.ui-datepicker .ui-state-active {
	background: var(--hosp-primary) !important;
	color: #fff !important;
}/* Single Doctor Card (Elementor Widget Default Styles) */
.hosp-single-doctor-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	text-align: center;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	border: 1px solid #f1f5f9;
}
.hosp-single-doctor-card .hosp-card-image-wrap {
	position: relative;
	width: 100%;
	background: #e2e8f0;
}
.hosp-single-doctor-card .hosp-card-image-wrap img {
	width: 100%;
	aspect-ratio: 4 / 5;
	display: block;
	object-fit: cover;
	border-radius: 16px 16px 0 0;
}
.hosp-single-doctor-card .hosp-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #e74c3c;
	color: #fff;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	z-index: 2;
}
.hosp-single-doctor-card .hosp-card-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.hosp-single-doctor-card .hosp-name {
	margin: 0 0 5px 0;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}
.hosp-single-doctor-card .hosp-qualifications {
	margin: 0 0 5px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1e3a8a;
}
.hosp-single-doctor-card .hosp-specialty {
	margin: 0 0 15px 0;
	font-size: 14px;
	color: #64748b;
}
.hosp-single-doctor-card .hosp-divider {
	height: 1px;
	background: #e2e8f0;
	margin: 15px 0;
	width: 100%;
}
.hosp-single-doctor-card .hosp-availability {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 14px;
}
.hosp-single-doctor-card .hosp-avail-days {
	color: #64748b;
}
.hosp-single-doctor-card .hosp-avail-time {
	color: #1e3a8a;
	font-weight: 600;
}
.hosp-single-doctor-card .hosp-button {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 20px;
	border: 1px solid #1e3a8a;
	border-radius: 30px;
	color: #1e3a8a;
	text-decoration: none;
	font-weight: 600;
	background: transparent;
	transition: all 0.3s ease;
}
.hosp-single-doctor-card .hosp-button:hover {
	background: #1e3a8a;
	color: #ffffff;
}
.hosp-view-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--hosp-grid-cols, 3), 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .hosp-view-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .hosp-view-grid {
        grid-template-columns: 1fr !important;
    }
}

.hosp-doctor-results-container.hosp-view-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hosp-view-list .hosp-grid-layout { 
    display: none !important; 
}

.hosp-view-grid .hosp-list-layout { 
    display: none !important; 
}

.hosp-view-grid .hosp-grid-layout {
    height: 100%;
}
.hosp-view-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
}
.hosp-view-btn.active {
    background: var(--hosp-primary);
    color: #fff;
    border-color: var(--hosp-primary);
}
