/**
 * Reservation page (motherland plugin).
 *
 * Page frame for /reservation/ plus the plugin's first .ml-form__*
 * control primitives — section heads and CTAs come from components.css.
 * Consumes the theme's design tokens. Mobile-first; desktop at 1024px.
 */

/* ---- Page frame ------------------------------------------------------ */

.ml-reserve__head {
	padding: 32px var(--gutter) 8px;
}

.ml-reserve__intro {
	margin: 0;
	max-width: 560px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-muted);
}

.ml-reserve__section {
	padding: var(--section-rhythm) var(--gutter);
	/* Anchor targets must clear the sticky site header. */
	scroll-margin-top: 84px;
}

.ml-reserve__section + .ml-reserve__section {
	border-top: 1px solid var(--hairline);
}

.ml-reserve__grid {
	display: grid;
	gap: 28px;
}

.ml-reserve__note {
	margin: 4px 0 0;
	max-width: 420px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-muted);
}

/* ---- Form primitives ------------------------------------------------- */

.ml-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.ml-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ml-form__field--full {
	grid-column: 1 / -1;
}

.ml-form__label {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: var(--track-eyebrow);
	text-transform: uppercase;
	color: var(--text-faint);
}

.ml-form__input,
.ml-form__select,
.ml-form__textarea {
	width: 100%;
	height: var(--control-h);
	padding: 0 14px;
	font-family: var(--font-ui);
	font-size: 15px;
	color: var(--text-heading);
	background: rgba(244, 241, 234, 0.04);
	border: 1px solid var(--border-neutral);
	border-radius: var(--radius-btn);
	color-scheme: dark;
	transition: border-color 120ms ease;
}

.ml-form__input::placeholder,
.ml-form__textarea::placeholder {
	color: var(--text-faint);
}

.ml-form__input:focus,
.ml-form__select:focus,
.ml-form__textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.4);
}

.ml-form__select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml;charset=utf-8,%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='%23C9A24B' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.ml-form__select option {
	background-color: var(--bg-elevated);
	color: var(--text);
}

.ml-form__textarea {
	height: auto;
	min-height: 140px;
	padding: 12px 14px;
	line-height: 1.5;
	resize: vertical;
}

.ml-form__submit {
	width: 100%;
	border: 0;
	cursor: pointer;
	font-family: var(--font-ui);
}

.ml-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
	filter: none;
}

/* Honeypot: off-canvas for humans (also aria-hidden + tabindex=-1);
   left visible to CSS-less bots by design. */
.ml-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ml-form__notice {
	margin: 0 0 18px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid;
	border-radius: var(--radius-btn);
}

.ml-form__notice--success {
	border-color: rgba(110, 231, 160, 0.4);
	background: rgba(110, 231, 160, 0.06);
	color: var(--live-green);
}

.ml-form__notice--error {
	border-color: rgba(224, 101, 95, 0.45);
	background: rgba(224, 101, 95, 0.07);
	color: #e88b84;
}

/* ---- Desktop --------------------------------------------------------- */

@media (min-width: 1024px) {

	.ml-reserve__head {
		padding: 72px var(--gutter) 16px;
	}

	.ml-reserve__intro {
		font-size: 15px;
		line-height: 1.6;
	}

	.ml-reserve__section {
		padding: var(--section-rhythm) var(--gutter);
		scroll-margin-top: 106px;
	}

	.ml-reserve__grid {
		grid-template-columns: 1fr 1.2fr;
		gap: var(--col-gap);
		align-items: start;
	}

	.ml-reserve__copy {
		position: sticky;
		top: 110px;
	}

	.ml-form {
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}

	.ml-form__submit {
		width: auto;
		justify-self: start;
		min-width: 220px;
	}
}
