/* Booking form — used inside the modal (site.css) and on the standalone page (book.html). */

.booking {
	--bk-yellow: #EDD65F;
	--bk-ink: #1c1c1c;
	--bk-muted: #6b6b6b;
	--bk-line: #e2ddd0;
	--bk-bg: #ffffff;
	--bk-error: #b3261e;

	padding: 36px 36px 32px;
	color: var(--bk-ink);
	font-family: Brandon, sans-serif;
	line-height: 1.4;
}

.booking__head {
	text-align: center;
	margin-bottom: 28px;
}

.booking__logo {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 10px;
}

.booking__title {
	font-family: 'Cinzel', serif;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.booking__subtitle {
	margin-top: 6px;
	font-size: 14px;
	color: var(--bk-muted);
}

.booking__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.booking__row {
	display: grid;
	gap: 12px;
}

.booking__row--3 {
	grid-template-columns: 1.4fr 1fr 1fr;
}

.booking__row--2 {
	grid-template-columns: 1fr 1fr;
}

.booking__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.booking__field > span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bk-muted);
}

.booking__field em {
	font-style: normal;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.booking__field input,
.booking__field select,
.booking__field textarea {
	width: 100%;
	padding: 11px 12px;
	font: inherit;
	font-size: 16px;
	color: var(--bk-ink);
	background: #faf9f6;
	border: 1.5px solid var(--bk-line);
	border-radius: 8px;
	min-height: 48px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

/* iOS Safari: keep the date value left-aligned and the field the same height as the others */
.booking__field input[type="date"] {
	display: flex;
	align-items: center;
	line-height: normal;
}

.booking__field input[type="date"]::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
}

.booking__field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 32px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6b6b' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}

.booking__field textarea {
	resize: vertical;
	min-height: 80px;
}

.booking__field input::placeholder,
.booking__field textarea::placeholder {
	color: #aaa59a;
}

.booking__field input:focus,
.booking__field select:focus,
.booking__field textarea:focus {
	background-color: #fff;
	border-color: var(--bk-ink);
	box-shadow: 0 0 0 3px rgba(237, 214, 95, 0.55);
}

.booking__field .is-invalid {
	border-color: var(--bk-error);
	background-color: #fdf5f4;
}

.booking__error {
	padding: 10px 12px;
	font-size: 14px;
	color: var(--bk-error);
	background: #fdf0ee;
	border-radius: 8px;
}

.booking__submit {
	margin-top: 4px;
	min-height: 52px;
	-webkit-tap-highlight-color: transparent;
	width: 100%;
	padding: 15px;
	font-family: 'Cinzel', serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bk-yellow);
	background: var(--bk-ink);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.booking__submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.booking__submit:focus-visible {
	box-shadow: 0 0 0 3px rgba(237, 214, 95, 0.8);
}

.booking__submit:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
	box-shadow: none;
}

.booking__success {
	padding: 12px 0 4px;
	text-align: center;
	animation: bk-fade 0.3s ease-out;
}

.booking__check {
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--bk-yellow);
	color: var(--bk-ink);
	font-size: 30px;
	font-weight: 700;
	line-height: 64px;
	animation: bk-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.booking__success h3 {
	font-family: 'Cinzel', serif;
	font-size: 24px;
	margin-bottom: 10px;
}

.booking__summary {
	font-size: 17px;
}

.booking__note {
	margin: 8px 0 24px;
	font-size: 14px;
	color: var(--bk-muted);
}

[hidden] {
	display: none !important;
}

@keyframes bk-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes bk-rise {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@keyframes bk-pop {
	from { transform: scale(0.4); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@media (max-width: 560px) {
	.booking {
		padding: 28px 20px calc(22px + env(safe-area-inset-bottom));
	}

	.booking__head {
		margin-bottom: 22px;
		padding: 0 36px; /* don't run under the close button */
	}

	.booking__form {
		gap: 14px;
	}

	.booking__title {
		font-size: 23px;
	}

	.booking__row--3 {
		grid-template-columns: 1fr 1fr;
	}

	.booking__row--3 .booking__field:first-child {
		grid-column: 1 / -1;
	}

	.booking__row--2 {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.booking-modal,
	.booking-modal .modal-frame,
	.booking__success,
	.booking__check {
		animation: none;
	}
}

@media (max-width: 360px) {
	.booking {
		padding-left: 16px;
		padding-right: 16px;
	}

	.booking__title {
		font-size: 21px;
	}

	.booking__row--3,
	.booking__row--2 {
		gap: 10px;
	}
}

@media (max-height: 500px) and (min-width: 561px) {
	.booking {
		padding: 22px 28px 20px;
	}

	.booking__head {
		margin-bottom: 16px;
	}

	.booking__title {
		font-size: 22px;
	}

	.booking__form {
		gap: 12px;
	}

	.booking__field textarea {
		min-height: 56px;
	}
}

