/**
 * Hospital Booking — frontend styles.
 */

/* ================================================================ */
/*  Booking form on single doctor product pages                     */
/* ================================================================ */
.hb-booking-form {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	background: #fff;
}

.hb-booking-form-title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 600;
}

.hb-field {
	margin-bottom: 14px;
}

.hb-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 13px;
}

.hb-field input[type="text"],
.hb-field input[type="tel"],
.hb-field input[type="date"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.hb-slots-status {
	color: #555;
	font-size: 13px;
	margin: 8px 0;
}

.hb-slots-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.hb-slot-btn {
	padding: 8px 10px;
	border: 1px solid #2271b1;
	background: #fff;
	color: #2271b1;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hb-slot-btn:hover {
	background: #2271b1;
	color: #fff;
}

.hb-slot-btn.hb-slot-selected {
	background: #2271b1;
	color: #fff;
}

.hb-slot-btn.hb-slot-disabled,
.hb-slot-btn[disabled] {
	border-color: #ccc;
	color: #999;
	background: #f4f4f4;
	cursor: not-allowed;
}

.hb-booking-form .hb-book-button {
	margin-top: 14px;
	width: 100%;
	padding: 12px 16px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.hb-booking-form .hb-book-button:hover {
	background: #135e96;
}

.hb-booking-form .hb-book-button[disabled] {
	background: #cbd5e1;
	cursor: not-allowed;
	opacity: 0.7;
}

/* ================================================================ */
/*  [hb_doctors] — grid wrapper                                     */
/* ================================================================ */
.hb-doctors-grid {
	display: grid;
	grid-template-columns: repeat(var(--hb-cols, 3), minmax(0, 1fr));
	gap: 28px;
	margin: 32px 0;
}

@media (max-width: 900px) {
	.hb-doctors-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}
}

@media (max-width: 560px) {
	.hb-doctors-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ================================================================ */
/*  Card shell                                                       */
/* ================================================================ */
.hb-doctor-card {
	position: relative;
	border-radius: 24px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
	perspective: 1400px;
	background: transparent;
}

.hb-doctor-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px rgba(15, 23, 42, 0.15);
}

/* Premium cards: subtle neutral shadow matching the white-card design.
 * The old green-tinted glow was for the green gradient front face; now
 * the front is white so a softer shadow reads better. */
.hb-doctor-card--premium {
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.06);
}

.hb-doctor-card--premium:hover {
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
}

.hb-doctor-card.is-flipped:hover {
	transform: none;
}

.hb-no-doctors {
	padding: 40px 20px;
	text-align: center;
	color: #64748b;
	font-style: italic;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	margin: 24px 0;
}

/* ================================================================ */
/*  FLIP CARD — 3D rotation, CSS Grid stacking                      */
/* ================================================================ */
.hb-doctor-card .hb-card-inner {
	display: grid;
	grid-template-areas: "face";
	grid-template-rows: 1fr;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	width: 100%;
}

.hb-doctor-card .hb-card-face {
	grid-area: face;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	display: flex;
	flex-direction: column;
	border-radius: inherit;
	overflow: hidden;
	background: #fff;
}

.hb-doctor-card .hb-card-face--back {
	transform: rotateY(180deg);
}

.hb-doctor-card.is-flipped .hb-card-inner {
	transform: rotateY(180deg);
}

/* Only the visible face should capture clicks. Includes descendants:
 * without the `*` selector, child buttons with their own pointer-events: auto
 * (e.g. the front face's likes pill inside .hb-card-overlay) would still
 * intercept clicks at the same screen position as the back face's controls. */
.hb-doctor-card:not(.is-flipped) .hb-card-face--back,
.hb-doctor-card:not(.is-flipped) .hb-card-face--back * {
	pointer-events: none;
}

.hb-doctor-card.is-flipped .hb-card-face--front,
.hb-doctor-card.is-flipped .hb-card-face--front * {
	pointer-events: none;
}

/* ================================================================ */
/*  FRONT FACE — white card with image-dominant layout              */
/* ================================================================ */
.hb-doctor-card .hb-card-face--premium {
	background: #fff;
	color: #1a2832;
	padding: 0;
	position: relative;
	font-family: inherit;
	display: flex;
	flex-direction: column;
}

/* Kill the old green dotted accent from the previous design */
.hb-doctor-card .hb-card-face--premium::before {
	content: none;
	display: none;
}

/* ----- Image area (~70% of card) ----- */
.hb-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f1f5f9;
	flex: 0 0 auto;
	/* Bottom corners rounded so the image visually has rounded corners on
	 * all four sides — the TOP corners are already rounded by the outer
	 * card's 24px clip via .hb-card-face { overflow: hidden; border-radius:
	 * inherit }. Card height and image size stay unchanged. */
	border-radius: 0 0 18px 18px;
}

.hb-card-image .hb-card-image-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Shift the visible portion of the source image down by ~22% so the
	 * doctor's face sits near the top of the container (under the action
	 * pills) instead of leaving empty headroom above. Works for most
	 * portrait headshots framed at the chest-up. */
	object-position: center 22%;
	display: block;
}

.hb-card-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
}

.hb-card-image-placeholder svg {
	width: 64px;
	height: 64px;
}

/* ----- Floating action overlay on the image ----- */
.hb-card-overlay {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	pointer-events: none;
	z-index: 2;
}

.hb-card-overlay > * {
	pointer-events: auto;
}

.hb-card-overlay-right {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ----- Side badges — compact dark-green pills ----- */
.hb-doctor-card .hb-side-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 26px;
	padding: 0 9px;
	background: rgba(11, 77, 47, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.2px;
	margin: 0;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.hb-doctor-card .hb-side-badge:hover,
.hb-doctor-card .hb-side-badge:focus {
	background: rgba(11, 77, 47, 1);
	border-color: rgba(255, 255, 255, 0.3);
	outline: none;
	transform: translateY(-1px);
}

.hb-doctor-card .hb-side-badge:focus-visible {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 0 4px rgba(15, 118, 110, 0.5);
}

.hb-doctor-card .hb-side-badge-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.hb-doctor-card .hb-side-badge-value,
.hb-doctor-card .hb-likes-count {
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1;
}

/* Rating: gold star */
.hb-doctor-card .hb-side-badge--rating {
	cursor: default;
}

.hb-doctor-card .hb-side-badge--rating .hb-side-badge-icon {
	color: #ffd54f;
}

/* Likes: red heart (outline by default, fills on .is-liked) */
.hb-doctor-card .hb-side-badge--likes .hb-likes-icon {
	color: #ff596e;
	transition: fill 0.2s ease, stroke 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hb-doctor-card .hb-side-badge--likes.is-liked {
	border-color: rgba(255, 89, 110, 0.65);
}

.hb-doctor-card .hb-side-badge--likes.is-liked .hb-likes-icon {
	fill: #ff596e;
	stroke: #ff596e;
	transform: scale(1.1);
}

/* Flip: white refresh icon, slim pill */
.hb-doctor-card .hb-side-badge--flip {
	padding: 0 7px;
}

.hb-doctor-card .hb-side-badge--flip .hb-side-badge-icon {
	transition: transform 0.45s ease;
}

.hb-doctor-card .hb-side-badge--flip:hover .hb-side-badge-icon,
.hb-doctor-card .hb-side-badge--flip:focus .hb-side-badge-icon {
	transform: rotate(180deg);
}

/* ----- Info area (~30%) — white, centered text ----- */
.hb-card-info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 18px 20px 20px;
	background: #fff;
	min-height: 0;
}

.hb-premium-speciality {
	color: #0f766e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	margin: 0 0 8px;
	line-height: 1.4;
}

.hb-premium-name {
	margin: 0 0 6px;
	color: #0f172a;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.hb-premium-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.hb-premium-name a:hover,
.hb-premium-name a:focus {
	color: #0f766e;
	outline: none;
}

.hb-premium-name-accent {
	color: inherit;
	font-style: normal;
	font-weight: 700;
}

.hb-premium-experience {
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	margin: 0 0 16px;
	line-height: 1.4;
}

/* CTA — solid green pill */
.hb-doctor-card .hb-premium-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: auto;
	padding: 12px 22px;
	background: #1f8a52;
	color: #fff;
	text-decoration: none;
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.2px;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hb-doctor-card .hb-premium-cta:hover,
.hb-doctor-card .hb-premium-cta:focus {
	background: #146b3f;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(15, 89, 53, 0.25);
	outline: none;
	text-decoration: none;
}

.hb-doctor-card .hb-premium-cta:focus-visible {
	box-shadow: 0 0 0 3px rgba(31, 138, 82, 0.35);
}

.hb-premium-cta-text {
	font-weight: 700;
}

.hb-premium-cta-arrow {
	display: inline-flex;
	align-items: center;
	color: inherit;
	transition: transform 0.18s ease;
}

.hb-doctor-card .hb-premium-cta:hover .hb-premium-cta-arrow {
	transform: translateX(3px);
}

/* ----- Responsive: white front face ----- */
@media (max-width: 560px) {
	.hb-card-overlay {
		top: 10px;
		left: 10px;
		right: 10px;
	}
	.hb-doctor-card .hb-side-badge {
		height: 24px;
		padding: 0 8px;
		font-size: 10.5px;
	}
	.hb-card-info {
		padding: 14px 16px 16px;
	}
	.hb-premium-speciality {
		font-size: 10px;
		letter-spacing: 1.4px;
		margin-bottom: 6px;
	}
	.hb-premium-name {
		font-size: 16px;
		margin-bottom: 4px;
	}
	.hb-premium-experience {
		font-size: 12px;
		margin-bottom: 12px;
	}
	.hb-doctor-card .hb-premium-cta {
		padding: 11px 18px;
		font-size: 13px;
	}
}

@media (max-width: 360px) {
	.hb-card-info {
		padding: 12px 14px 14px;
	}
	.hb-premium-name {
		font-size: 15px;
	}
}

/* ================================================================ */
/*  BACK FACE — white card: about + submit rating                    */
/* ================================================================ */

/* Shell: white background matching the front face */
.hb-doctor-card .hb-card-face--white-back {
	background: #fff;
	color: #1a2832;
	padding: 16px 20px 20px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: inherit;
}

/* ----- Top header: just the Flip Back pill on the left ----- */
.hb-back-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 26px;
}

/* The Flip Back button reuses .hb-side-badge .hb-side-badge--flip
 * from the front face so its visual style stays identical (dark green
 * pill with white refresh icon). The 180° hover spin also carries over. */
.hb-doctor-card .hb-flip-back {
	display: inline-flex;
}

/* ----- About Doctor ----- */
.hb-back-about {
	text-align: center;
	padding: 0 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hb-back-about-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
}

.hb-back-about-icon {
	color: #0f766e;
	display: inline-flex;
	line-height: 0;
}

.hb-back-title {
	margin: 0;
	color: #0f766e;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1;
}

.hb-doctor-card .hb-back-description {
	color: #475569;
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 14px;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hb-doctor-card .hb-back-description p {
	margin: 0 0 6px;
}

.hb-doctor-card .hb-back-description p:last-child {
	margin-bottom: 0;
}

/* Read More — small green pill linking to the doctor's product page */
.hb-doctor-card .hb-back-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	background: #1f8a52;
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hb-doctor-card .hb-back-read-more:hover,
.hb-doctor-card .hb-back-read-more:focus {
	background: #146b3f;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(15, 89, 53, 0.25);
	outline: none;
	text-decoration: none;
}

.hb-doctor-card .hb-back-read-more svg {
	stroke: currentColor;
	fill: none;
	display: block;
	transition: transform 0.18s ease;
}

.hb-doctor-card .hb-back-read-more:hover svg {
	transform: translateX(2px);
}

/* ----- Submit Your Rating — no container, sits directly on white ----- */
.hb-doctor-card .hb-submit-rating-card {
	background: transparent;
	border: 0;
	border-top: 1px solid #e2e8f0;
	border-radius: 0;
	padding: 14px 0 0;
	margin: auto 0 0;
	box-shadow: none;
	text-align: center;
	color: #1a2832;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

/* Decorative row: — ★ SUBMIT YOUR RATING ★ — */
.hb-submit-title-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.hb-submit-deco-dash {
	display: inline-block;
	width: 24px;
	height: 1.5px;
	background: #0f766e;
	opacity: 0.45;
	border-radius: 1px;
}

.hb-submit-deco-star {
	color: #f5b400;
	display: inline-flex;
	line-height: 0;
}

.hb-submit-title {
	margin: 0;
	color: #0f766e;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	line-height: 1;
}

/* Stars row — outlined green, fill gold on selected */
.hb-doctor-card .hb-review-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.hb-doctor-card .hb-star-btn {
	background: none;
	border: 0;
	padding: 4px;
	margin: 0;
	cursor: pointer;
	color: #0f766e;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.15s ease;
}

.hb-doctor-card .hb-star-btn:hover,
.hb-doctor-card .hb-star-btn:focus {
	transform: scale(1.1);
	outline: none;
}

.hb-doctor-card .hb-star-btn:focus-visible {
	box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.35);
	border-radius: 4px;
}

.hb-doctor-card .hb-star-btn .hb-star-icon {
	width: 28px;
	height: 28px;
	stroke: currentColor;
	fill: none;
	transition: fill 0.15s ease, stroke 0.15s ease;
}

.hb-doctor-card .hb-star-btn.is-active .hb-star-icon {
	fill: #f5b400;
	stroke: #f5b400;
}

/* Success / error message after submit */
.hb-doctor-card .hb-submit-feedback {
	margin: 4px 0 0;
	font-size: 12px;
	color: #0f766e;
	font-weight: 600;
	line-height: 1.3;
}

.hb-doctor-card .hb-submit-feedback.is-error {
	color: #dc2626;
}

/* ----- Responsive: white back face ----- */
@media (max-width: 560px) {
	.hb-doctor-card .hb-card-face--white-back {
		padding: 14px 16px 16px;
		gap: 12px;
	}
	.hb-back-title,
	.hb-submit-title {
		font-size: 11px;
		letter-spacing: 1.6px;
	}
	.hb-doctor-card .hb-back-description {
		font-size: 12.5px;
		-webkit-line-clamp: 3;
		margin-bottom: 10px;
	}
	.hb-doctor-card .hb-back-read-more {
		font-size: 11.5px;
		padding: 7px 14px;
	}
	.hb-doctor-card .hb-star-btn .hb-star-icon {
		width: 24px;
		height: 24px;
	}
	.hb-doctor-card .hb-review-submit {
		gap: 6px;
	}
	.hb-submit-deco-dash {
		width: 18px;
	}
}

@media (max-width: 360px) {
	.hb-doctor-card .hb-back-description {
		-webkit-line-clamp: 3;
	}
}
/* ================================================================ */
/*  Reduce-motion: skip the flip + scale animations                 */
/* ================================================================ */
@media (prefers-reduced-motion: reduce) {
	.hb-doctor-card .hb-card-inner,
	.hb-doctor-card .hb-star-btn,
	.hb-side-badge--flip,
	.hb-side-badge--flip .hb-side-badge-icon,
	.hb-premium-cta,
	.hb-premium-cta-arrow {
		transition: none;
	}
}

/* ================================================================ */
/*  BOOKING MODAL — overlay + dialog + form styling                 */
/* ================================================================ */
body.hb-modal-open {
	overflow: hidden;
}

.hb-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.hb-modal.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.hb-modal[hidden] {
	display: none;
}

.hb-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.66);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.hb-modal-dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 18px;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 30px 26px 26px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	transform: scale(0.94) translateY(12px);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

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

/* Higher specificity (.hb-modal scope) + explicit resets to defeat
 * aggressive theme button styling that was painting this pill solid green
 * and hiding the X icon. */
.hb-modal .hb-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	max-width: 32px;
	max-height: 32px;
	border-radius: 50%;
	background: #f1f5f9;
	background-image: none;
	border: 1px solid #cbd5e1;
	cursor: pointer;
	color: #475569;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	line-height: 1;
	font-size: 0;          /* kill any inherited text size from theme */
	font-weight: normal;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hb-modal .hb-modal-close::before,
.hb-modal .hb-modal-close::after {
	content: none;
	display: none;
}

.hb-modal .hb-modal-close svg {
	display: block;
	width: 16px;
	height: 16px;
	stroke: #475569;       /* explicit — don't rely on inherited currentColor */
	fill: none;
	pointer-events: none;
}

.hb-modal .hb-modal-close:hover,
.hb-modal .hb-modal-close:focus {
	background: #e2e8f0;
	background-image: none;
	border-color: #94a3b8;
	color: #0f172a;
	outline: none;
	transform: scale(1.05);
}

.hb-modal .hb-modal-close:hover svg,
.hb-modal .hb-modal-close:focus svg {
	stroke: #0f172a;
}

.hb-modal .hb-modal-close:focus-visible {
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.4);
}

/* ----- Header: doctor name + speciality + fee ----- */
.hb-modal-header {
	text-align: center;
	margin: 0 0 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid #e2e8f0;
}

.hb-modal-title {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.hb-modal-meta {
	margin: 0;
	font-size: 13px;
	color: #475569;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hb-modal-meta strong {
	font-weight: 600;
	color: #1f2937;
	margin-right: 4px;
}

.hb-modal-fee .woocommerce-Price-amount,
.hb-modal-fee bdi {
	color: #0f766e;
	font-weight: 700;
}

/* ----- Body: booking form fields ----- */
.hb-modal-body .hb-booking-form {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
}

.hb-modal-body .hb-field {
	margin-bottom: 14px;
}

.hb-modal-body .hb-field-label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	font-size: 13px;
	color: #1f2937;
}

.hb-modal-body .required {
	color: #dc2626;
	font-weight: 700;
}

.hb-modal-body input[type="text"],
.hb-modal-body input[type="tel"],
.hb-modal-body input[type="date"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	color: #0f172a;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hb-modal-body input[type="text"]:focus,
.hb-modal-body input[type="tel"]:focus,
.hb-modal-body input[type="date"]:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
	outline: none;
}

.hb-modal-body .hb-slots-wrap .hb-field-label {
	margin-bottom: 6px;
}

.hb-modal-body .hb-slots-status {
	margin: 6px 0;
	font-size: 12.5px;
	color: #64748b;
	font-style: italic;
}

.hb-modal-body .hb-slots-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
	margin-top: 6px;
}

.hb-modal-body .hb-slot-btn {
	padding: 9px 8px;
	border: 1.5px solid #2271b1;
	background: #fff;
	color: #2271b1;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.hb-modal-body .hb-slot-btn:hover:not([disabled]) {
	background: #2271b1;
	color: #fff;
	transform: translateY(-1px);
}

.hb-modal-body .hb-slot-btn.hb-slot-selected {
	background: #2271b1;
	color: #fff;
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.25);
}

.hb-modal-body .hb-slot-btn.hb-slot-disabled,
.hb-modal-body .hb-slot-btn[disabled] {
	border-color: #cbd5e1;
	color: #94a3b8;
	background: #f8fafc;
	cursor: not-allowed;
}

.hb-modal-body .hb-book-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 6px;
	padding: 13px 20px;
	background: #0f766e;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hb-modal-body .hb-book-button:hover:not([disabled]) {
	background: #0d5e57;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.hb-modal-body .hb-book-button[disabled] {
	background: #cbd5e1;
	cursor: not-allowed;
}

/* ----- Responsive ----- */
@media (max-width: 480px) {
	.hb-modal {
		padding: 12px;
	}
	.hb-modal-dialog {
		padding: 26px 18px 20px;
		border-radius: 14px;
		max-height: calc(100vh - 24px);
	}
	.hb-modal-title {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hb-modal,
	.hb-modal-dialog {
		transition: opacity 0.1s ease;
	}
	.hb-modal-dialog {
		transform: none;
	}
}

/* ================================================================ */
/*  DOCTOR FILTER — speciality + doctor dropdowns above the grid     */
/* ================================================================ */
.hb-doctors-wrap {
	display: block;
}

.hb-doctors-filter {
	background: #fff;
	border-radius: 16px;
	padding: 20px 22px;
	margin: 0 0 24px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
}

.hb-filter-field {
	flex: 1 1 220px;
	min-width: 0;
}

.hb-filter-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	letter-spacing: 0.1px;
}

.hb-filter-select {
	width: 100%;
	padding: 11px 38px 11px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	color: #0f172a;
	background-color: #fff;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 12px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hb-filter-select:hover {
	border-color: #94a3b8;
}

.hb-filter-select:focus,
.hb-filter-select:focus-visible {
	outline: none;
	border-color: #0f766e;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.hb-filter-actions {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hb-filter-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 22px;
	background: #0f766e;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.2px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.hb-filter-submit:hover,
.hb-filter-submit:focus {
	background: #0d5e57;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
	outline: none;
}

.hb-filter-submit:focus-visible {
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35);
}

.hb-filter-submit svg {
	display: block;
	stroke: currentColor;
	fill: none;
}

/* Clear button — neutral, matches submit dimensions */
.hb-filter-clear {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 44px;
	padding: 0 18px;
	background: #fff;
	color: #475569;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.2px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.hb-filter-clear:hover,
.hb-filter-clear:focus {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a;
	transform: translateY(-1px);
	outline: none;
}

.hb-filter-clear:focus-visible {
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.25);
}

.hb-filter-clear svg {
	display: block;
	stroke: currentColor;
	fill: none;
}

/* Empty result message */
.hb-filter-empty {
	margin: 0 0 24px;
	padding: 16px 20px;
	background: #fff;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #475569;
	text-align: center;
	font-size: 14px;
}

/* Filtered-out card */
.hb-doctor-card.hb-card-hidden {
	display: none !important;
}

/* Responsive */
@media (max-width: 720px) {
	.hb-doctors-filter {
		padding: 16px 16px;
		gap: 12px;
	}
	.hb-filter-field {
		flex: 1 1 100%;
	}
	.hb-filter-actions {
		flex: 1 1 100%;
		width: 100%;
	}
	.hb-filter-submit {
		flex: 1 1 auto;
		justify-content: center;
	}
	.hb-filter-clear {
		flex: 0 0 auto;
	}
}
