/* Nút đặt lịch — nhúng trong bài viết */
.hl-booking-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 18px 0;
	padding: 14px 32px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #085d98 0%, #0e7ac4 50%, #3ba8e8 100%);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(14, 122, 196, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.hl-booking-btn:hover,
.hl-booking-btn:focus {
	color: #fff !important;
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow: 0 14px 28px rgba(14, 122, 196, 0.42);
	outline: none;
}

.hl-booking-btn:active {
	transform: translateY(0);
}

.hl-booking-btn::before {
	content: "";
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 2v3M16 2v3M3 9h18M5 5h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/%3E%3Cpath d='M8 13h4M8 17h8'/%3E%3C/svg%3E") center / contain no-repeat;
	flex-shrink: 0;
}

.single-post-modern .article-details-modern .hl-booking-btn {
	border-bottom: none;
}

/* Modal popup */
.hl-booking-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hl-booking-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hl-booking-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 38, 62, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.hl-booking-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(8, 38, 62, 0.35);
	transform: translateY(24px) scale(0.97);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hl-booking-modal.is-open .hl-booking-modal__dialog {
	transform: translateY(0) scale(1);
}

.hl-booking-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hl-booking-modal__close:hover {
	background: rgba(255, 255, 255, 0.35);
	transform: rotate(90deg);
}

.hl-booking-modal__header {
	flex-shrink: 0;
	padding: 28px 28px 20px;
	text-align: center;
	background: linear-gradient(135deg, #085d98 0%, #0e7ac4 55%, #3ba8e8 100%);
	color: #fff;
}

.hl-booking-modal__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hl-booking-modal__icon svg {
	width: 28px;
	height: 28px;
	color: #fff;
}

.hl-booking-modal__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.hl-booking-modal__subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.hl-booking-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 24px 24px 28px;
	background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

/* CF7 trong popup */
.hl-booking-modal .wpcf7 {
	margin: 0;
}

.hl-booking-modal .wpcf7 form,
.hl-booking-modal .wpcf7 .wpcf7-form {
	margin: 0;
}

.hl-booking-modal .wpcf7 p {
	margin: 0 0 14px;
}

.hl-booking-modal .wpcf7 label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #143a5a;
}

.hl-booking-modal .wpcf7 input[type="text"],
.hl-booking-modal .wpcf7 input[type="email"],
.hl-booking-modal .wpcf7 input[type="tel"],
.hl-booking-modal .wpcf7 input[type="date"],
.hl-booking-modal .wpcf7 input[type="number"],
.hl-booking-modal .wpcf7 select,
.hl-booking-modal .wpcf7 textarea {
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid rgba(14, 122, 196, 0.22);
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	color: #334155;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hl-booking-modal .wpcf7 input:focus,
.hl-booking-modal .wpcf7 select:focus,
.hl-booking-modal .wpcf7 textarea:focus {
	border-color: #0e7ac4;
	box-shadow: 0 0 0 3px rgba(14, 122, 196, 0.15);
	outline: none;
}

.hl-booking-modal .wpcf7 textarea {
	min-height: 96px;
	resize: vertical;
}

.hl-booking-modal .wpcf7 input[type="submit"],
.hl-booking-modal .wpcf7 button[type="submit"] {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 14px 24px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #085d98 0%, #0e7ac4 50%, #3ba8e8 100%);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(14, 122, 196, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hl-booking-modal .wpcf7 input[type="submit"]:hover,
.hl-booking-modal .wpcf7 button[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(14, 122, 196, 0.38);
}

.hl-booking-modal .wpcf7 .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
}

.hl-booking-modal .wpcf7 .wpcf7-not-valid-tip {
	font-size: 12px;
	color: #dc2626;
	margin-top: 4px;
}

.hl-booking-modal .wpcf7 .ajax-loader {
	display: inline-block;
	margin-left: 8px;
}

.hl-booking-modal__error {
	margin: 0;
	padding: 14px;
	border-radius: 10px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 14px;
	text-align: center;
}

body.hl-booking-modal-open {
	overflow: hidden;
}

@media (max-width: 575px) {
	.hl-booking-modal {
		padding: 12px;
		align-items: flex-end;
	}

	.hl-booking-modal__dialog {
		max-height: calc(100vh - 24px);
		border-radius: 18px 18px 0 0;
	}

	.hl-booking-modal__header {
		padding: 22px 20px 16px;
	}

	.hl-booking-modal__title {
		font-size: 19px;
	}

	.hl-booking-modal__body {
		padding: 18px 16px 22px;
	}

	.hl-booking-btn {
		width: 100%;
		padding: 13px 20px;
		font-size: 15px;
	}
}
