/**
 * An Nam Reservation (an-reservation): Figma "Reservation / …" at 1440, 834 and 390
 * (template-mgk-06/data/_figma-export/step1/c.md).
 *
 * 1440: cream; the content column (620) starts at the container edge (120) with padding 80
 * top and bottom; 48 to its right the tall photo fills the rest of the section, edge to edge
 * and as tall as the section, square. In the column, 32 apart: marker (12 / 150% ink), title
 * (Newsreader 64 / 110%), line (15 / 150% muted), the form, then the visit details (photo
 * 200 × 200 radius 12, 24 to its right the address 15 / 150% muted, "Get directions" 14 / 150%
 * underlined on a 45 tall row, the note 13 / 150% muted, 12 apart).
 * 834: no tall photo (an-page-photo above); padding 56 / 32; the form (462) and, 48 to its
 * right, the visit details (260: photo 260 × 320 square, then each block 24 apart).
 * 390: padding 32 / 20; title 44; the visit details 48 under the form (photo 350 × 240);
 * buttons as wide as the column.
 *
 * Form: blocks 24 apart; step heading Newsreader 24 / 110%; chip rows 12 apart (party chips
 * 114 / 146 / 108 wide, dates 146 / 225 / 169, times 146 / 146 / 108); label 8 above the chips,
 * note 13 / 150% muted 8 under them. Details: booking line 16 / 150% muted, fields 24 apart.
 * Success: "Thank you" Newsreader 36 / 110%, request lines 17 / 150% ink.
 */

.an-reservation {
	--an-chip-w: 146px;
}

/* The section is the column; the content keeps the container width. */
.an-reservation__content {
	width: min(var(--an-max), 100% - 2 * var(--an-gutter));
	margin-inline: auto;
}

/* 1440: content column, 48, then the photo to the right edge. */
@media (min-width: 1025px) {
	.an-reservation--photo {
		display: grid;
		grid-template-columns: minmax(0, 620fr) minmax(0, 652fr);
		column-gap: 48px;
		padding-left: max(var(--an-gutter), (100% - var(--an-max)) / 2);
	}

	.an-reservation--photo .an-reservation__content {
		width: auto;
		margin-inline: 0;
	}
}

.an-reservation__photo {
	position: relative;
	min-height: 100%;
	overflow: hidden;
	background: var(--an-c-sand);
}

@media (max-width: 1024px) {
	.an-reservation__photo {
		display: none;
	}
}

/* Heading: marker, title, line, 32 apart. */
.an-reservation__head {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.an .an-reservation__marker {
	color: var(--an-heading);
	line-height: var(--an-lh-text);
}

.an-reservation__title {
	font-size: var(--an-fs-display);
	line-height: var(--an-lh-tight);
}

.an-reservation__lead {
	color: var(--an-muted);
	font-size: 15px;
	line-height: var(--an-lh-text);
}

/* Form and visit details: stacked 32 apart at 1440, side by side at 834, stacked 48 at 390. */
.an-reservation__layout {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-top: 32px;
}

.an-reservation__main {
	min-width: 0;
}

.an-reservation__form,
.an-reservation__result {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.an-reservation__form > *,
.an-reservation__result > * {
	max-width: 100%;
}

.an-reservation__form > .an-field,
.an-reservation__form > .an-reservation__group,
.an-reservation__form > .an-error-summary {
	align-self: stretch;
}

.an-reservation__step {
	font-size: 24px;
	line-height: var(--an-lh-tight);
}

/* Chip groups: label 8 above the chips, the note 8 under them. */
.an-reservation__group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.an-reservation__legend {
	display: block;
	margin-bottom: 8px;
	padding: 0;
}

.an-reservation__chips {
	display: grid;
	grid-template-columns: repeat(auto-fill, var(--an-chip-w));
	gap: 12px;
}

.an-reservation__chips--party {
	--an-chip-w: 114px;
}

.an-reservation__option {
	position: relative;
	display: block;
}

.an-reservation__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.an-reservation__chips .an-chip {
	width: 100%;
}

.an-reservation__note {
	color: var(--an-muted);
	font-size: 13px;
	line-height: var(--an-lh-text);
}

.an-reservation__group .an-reservation__note {
	margin-top: 8px;
}

/* Booking line of the details step. */
.an-reservation__summary {
	color: var(--an-muted);
	font-size: var(--an-fs-body);
	line-height: var(--an-lh-text);
}

.an-reservation__errors-title {
	color: var(--an-heading);
}

.an-reservation__actions--pair {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* "Get directions", "Back to available times", "View the menu": 14 / 150% on a 45 tall row. */
.an .an-reservation__link {
	min-height: 0;
	padding: 12px 0;
	font-size: var(--an-fs-small);
	line-height: var(--an-lh-text);
}

/* No tables at this time. */
.an-reservation__body {
	color: var(--an-muted);
	font-size: var(--an-fs-body);
	line-height: var(--an-lh-text);
}

/* Here is your request. */
.an-reservation__thanks {
	font-size: 36px;
	line-height: var(--an-lh-tight);
}

.an-reservation__request {
	color: var(--an-heading);
	font-size: 17px;
	line-height: var(--an-lh-text);
}

.an-reservation__line {
	display: block;
}

/* Visit details: photo 200 × 200, 24, then the text column (blocks 12 apart). */
.an-reservation__visit {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	align-items: start;
	gap: 24px;
}

.an-reservation__visit-photo {
	height: 200px;
	overflow: hidden;
	border-radius: var(--an-radius);
	background: var(--an-c-sand);
}

.an .an-reservation__visit-photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.an-reservation__visit-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.an-reservation__visit-text {
	color: var(--an-muted);
	font-size: 15px;
	line-height: var(--an-lh-text);
}

/* Tablet: form 462, 48, visit details 260; square visit photo 260 × 320, blocks 24 apart. */
@media (max-width: 1024px) {
	.an-reservation__layout {
		display: grid;
		grid-template-columns: minmax(0, 462fr) minmax(0, 260fr);
		align-items: start;
		gap: 48px;
	}

	.an-reservation__chips--party,
	.an-reservation__chips--time {
		--an-chip-w: 146px;
	}

	.an-reservation__chips--date {
		--an-chip-w: 225px;
	}

	.an-reservation__visit {
		grid-template-columns: minmax(0, 1fr);
	}

	.an-reservation__visit-photo {
		height: 320px;
		border-radius: 0;
	}

	.an-reservation__visit-body {
		gap: 24px;
	}
}

/* Phone: title 44; visit details 48 under the form (photo 350 × 240); full-width buttons. */
@media (max-width: 767px) {
	.an-reservation__title {
		font-size: 44px;
	}

	.an-reservation__layout {
		display: flex;
		flex-direction: column;
		gap: 48px;
	}

	.an-reservation__chips--party,
	.an-reservation__chips--time {
		--an-chip-w: 108px;
	}

	.an-reservation__chips--date {
		--an-chip-w: calc((100% - 12px) / 2);
	}

	.an-reservation__visit-photo {
		height: 240px;
	}

	.an-reservation__form > .an-reservation__actions,
	.an-reservation__result > .an-reservation__actions {
		align-self: stretch;
	}

	.an-reservation__actions--pair {
		flex-direction: column;
	}

	.an-reservation .an-reservation__button {
		width: 100%;
	}
}
