/* HK Booking Form */
.hk-booking {
	--hk-booking-bg: var(--hk-yellow);
	--hk-booking-input: var(--hk-brown);
	--hk-booking-placeholder: #6E6666;
	--hk-booking-line: rgba(102, 50, 14, .35);
	--hk-booking-textarea: var(--hk-amber);
	--hk-booking-error: #C62828;
	--hk-cal-bg: var(--hk-cream);
	--hk-cal-border: #1F1D1B;
	--hk-cal-accent: var(--hk-amber);
	--hk-cal-slot-active: var(--hk-yellow);

	padding: 42px 64px 40px;
	border-radius: var(--hk-radius-xl);
	background: var(--hk-booking-bg);
	color: var(--hk-brown);
	scroll-margin-top: 120px;
}

.hk-booking__form {
	margin: 0;
}

.hk-booking__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 29px 38px;
}

.hk-booking__field {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hk-booking__field--full {
	grid-column: 1 / -1;
}

.hk-booking__field--calendar {
	margin-top: 31px;
}

.hk-booking__label {
	display: block;
	margin-bottom: 8px;
	color: var(--hk-brown);
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-transform: uppercase;
}

.hk-booking__req {
	color: inherit;
}

.hk-booking .hk-booking__input {
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--hk-booking-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hk-booking-input);
	font-family: var(--hk-font);
	font-size: 14px;
	line-height: 19px;
	transition: border-color .2s var(--hk-ease);
}

.hk-booking .hk-booking__input::placeholder {
	color: var(--hk-booking-placeholder);
	opacity: 1;
}

.hk-booking .hk-booking__input:focus {
	border-color: var(--hk-brown);
	outline: none;
	box-shadow: none;
}

.hk-booking select.hk-booking__input {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2366320E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 2px center;
	background-repeat: no-repeat;
	background-size: 16px;
	cursor: pointer;
}

.hk-booking textarea.hk-booking__input {
	min-height: 250px;
	margin-top: 16px;
	padding: 24px 30px;
	border: 1px solid var(--hk-brown);
	border-radius: 25px;
	background: var(--hk-booking-textarea);
	resize: vertical;
}

.hk-booking__field.is-invalid .hk-booking__input {
	border-bottom-color: var(--hk-booking-error);
}

.hk-booking__field.is-invalid textarea.hk-booking__input,
.hk-booking__field--calendar.is-invalid .hk-cal {
	border-color: var(--hk-booking-error);
}

.hk-booking__error {
	min-height: 0;
	color: var(--hk-booking-error);
	font-size: 13px;
	line-height: 1.4;
}

.hk-booking__error:not(:empty) {
	margin-top: 6px;
}

.hk-booking__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------- Calendar ---------------- */
.hk-cal {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0;
	margin-top: 7px;
	padding: 40px 30px 40px 55px;
	border: 1px solid var(--hk-cal-border);
	border-radius: 30px;
	background: var(--hk-cal-bg);
	color: #1F1D1B;
}

.hk-cal__main {
	padding-right: 28px;
	border-right: 1px solid rgba(31, 29, 27, .3);
}

.hk-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 32px;
}

.hk-cal__title {
	margin: 0;
	color: #1F1D1B;
	font-size: 26px;
	font-weight: 700;
	line-height: 35px;
}

.hk-cal__navs {
	display: flex;
	gap: 7px;
}

.hk-cal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 39px;
	height: 39px;
	padding: 0;
	border: 2px solid #1F1D1B;
	border-radius: 50%;
	background: transparent;
	color: #1F1D1B;
	font-size: 20px;
	cursor: pointer;
	transition: transform .2s var(--hk-ease), opacity .2s;
}

.hk-cal__nav--next {
	border-color: var(--hk-cal-accent);
	background: var(--hk-cal-accent);
	color: #fff;
}

.hk-cal__nav:hover:not([disabled]) {
	transform: scale(1.06);
	background: var(--hk-cal-accent);
	color: #fff;
}

.hk-cal__nav[disabled] {
	opacity: .3;
	cursor: default;
}

.hk-cal__nav:focus-visible,
.hk-cal__day:focus-visible,
.hk-cal__slot:focus-visible {
	outline: 2px solid var(--hk-orange);
	outline-offset: 2px;
}

.hk-cal__weekdays,
.hk-cal__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(30px, 1fr));
	column-gap: 6px;
	text-align: center;
}

.hk-cal__weekdays {
	margin-bottom: 23px;
	color: var(--hk-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
}

.hk-cal__days {
	row-gap: 18px;
	justify-items: center;
}

.hk-cal__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1F1D1B;
	font-family: var(--hk-font);
	font-size: 15px;
	line-height: 20px;
	cursor: pointer;
	transition: background-color .2s var(--hk-ease);
}

.hk-cal__day:hover:not([disabled]) {
	background: rgba(255, 192, 1, .35);
}

.hk-cal__day[aria-pressed="true"] {
	background: var(--hk-cal-accent);
	font-weight: 700;
}

.hk-cal__day.is-today {
	box-shadow: inset 0 0 0 1px var(--hk-cal-accent);
}

.hk-cal__day[disabled] {
	color: rgba(31, 29, 27, .28);
	cursor: not-allowed;
}

.hk-cal__day--blank {
	visibility: hidden;
}

.hk-cal__side {
	width: 233px;
	padding-left: 32px;
	padding-top: 98px;
}

.hk-cal__date-label {
	margin: 0 0 18px;
	color: var(--hk-brown);
	font-size: 13px;
	font-weight: 700;
	line-height: 18px;
	text-transform: uppercase;
}

.hk-cal__side-title {
	margin: 0 0 30px;
	color: #1F1D1B;
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
}

.hk-cal__slots {
	display: flex;
	flex-direction: column;
	gap: 19px;
}

.hk-cal__slot {
	width: 173px;
	max-width: 100%;
	min-height: 45px;
	padding: 10px 16px;
	border: 2px solid var(--hk-brown);
	border-radius: 65px;
	background: var(--hk-cream-3);
	color: var(--hk-brown);
	font-family: var(--hk-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
	cursor: pointer;
	transition: background-color .2s var(--hk-ease), transform .2s var(--hk-ease);
}

.hk-cal__slot:hover:not([disabled]) {
	transform: translateY(-1px);
	background: var(--hk-cream-2);
}

.hk-cal__slot[aria-pressed="true"] {
	background: var(--hk-cal-slot-active);
}

.hk-cal__slot[disabled] {
	opacity: .35;
	cursor: not-allowed;
}

/* ---------------- Submit + messages ---------------- */
/* Hover: lấp màu chủ đạo (cam) thay vì vàng như Figma, vì vàng trùng nền khung form. */
.hk-booking .hk-booking__submit {
	--hk-btn-fill: var(--hk-submit-hover-bg, var(--e-global-color-primary, var(--hk-orange)));

	margin-top: 23px;
}

.hk-booking .hk-booking__submit:hover,
.hk-booking .hk-booking__submit:focus-visible {
	--hk-btn-color: var(--hk-submit-hover-color, var(--hk-white));
	--hk-btn-border: var(--hk-submit-hover-bg, var(--e-global-color-primary, var(--hk-orange)));
	--hk-btn-icon-bg: var(--hk-white);
	--hk-btn-icon-color: var(--hk-brown);

	box-shadow: 0 8px 22px rgba(246, 155, 15, .35);
}

.hk-booking .hk-booking__submit[disabled]:hover::before {
	width: var(--hk-btn-icon);
}

.hk-booking__msg {
	margin-top: 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

.hk-booking__msg:empty {
	display: none;
}

.hk-booking__msg.is-success {
	padding: 14px 18px;
	border-radius: 16px;
	background: var(--hk-cream-3);
	color: var(--hk-brown);
}

.hk-booking__msg.is-error {
	color: var(--hk-booking-error);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
	.hk-booking {
		padding: 36px 32px;
		border-radius: 36px;
	}

	.hk-cal {
		padding: 28px 22px;
	}

	.hk-cal__side {
		width: 200px;
		padding-left: 22px;
	}
}

@media (max-width: 767px) {
	.hk-booking {
		padding: 28px 18px 24px;
		border-radius: 28px;
	}

	.hk-booking__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.hk-booking textarea.hk-booking__input {
		min-height: 180px;
		padding: 18px 20px;
	}

	.hk-cal {
		grid-template-columns: 1fr;
		padding: 22px 16px;
		border-radius: 24px;
	}

	.hk-cal__main {
		padding-right: 0;
		padding-bottom: 22px;
		border-right: 0;
		border-bottom: 1px solid rgba(31, 29, 27, .3);
	}

	.hk-cal__head {
		margin-bottom: 20px;
	}

	.hk-cal__title {
		font-size: 20px;
	}

	.hk-cal__weekdays {
		margin-bottom: 14px;
	}

	.hk-cal__days {
		row-gap: 10px;
		column-gap: 2px;
	}

	.hk-cal__side {
		width: auto;
		padding: 20px 0 0;
	}

	.hk-cal__side-title {
		margin-bottom: 16px;
		font-size: 20px;
	}

	.hk-cal__slots {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.hk-cal__slot {
		width: auto;
	}

	.hk-booking .hk-btn--outline {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hk-cal__nav,
	.hk-cal__day,
	.hk-cal__slot {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
   Dropdown "Độ tuổi của bé" (script.js thay giao diện <select> gốc)
   ------------------------------------------------------------------------ */
.hk-select {
	position: relative;
}

.hk-booking .hk-select__native {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

.hk-booking .hk-select__trigger {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 8px 2px 8px 0;
	border: 0;
	border-bottom: 1px solid var(--hk-booking-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hk-booking-placeholder);
	font-family: var(--hk-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 19px;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: border-color .2s var(--hk-ease);
}

.hk-booking .hk-select.has-value .hk-select__trigger {
	color: var(--hk-booking-input);
}

.hk-booking .hk-select__trigger:hover,
.hk-booking .hk-select.is-open .hk-select__trigger {
	border-bottom-color: var(--hk-brown);
	background: transparent;
	color: var(--hk-booking-input);
}

.hk-booking .hk-select__trigger:focus-visible {
	outline: 2px solid var(--hk-orange);
	outline-offset: 4px;
	border-radius: 4px;
}

.hk-booking__field.is-invalid .hk-select__trigger {
	border-bottom-color: var(--hk-booking-error);
}

.hk-select__value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hk-select__chevron {
	flex: none;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2366320E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform .25s var(--hk-ease);
}

.hk-select.is-open .hk-select__chevron {
	transform: rotate(180deg);
}

.hk-booking .hk-select__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 30;
	max-height: 264px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	border: 1px solid rgba(102, 50, 14, .14);
	border-radius: 16px;
	background: var(--hk-cream-3);
	box-shadow: 0 18px 40px rgba(102, 50, 14, .16);
	list-style: none;
	outline: none;
	overscroll-behavior: contain;
}

.hk-select__list[hidden] {
	display: none;
}

.hk-select.is-open .hk-select__list {
	animation: hk-select-in .18s var(--hk-ease);
}

.hk-booking .hk-select__option {
	position: relative;
	margin: 0;
	padding: 10px 40px 10px 14px;
	border-radius: 10px;
	color: var(--hk-brown);
	font-family: var(--hk-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color .15s;
}

.hk-booking .hk-select__option + .hk-select__option {
	margin-top: 2px;
}

.hk-booking .hk-select__option.is-active {
	background: var(--hk-cream-2);
}

.hk-booking .hk-select__option[aria-selected="true"] {
	background: var(--hk-yellow);
	font-weight: 700;
}

.hk-booking .hk-select__option[aria-selected="true"]::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%2366320E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

@keyframes hk-select-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hk-select.is-open .hk-select__list,
	.hk-select__chevron {
		animation: none;
		transition: none;
	}
}
