/**
 * HALINK C8 — Booking page (Dola /dat-lich match)
 */

/* Page hero lives in c8-page-hero.css */

/* ---------- Section ---------- */
.c8-booking-page {
	padding-bottom: 100px;
	background: var(--c8-bg, #f0efeb);
}

.c8-booking-page__title {
	margin: 0 0 40px;
	text-align: center;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
	font-weight: 700;
	color: #121f38;
}

.c8-booking-page__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 1.75rem;
	align-items: stretch;
}

.c8-booking-page__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	border-radius: 30px 10px;
}

.c8-booking-page__calendar-wrap {
	background: #121f38;
	padding: 20px;
	border-radius: 30px 10px;
	display: flex;
	flex-direction: column;
}

/* ---------- Calendar ---------- */
.c8-booking-calendar {
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 0 17px -10px rgba(0, 0, 0, 0.34);
	padding: 10px 12px 14px;
	border-radius: 10px 2px;
	flex: 1 1 auto;
}

.c8-cal__header {
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	align-items: center;
	margin-bottom: 0.5rem;
}

.c8-cal__title {
	margin: 0;
	text-align: center;
	font-size: 1.125rem;
	font-weight: 700;
	color: #121f38;
	font-family: var(--c8-font, "Be Vietnam Pro", system-ui, sans-serif);
}

.c8-cal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #121f38;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

.c8-cal__nav:hover {
	opacity: 0.75;
}

.c8-cal__weekdays,
.c8-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	align-items: center;
}

.c8-cal__weekdays {
	margin-bottom: 0.25rem;
}

.c8-cal__weekday {
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #121f38;
	padding: 0.35rem 0;
}

.c8-cal__day {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0.25rem auto;
	width: 90%;
	aspect-ratio: 1;
	max-width: 44px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #000;
	font-size: 0.9375rem;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.c8-cal__day:hover:not(:disabled):not(.is-empty) {
	background: #121f38;
	color: #fff;
}

.c8-cal__day.is-selected {
	background: #121f38;
	color: #fff;
}

.c8-cal__day.is-empty,
.c8-cal__day:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.c8-cal__day.is-empty {
	visibility: hidden;
}

.c8-booking-page__time {
	display: block;
	width: 100%;
	margin-top: 18px;
	height: 35px;
	padding: 1px 10px;
	border: 0;
	border-radius: 10px 2px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: #121f38;
	appearance: auto;
}

/* ---------- Navy form panel ---------- */
.c8-booking-page__panel {
	padding: 20px;
	background: #121f38;
	border-radius: 30px 10px;
}

.c8-booking-page__fields {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}

.c8-booking-page__field {
	flex: 0 0 50%;
	max-width: 50%;
	width: 100%;
	padding: 0 10px;
	margin: 0 0 20px;
	color: #fff;
}

.c8-booking-page__field--full,
.c8-booking-page__submit-wrap,
.c8-booking-page__panel .c8-booking__msg {
	flex: 0 0 100%;
	max-width: 100%;
}

.c8-booking-page__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 700;
	font-size: 14px;
	color: #fff;
}

.c8-booking-page__field input,
.c8-booking-page__field select,
.c8-booking-page__field textarea {
	width: 100%;
	border: 0;
	border-radius: 10px 2px;
	font-size: 15px;
	font-family: inherit;
	color: #121f38;
	background: #fff;
}

.c8-booking-page__field input,
.c8-booking-page__field select {
	height: 35px;
	padding: 1px 10px;
}

.c8-booking-page__field textarea {
	min-height: 110px;
	padding: 10px;
	resize: vertical;
}

.c8-booking-page__field input:focus,
.c8-booking-page__field select:focus,
.c8-booking-page__field textarea:focus,
.c8-booking-page__time:focus {
	outline: 2px solid #9a563a;
	outline-offset: 1px;
}

.c8-booking-page__submit-wrap {
	padding: 0 10px;
	text-align: center;
}

.c8-booking-page__submit {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 20px;
	border: 0;
	border-radius: 20px 5px 20px 5px;
	background: #9a563a;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.c8-booking-page__submit:hover {
	opacity: 0.7;
}

.c8-booking-page__form.is-loading .c8-booking-page__submit {
	opacity: 0.6;
	pointer-events: none;
}

.c8-booking-page__panel .c8-booking__msg {
	padding: 0 10px;
	margin: 12px 0 0;
	text-align: center;
	font-size: 0.9375rem;
}

.c8-booking-page__panel .c8-booking__msg.is-success {
	color: #86efac;
}

.c8-booking-page__panel .c8-booking__msg.is-error {
	color: #fca5a5;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.c8-booking-page__top {
		grid-template-columns: 1fr;
	}

	.c8-booking-page__media img {
		min-height: 240px;
	}

	.c8-booking-page {
		padding-bottom: 60px;
	}
}

@media (max-width: 767px) {
	.c8-booking-page__title {
		margin-bottom: 1.5rem;
		font-size: 1.75rem;
	}

	.c8-booking-page__field {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.c8-booking-page__panel {
		padding: 16px 12px;
		border-radius: 20px 8px;
	}

	.c8-booking-page__calendar-wrap {
		border-radius: 20px 8px;
		padding: 14px;
	}

	.c8-booking-page__media img {
		border-radius: 20px 8px;
		min-height: 200px;
	}
}

/* ---------- Thank you ---------- */
.c8-thankyou {
	padding: 2.5rem 0 4rem;
	background: var(--c8-bg, #f0efeb);
}

.c8-thankyou__inner {
	max-width: 640px;
}

.c8-thankyou__card {
	padding: 2.5rem 1.75rem;
	background: #fff;
	border-radius: 20px 8px;
	box-shadow: 0 4px 24px rgba(18, 31, 56, 0.08);
	text-align: center;
}

.c8-thankyou__icon {
	display: inline-flex;
	margin-bottom: 1.25rem;
}

.c8-thankyou__title {
	margin: 0 0 0.75rem;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 700;
	color: #121f38;
}

.c8-thankyou__text {
	margin: 0 0 1.75rem;
	font-size: 1rem;
	line-height: 1.65;
	color: #555;
}

.c8-thankyou__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.c8-thankyou__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 0.75rem 1.35rem;
	border-radius: 20px 5px;
	background: #121f38;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.c8-thankyou__btn:hover {
	background: #9a563a;
	color: #fff !important;
}

.c8-thankyou__btn--ghost {
	background: transparent;
	border: 1px solid #121f38;
	color: #121f38 !important;
}

.c8-thankyou__btn--ghost:hover {
	background: #121f38;
	color: #fff !important;
}
