/* ============================================================
   City Hospital Gujranwala – Doctors Directory
   MMI-style layout | ABJ Digital Marketing
   ============================================================ */

.chg-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 16px 40px;
	color: #1a1a2e;
	line-height: 1.5;
	box-sizing: border-box;
}

.chg-wrapper *,
.chg-wrapper *::before,
.chg-wrapper *::after {
	box-sizing: border-box;
}

/* Header */
.chg-header {
	text-align: center;
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e8eef5;
}

.chg-hospital-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #0d3b66;
	margin: 0 0 6px;
}

.chg-subtitle {
	font-size: 0.92rem;
	color: #5a6a7a;
	margin: 0 0 14px;
}

.chg-contact-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
	font-size: 0.82rem;
	color: #445566;
}

.chg-contact-bar a {
	color: #0d6efd;
	text-decoration: none;
}

.chg-contact-bar a:hover {
	text-decoration: underline;
}

/* ========== TOOLBAR ========== */
.chg-toolbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e8eef5;
}

.chg-section-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #0d3b66;
	margin: 0;
	flex-shrink: 0;
	white-space: nowrap;
}

.chg-toolbar-right {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	flex: 1;
	justify-content: flex-end;
}

/* Specialty / By Name toggle */
.chg-mode-toggle {
	display: inline-flex;
	background: #e8eef5;
	border-radius: 24px;
	padding: 3px;
	gap: 0;
	flex-shrink: 0;
}

.chg-mode-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #5a6a7a;
	cursor: pointer;
	margin: 0;
	transition: all 0.2s ease;
	border: none;
	background: transparent;
}

.chg-mode-btn input {
	display: none;
}

.chg-mode-btn.is-active,
.chg-mode-btn:has(input:checked) {
	background: #0d3b66;
	color: #fff;
}

.chg-mode-btn:hover:not(.is-active) {
	color: #0d3b66;
}

/* Department select */
.chg-dept-select {
	appearance: none;
	-webkit-appearance: none;
	padding: 9px 32px 9px 14px;
	border: 1.5px solid #c5d0dc;
	border-radius: 8px;
	font-size: 0.85rem;
	color: #1a1a2e;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6a7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
	cursor: pointer;
	min-width: 100px;
	height: 40px;
}

.chg-dept-select:focus {
	outline: none;
	border-color: #0d6efd;
}

/* Search box */
.chg-search-box {
	display: flex;
	align-items: center;
	border: 1.5px solid #c5d0dc;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	min-width: 200px;
}

.chg-search-box input {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 9px 12px;
	font-size: 0.85rem;
	width: 160px;
	flex: 1;
	color: #1a1a2e;
	background: transparent;
	border-radius: 0;
}

.chg-search-box input::placeholder {
	color: #8a9aaa;
}

.chg-search-btn {
	border: none;
	background: transparent;
	padding: 8px 12px;
	cursor: pointer;
	color: #5a6a7a;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 100%;
}

.chg-search-btn:hover {
	color: #0d6efd;
}

.chg-results-meta {
	font-size: 0.8rem;
	color: #8a9aaa;
	margin-bottom: 16px;
}

/* ========== DOCTOR CARDS (horizontal MMI style) ========== */
.chg-doctors-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.chg-doctor-card {
	background: #eef5fb;
	border-radius: 12px;
	border: 1px solid #dce8f4;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	padding: 18px 16px;
	gap: 14px;
	transition: box-shadow 0.2s ease, background 0.2s ease;
}

.chg-doctor-card:hover {
	box-shadow: 0 4px 16px rgba(13, 59, 102, 0.1);
	background: #e6f0f9;
}

.chg-doctor-card.is-hidden {
	display: none;
}

.chg-card-left {
	flex-shrink: 0;
}

.chg-doctor-photo img,
.chg-avatar-placeholder {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.chg-avatar-placeholder {
	background: #c5d8ec;
	color: #5a7a9a;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

.chg-card-right {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.chg-doctor-name {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0d3b66;
	margin: 0 0 2px;
	line-height: 1.3;
}

.chg-doctor-dept {
	font-size: 0.8rem;
	font-weight: 500;
	color: #3a5a7a;
	margin: 0 0 2px;
	line-height: 1.35;
}

.chg-doctor-qual {
	font-size: 0.78rem;
	color: #5a6a7a;
	margin: 0;
	line-height: 1.35;
}

.chg-timings-inline {
	font-size: 0.8rem;
	color: #2a3a4a;
	padding: 4px 0;
}

.chg-timings-label {
	font-weight: 600;
	color: #3a7ca5;
	margin-right: 6px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.chg-time-text {
	font-weight: 600;
}

.chg-days {
	font-weight: 400;
	color: #5a6a7a;
}

/* Actions */
.chg-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.chg-btn,
a/* chg-btn moved to unified */

.chg-btn:hover,
a.chg-btn:hover {
	background: #000 !important;
	border-color: #000 !important;
	color: #fff !important;
}

.chg-btn-text {
	/* kept for compatibility but styled as outline */
	color: #000;
	border: 1.5px solid #000;
	background: #fff;
	padding: 8px 16px;
}

.chg-btn-outline {
	background: #fff;
	border-color: #000;
	color: #000;
}

.chg-btn-primary {
	background: #fff;
	border-color: #000;
	color: #000;
	text-decoration: none;
}

.chg-btn-primary:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}

.chg-no-results {
	text-align: center;
	padding: 40px 20px;
	color: #5a6a7a;
	font-size: 0.95rem;
}

/* Footer */
.chg-footer-credit {
	display: none !important;
}

.chg-footer-credit a {
	color: #0d6efd;
	text-decoration: none;
	font-weight: 600;
}

/* ========== MODALS ========== */
.chg-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chg-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.chg-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 25, 45, 0.55);
	backdrop-filter: blur(3px);
}

.chg-modal-content {
	position: relative;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.25);
	width: 92%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(20px) scale(0.97);
	transition: transform 0.25s ease;
}

.chg-modal.is-open .chg-modal-content {
	transform: translateY(0) scale(1);
}

.chg-book-content {
	max-width: 680px;
}

.chg-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	background: #f0f4f8;
	border-radius: 50%;
	font-size: 1.35rem;
	line-height: 1;
	color: #445566;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.chg-modal-close:hover {
	background: #dde5ee;
}

.chg-modal-body {
	padding: 28px 24px 24px;
}

.chg-detail-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e8eef5;
}

.chg-detail-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #c5d8ec;
	color: #5a7a9a;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.chg-detail-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chg-detail-name {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0d3b66;
	margin: 0 0 2px;
}

.chg-detail-dept {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #3a7ca5;
	text-transform: uppercase;
	margin: 0;
}

.chg-section-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #3a7ca5;
	margin: 14px 0 4px;
}

.chg-section-text {
	font-size: 0.9rem;
	color: #2a3a4a;
	margin: 0 0 4px;
	line-height: 1.55;
}

.chg-timings-box {
	background: #f5f9fc;
	border-radius: 8px;
	padding: 10px 14px;
	margin-top: 4px;
	border-left: 3px solid #0d6efd;
}

.chg-modal-actions {
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

/* Book form */
.chg-book-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (min-width: 600px) {
	.chg-book-layout {
		flex-direction: row;
		align-items: flex-start;
	}
	.chg-book-doctor-side {
		width: 40%;
		flex-shrink: 0;
	}
	.chg-book-form-side {
		flex: 1;
	}
}

.chg-book-doctor-side {
	text-align: center;
	padding: 8px 0;
}

.chg-book-doctor-side .chg-detail-avatar {
	margin: 0 auto 10px;
	width: 84px;
	height: 84px;
}

.chg-book-form .chg-field {
	margin-bottom: 12px;
}

.chg-book-form label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: #445566;
	margin-bottom: 4px;
}

.chg-book-form input[type="text"],
.chg-book-form input[type="email"],
.chg-book-form input[type="tel"],
.chg-book-form input[type="number"],
.chg-book-form input[type="date"],
.chg-book-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #d0dae6;
	border-radius: 7px;
	font-size: 0.9rem;
	color: #1a1a2e;
	background: #fff;
}

.chg-book-form input:focus,
.chg-book-form textarea:focus {
	outline: none;
	border-color: #0d6efd;
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.chg-book-form textarea {
	min-height: 70px;
	resize: vertical;
}

.chg-gender-group {
	display: flex;
	gap: 18px;
	padding-top: 4px;
}

.chg-gender-group label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	cursor: pointer;
	font-size: 0.9rem;
}

.chg-submit-btn {
	width: 100%;
	padding: 12px;
	font-size: 0.95rem;
	font-weight: 700;
	background: #000;
	color: #fff;
	border: 2px solid #000;
	border-radius: 8px;
	cursor: pointer;
	margin-top: 8px;
}

.chg-submit-btn:hover {
	background: #fff;
	color: #000;
}

.chg-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.chg-form-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 7px;
	font-size: 0.88rem;
	display: none;
}

.chg-form-message.success {
	display: block;
	background: #e6f7ee;
	color: #0a7a3e;
	border: 1px solid #b3e6c9;
}

.chg-form-message.error {
	display: block;
	background: #fdecea;
	color: #b71c1c;
	border: 1px solid #f5c6c2;
}

/* Info box */
.chg-info-box {
	background: #f5f9fc;
	border-radius: 10px;
	padding: 18px 22px;
	border-left: 4px solid #0d6efd;
	margin: 15px 0;
}

.chg-info-box h3 {
	margin: 0 0 10px;
	color: #0d3b66;
}

.chg-info-box ul {
	margin: 0;
	padding-left: 18px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
	.chg-doctors-grid {
		grid-template-columns: 1fr;
	}

	.chg-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.chg-toolbar-right {
		flex-direction: column;
		align-items: stretch;
	}

	.chg-mode-toggle {
		justify-content: center;
	}

	.chg-search-box input {
		width: 100%;
		flex: 1;
	}

	.chg-dept-select {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.chg-hospital-title {
		font-size: 1.4rem;
	}

	.chg-doctor-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.chg-card-actions {
		justify-content: center;
	}

	.chg-card-right {
		align-items: center;
	}
}


/* ========== TABLET (portrait) ========== */
@media (min-width: 481px) and (max-width: 900px) {
	.chg-doctors-grid {
		grid-template-columns: 1fr;
	}
	.chg-doctor-card {
		padding: 16px;
	}
	.chg-search-box input {
		width: 140px;
	}
}

/* Touch-friendly targets */
@media (pointer: coarse) {
	.chg-btn {
		min-height: 40px;
		padding: 10px 16px;
	}
	.chg-mode-btn {
		padding: 10px 18px;
	}
	.chg-search-box input {
		padding: 12px 14px;
		font-size: 16px; /* prevent iOS zoom */
	}
	.chg-dept-select {
		padding: 12px 32px 12px 14px;
		font-size: 16px;
	}
	.chg-book-form input,
	.chg-book-form textarea {
		font-size: 16px;
		padding: 12px;
	}
}

/* Prevent layout shift */
.chg-doctor-photo {
	min-width: 72px;
	min-height: 72px;
}


/* Booking page */
.chg-book-page-layout {
	margin-top: 10px;
}
.chg-booking-intro {
	color: #5a6a7a;
	margin: 0 0 20px;
}
.chg-doctor-select-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}
.chg-picker-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #eef5fb;
	border: 1.5px solid #000;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s, color 0.2s;
}
.chg-picker-card:hover {
	background: #000;
	color: #fff;
}
.chg-picker-card:hover .chg-doctor-name,
.chg-picker-card:hover .chg-doctor-dept,
.chg-picker-card:hover .chg-doctor-qual {
	color: #fff;
}
.chg-picker-card .chg-doctor-photo img,
.chg-picker-card .chg-avatar-placeholder {
	width: 56px;
	height: 56px;
}
.chg-book-now-link {
	text-decoration: none;
}
.chg-btn-text {
	color: #000;
	border: 1.5px solid #000;
	border-radius: 20px;
	padding: 7px 14px;
}
.chg-btn-text:hover {
	background: #000;
	color: #fff;
}
.chg-toggle-icon {
	background: transparent;
	border: 1px solid currentColor;
}


/* Unified action buttons */
.chg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 20px;
	border: 1.5px solid #000;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	line-height: 1.3;
	background: #fff;
	color: #000;
	white-space: nowrap;
}
.chg-btn:hover,
.chg-btn:focus {
	background: #000 !important;
	border-color: #000 !important;
	color: #fff !important;
}
.chg-btn-outline,
.chg-btn-primary,
.chg-btn-text,
.chg-book-now-link {
	background: #fff;
	border: 1.5px solid #000;
	color: #000;
	text-decoration: none;
}
.chg-btn-outline:hover,
.chg-btn-primary:hover,
.chg-btn-text:hover,
.chg-book-now-link:hover {
	background: #000 !important;
	border-color: #000 !important;
	color: #fff !important;
}
.chg-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid currentColor;
	font-size: 0.7rem;
	margin-left: 5px;
	font-weight: 700;
	line-height: 1;
	background: transparent;
}
.chg-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

/* Desktop/tablet: keep toolbar one row */
@media (min-width: 769px) {
	.chg-toolbar {
		flex-wrap: nowrap;
	}
	.chg-toolbar-right {
		flex-wrap: nowrap;
	}
}
@media (max-width: 768px) {
	.chg-toolbar {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: wrap;
	}
	.chg-toolbar-right {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	.chg-search-box {
		min-width: 0;
		flex: 1;
		width: 100%;
	}
	.chg-search-box input {
		width: 100%;
	}
	.chg-dept-select {
		flex: 1;
		min-width: 120px;
	}
}


/* ========== FINAL OVERRIDES – exact reference match ========== */
.chg-wrapper .chg-toolbar {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	margin-bottom: 0 !important;
	padding-bottom: 12px !important;
	border-bottom: none !important;
}
.chg-wrapper .chg-toolbar-right {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 10px !important;
	margin-left: auto !important;
	justify-content: flex-end !important;
}
.chg-wrapper .chg-section-title {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: #1a1a2e !important;
	margin: 0 !important;
}
.chg-wrapper .chg-mode-toggle {
	display: inline-flex !important;
	background: transparent !important;
	padding: 0 !important;
	gap: 6px !important;
	border-radius: 0 !important;
}
.chg-wrapper .chg-mode-btn {
	display: inline-flex !important;
	align-items: center !important;
	padding: 7px 16px !important;
	border-radius: 20px !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	border: 1.5px solid #d0d5dd !important;
	background: #fff !important;
	color: #344054 !important;
	margin: 0 !important;
}
.chg-wrapper .chg-mode-btn.is-active,
.chg-wrapper .chg-mode-btn:has(input:checked) {
	background: #000 !important;
	border-color: #000 !important;
	color: #fff !important;
}
.chg-wrapper .chg-dept-select {
	height: 38px !important;
	padding: 0 36px 0 14px !important;
	border: 1.5px solid #d0d5dd !important;
	border-radius: 8px !important;
	font-size: 0.85rem !important;
	background-color: #fff !important;
	min-width: 90px !important;
	line-height: 38px !important;
}
.chg-wrapper .chg-search-box {
	display: flex !important;
	align-items: center !important;
	height: 38px !important;
	border: 1.5px solid #d0d5dd !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #fff !important;
	width: 180px !important;
	min-width: 140px !important;
}
.chg-wrapper .chg-search-box input {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 0 8px 0 12px !important;
	height: 100% !important;
	font-size: 0.85rem !important;
	background: transparent !important;
}
.chg-wrapper .chg-search-btn {
	border: none !important;
	background: transparent !important;
	padding: 0 12px !important;
	height: 100% !important;
	color: #667085 !important;
}

/* Buttons – follow reference hierarchy, black theme */
.chg-wrapper .chg-card-actions {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
	margin-top: 8px !important;
}
/* See timings = text link + circle icon */
.chg-wrapper .chg-see-timings {
	background: transparent !important;
	border: none !important;
	color: #1a1a2e !important;
	padding: 6px 4px !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	font-size: 0.82rem !important;
}
.chg-wrapper .chg-see-timings:hover {
	background: transparent !important;
	color: #000 !important;
	text-decoration: underline !important;
}
.chg-wrapper .chg-see-timings .chg-toggle-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	border: 1.5px solid currentColor !important;
	font-size: 0.7rem !important;
	margin-left: 4px !important;
	font-weight: 700 !important;
	background: transparent !important;
}
/* See detail = outline pill, black */
.chg-wrapper .chg-see-detail {
	background: #fff !important;
	border: 1.5px solid #000 !important;
	color: #000 !important;
	border-radius: 20px !important;
	padding: 7px 16px !important;
	font-weight: 600 !important;
	font-size: 0.8rem !important;
}
.chg-wrapper .chg-see-detail:hover {
	background: #000 !important;
	color: #fff !important;
	border-color: #000 !important;
}
/* Book Now = solid black fill */
.chg-wrapper .chg-book-now-link,
.chg-wrapper .chg-btn-primary {
	background: #000 !important;
	border: 1.5px solid #000 !important;
	color: #fff !important;
	border-radius: 20px !important;
	padding: 7px 16px !important;
	font-weight: 600 !important;
	font-size: 0.8rem !important;
	text-decoration: none !important;
}
.chg-wrapper .chg-book-now-link:hover,
.chg-wrapper .chg-btn-primary:hover {
	background: #333 !important;
	border-color: #333 !important;
	color: #fff !important;
}

@media (max-width: 768px) {
	.chg-wrapper .chg-toolbar {
		flex-wrap: wrap !important;
		flex-direction: column !important;
		align-items: stretch !important;
	}
	.chg-wrapper .chg-toolbar-right {
		flex-wrap: wrap !important;
		justify-content: flex-start !important;
		margin-left: 0 !important;
	}
	.chg-wrapper .chg-search-box {
		width: 100% !important;
		min-width: 0 !important;
	}
}


/* ========== SEARCH BAR exact + modal X simple ========== */
.chg-wrapper .chg-toolbar-right {
	gap: 8px !important;
}
.chg-wrapper .chg-search-box {
	display: flex !important;
	align-items: center !important;
	height: 38px !important;
	width: 220px !important;
	min-width: 200px !important;
	max-width: 260px !important;
	border: 1.5px solid #d0d5dd !important;
	border-radius: 8px !important;
	background: #fff !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}
.chg-wrapper .chg-search-box input,
.chg-wrapper .chg-search-box input[type="search"] {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	background: transparent !important;
	height: 100% !important;
	width: 100% !important;
	min-width: 0 !important;
	padding: 0 4px 0 14px !important;
	font-size: 0.875rem !important;
	line-height: 38px !important;
	color: #1a1a2e !important;
}
.chg-wrapper .chg-search-box input::placeholder {
	color: #98a2b3 !important;
	opacity: 1 !important;
}
/* hide browser clear X on search inputs */
.chg-wrapper .chg-search-box input[type="search"]::-webkit-search-cancel-button,
.chg-wrapper .chg-search-box input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: none !important;
}
.chg-wrapper .chg-search-btn {
	flex-shrink: 0 !important;
	width: 40px !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	background: transparent !important;
	color: #667085 !important;
	padding: 0 !important;
	cursor: pointer !important;
}
.chg-wrapper .chg-dept-select {
	width: auto !important;
	min-width: 80px !important;
	max-width: 120px !important;
	flex-shrink: 0 !important;
}

/* Modal close – simple X, NO hover background */
.chg-modal-close,
.chg-wrapper .chg-modal-close,
#chg-timings-modal .chg-modal-close,
#chg-detail-modal .chg-modal-close,
#chg-book-modal .chg-modal-close {
	position: absolute !important;
	top: 10px !important;
	right: 12px !important;
	width: 32px !important;
	height: 32px !important;
	border: none !important;
	background: transparent !important;
	background-color: transparent !important;
	border-radius: 0 !important;
	font-size: 1.5rem !important;
	line-height: 1 !important;
	color: #667085 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	box-shadow: none !important;
	transition: none !important;
}
.chg-modal-close:hover,
.chg-modal-close:focus,
.chg-modal-close:active,
.chg-wrapper .chg-modal-close:hover,
.chg-wrapper .chg-modal-close:focus {
	background: transparent !important;
	background-color: transparent !important;
	color: #1a1a2e !important;
	box-shadow: none !important;
	border: none !important;
	outline: none !important;
}


/* ========== TOOLBAR EXACT REFERENCE v2 ========== */
.chg-wrapper .chg-toolbar {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 20px !important;
	margin: 0 0 4px !important;
	padding: 0 0 16px !important;
	border-bottom: 1px solid #e8eef5 !important;
}
.chg-wrapper .chg-toolbar-left {
	flex-shrink: 0 !important;
}
.chg-wrapper .chg-section-title {
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	color: #1a1a2e !important;
	margin: 0 !important;
	letter-spacing: -0.02em !important;
}
.chg-wrapper .chg-toolbar-right {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 10px !important;
	margin-left: auto !important;
}

/* Specialty / By Name pills with radio dots */
.chg-wrapper .chg-mode-toggle {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: transparent !important;
	padding: 0 !important;
}
.chg-wrapper .chg-mode-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 8px 18px !important;
	border-radius: 24px !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	margin: 0 !important;
	border: 1.5px solid #d0d5dd !important;
	background: #fff !important;
	color: #344054 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}
.chg-wrapper .chg-mode-btn input {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.chg-wrapper .chg-radio-dot {
	display: inline-block !important;
	width: 14px !important;
	height: 14px !important;
	border-radius: 50% !important;
	border: 2px solid #98a2b3 !important;
	background: transparent !important;
	flex-shrink: 0 !important;
	box-sizing: border-box !important;
	position: relative !important;
}
.chg-wrapper .chg-mode-btn.is-active,
.chg-wrapper .chg-mode-btn:has(input:checked) {
	background: #000 !important;
	border-color: #000 !important;
	color: #fff !important;
}
.chg-wrapper .chg-mode-btn.is-active .chg-radio-dot,
.chg-wrapper .chg-mode-btn:has(input:checked) .chg-radio-dot {
	border-color: #fff !important;
	background: #fff !important;
	box-shadow: inset 0 0 0 3px #000 !important;
}

/* All dropdown – compact like reference */
.chg-wrapper .chg-dept-select {
	height: 40px !important;
	min-width: 72px !important;
	max-width: 100px !important;
	width: auto !important;
	padding: 0 32px 0 14px !important;
	border: 1.5px solid #d0d5dd !important;
	border-radius: 8px !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	color: #344054 !important;
	background-color: #fff !important;
	line-height: 40px !important;
	flex-shrink: 0 !important;
}

/* Search – compact rounded like reference */
.chg-wrapper .chg-search-box {
	display: flex !important;
	align-items: center !important;
	height: 40px !important;
	width: 160px !important;
	min-width: 140px !important;
	max-width: 180px !important;
	border: 1.5px solid #d0d5dd !important;
	border-radius: 8px !important;
	background: #fff !important;
	overflow: hidden !important;
	flex-shrink: 0 !important;
}
.chg-wrapper .chg-search-box input,
.chg-wrapper .chg-search-box input[type="search"] {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	height: 100% !important;
	width: 100% !important;
	min-width: 0 !important;
	padding: 0 0 0 12px !important;
	font-size: 0.875rem !important;
	color: #1a1a2e !important;
}
.chg-wrapper .chg-search-box input::placeholder {
	color: #98a2b3 !important;
}
.chg-wrapper .chg-search-box input[type="search"]::-webkit-search-cancel-button {
	display: none !important;
}
.chg-wrapper .chg-search-btn {
	width: 36px !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	background: transparent !important;
	color: #667085 !important;
	padding: 0 !important;
	flex-shrink: 0 !important;
}

.chg-wrapper .chg-results-meta {
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: none !important;
	font-size: 0.8rem !important;
	color: #98a2b3 !important;
}

@media (max-width: 900px) {
	.chg-wrapper .chg-toolbar {
		flex-wrap: wrap !important;
	}
	.chg-wrapper .chg-toolbar-right {
		flex-wrap: wrap !important;
		width: 100% !important;
		margin-left: 0 !important;
	}
}
@media (max-width: 600px) {
	.chg-wrapper .chg-toolbar {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	.chg-wrapper .chg-search-box {
		width: 100% !important;
		max-width: none !important;
	}
}


/* ========== BOOKING PAGE – reference layout ========== */
.chg-booking-page {
	max-width: 1000px;
	margin: 0 auto;
}
.chg-book-page-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
	margin-top: 10px;
}
.chg-book-left {
	flex: 1 1 320px;
	min-width: 280px;
	max-width: 440px;
}
.chg-book-right {
	flex: 1 1 340px;
	min-width: 300px;
}
.chg-book-doctor-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}
.chg-book-photo img,
.chg-book-photo .chg-book-avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
}
.chg-book-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #c5d8ec;
	color: #5a7a9a;
}
.chg-book-doctor-name {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 4px;
	line-height: 1.25;
}
.chg-book-doctor-dept {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #667085;
	text-transform: uppercase;
	margin: 0;
}
.chg-book-section {
	margin-bottom: 20px;
}
.chg-book-label {
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.chg-book-text {
	font-size: 0.9rem;
	color: #475467;
	margin: 0;
	line-height: 1.55;
}
.chg-book-left .chg-timings-box {
	background: #fff;
	border: 1.5px solid #e4e7ec;
	border-radius: 8px;
	padding: 12px 14px;
	border-left: none;
	display: inline-block;
	min-width: 180px;
}
.chg-book-change {
	margin-top: 24px;
}
.chg-book-form-card {
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	padding: 24px 22px 28px;
	box-shadow: 0 4px 20px rgba(16, 24, 40, 0.06);
}
.chg-book-form-card .chg-field {
	margin-bottom: 14px;
}
.chg-book-form-card label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #344054;
	margin-bottom: 6px;
}
.chg-book-form-card input[type="text"],
.chg-book-form-card input[type="email"],
.chg-book-form-card input[type="tel"],
.chg-book-form-card input[type="number"],
.chg-book-form-card input[type="date"],
.chg-book-form-card textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d0d5dd;
	border-radius: 10px;
	font-size: 0.9rem;
	color: #1a1a2e;
	background: #fff;
	box-sizing: border-box;
}
.chg-book-form-card input:focus,
.chg-book-form-card textarea:focus {
	outline: none;
	border-color: #000;
	box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.chg-book-form-card textarea {
	min-height: 72px;
	resize: vertical;
}

/* Gender pills like reference */
.chg-gender-pills {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.chg-gender-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 24px;
	border: 1.5px solid #d0d5dd;
	background: #fff;
	color: #344054;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	margin: 0;
}
.chg-gender-pill input {
	display: none;
}
.chg-gender-pill.is-active,
.chg-gender-pill:has(input:checked) {
	background: #000;
	border-color: #000;
	color: #fff;
}

/* Submit full width black */
.chg-book-form-card .chg-submit-btn {
	width: 100%;
	margin-top: 8px;
	padding: 14px;
	font-size: 1rem;
	font-weight: 700;
	background: #000 !important;
	color: #fff !important;
	border: 2px solid #000 !important;
	border-radius: 12px !important;
	cursor: pointer;
}
.chg-book-form-card .chg-submit-btn:hover {
	background: #222 !important;
	border-color: #222 !important;
}

@media (max-width: 700px) {
	.chg-book-page-layout {
		flex-direction: column;
	}
	.chg-book-left,
	.chg-book-right {
		max-width: none;
		width: 100%;
	}
}

/* ========== DESK PORTAL ========== */
.chg-desk-login {
	max-width: 400px;
	margin: 40px auto;
}
.chg-desk-login-card {
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	padding: 28px 24px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.chg-desk-login-card h2 {
	margin: 0 0 8px;
	color: #1a1a2e;
}
.chg-desk-error {
	color: #b42318;
	background: #fef3f2;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.9rem;
}
.chg-desk-hint {
	font-size: 0.8rem;
	color: #98a2b3;
	margin-top: 16px;
}
.chg-desk-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e8eef5;
}
.chg-desk-sub {
	margin: 4px 0 0;
	color: #667085;
	font-size: 0.9rem;
}
.chg-desk-header-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chg-desk-book-card h3 {
	margin: 0 0 18px;
	font-size: 1.15rem;
}
.chg-desk-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
}
.chg-desk-form-grid .chg-field-full {
	grid-column: 1 / -1;
}
.chg-desk-form-grid select {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d0d5dd;
	border-radius: 10px;
	font-size: 0.9rem;
	background: #fff;
}
.chg-desk-list-toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.chg-desk-search {
	flex: 1;
	min-width: 200px;
	padding: 10px 14px;
	border: 1.5px solid #d0d5dd;
	border-radius: 8px;
	font-size: 0.9rem;
}
.chg-desk-table-wrap {
	overflow-x: auto;
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	background: #fff;
}
.chg-desk-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}
.chg-desk-table th {
	text-align: left;
	padding: 12px 14px;
	background: #f9fafb;
	border-bottom: 1px solid #e4e7ec;
	color: #475467;
	font-weight: 600;
	white-space: nowrap;
}
.chg-desk-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f2f4f7;
	color: #1a1a2e;
	vertical-align: middle;
}
.chg-desk-table tr:hover td {
	background: #f9fafb;
}
.chg-desk-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 0.75rem;
	font-weight: 600;
}
.chg-desk-badge-desk {
	background: #f0f0f0;
	color: #000;
}
.chg-desk-badge-web {
	background: #eff8ff;
	color: #175cd3;
}
.chg-desk-badge-ok {
	background: #ecfdf3;
	color: #027a48;
}
.chg-desk-badge-no {
	background: #fef3f2;
	color: #b42318;
}
@media (max-width: 700px) {
	.chg-desk-form-grid {
		grid-template-columns: 1fr;
	}
}

/* Desk login button black */
.chg-desk-login-card .chg-submit-btn,
.chg-desk-login .chg-submit-btn {
	width: 100%;
	background: #000 !important;
	color: #fff !important;
	border: 2px solid #000 !important;
	border-radius: 10px !important;
	padding: 12px !important;
	font-weight: 700 !important;
}
.chg-desk-login-card .chg-submit-btn:hover {
	background: #222 !important;
}
.chg-form-message.success {
	background: #ecfdf3;
	color: #027a48;
	padding: 10px 12px;
	border-radius: 8px;
	margin-top: 12px;
}
.chg-form-message.error {
	background: #fef3f2;
	color: #b42318;
	padding: 10px 12px;
	border-radius: 8px;
	margin-top: 12px;
}

.chg-desk-del-btn {
	background: #fff;
	border: 1.5px solid #b42318;
	color: #b42318;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
}
.chg-desk-del-btn:hover {
	background: #b42318;
	color: #fff;
}
.chg-desk-danger {
	border: 1.5px solid #b42318 !important;
	color: #b42318 !important;
	background: #fff !important;
}
.chg-desk-danger:hover {
	background: #b42318 !important;
	color: #fff !important;
}

.chg-desk-print-btn {
	background: #000;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	margin-right: 4px;
}
.chg-desk-print-btn:hover {
	background: #333;
}

.chg-desk-list-section {
	margin-top: 8px;
}
.chg-desk-list-section h3 {
	font-size: 1.15rem;
	color: #1a1a2e;
}
.chg-desk-list-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
