/**
 * Structural styles for the booking form.
 *
 * Intentionally lightweight: layout + states only, no brand colours. The
 * sirtaki theme owns the visual styling via the .sirtaki-reservation-slot
 * container; these rules just make the form usable if loaded standalone and
 * provide hook classes the theme can override.
 */
.sirtaki-res-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Party + date sit side by side, then stack on narrow screens. */
.sirtaki-res-form__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}
.sirtaki-res-form__step {
	display: flex;
	flex: 1 1 12rem;
	flex-direction: column;
	gap: 0.5rem;
}

.sirtaki-res-form__label {
	display: block;
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.sirtaki-res-form__input {
	width: 100%;
	padding: 0.7rem 0.8rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

/* Inline calendar (structural). */
.sirtaki-res-form__calendar-section {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.sirtaki-res-form__calendar {
	border: 1px solid currentColor;
	border-radius: 2px;
	padding: 0.75rem;
}
.sirtaki-res-form__cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.6rem;
}
.sirtaki-res-form__cal-nav {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}
.sirtaki-res-form__cal-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}
.sirtaki-res-form__cal-month {
	font-weight: 600;
	text-transform: capitalize;
}
.sirtaki-res-form__cal-weekdays,
.sirtaki-res-form__cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.25rem;
}
.sirtaki-res-form__cal-weekday {
	text-align: center;
	font-size: 0.7em;
	opacity: 0.7;
	padding-bottom: 0.25rem;
}
.sirtaki-res-form__cal-day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border: 1px solid transparent;
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.sirtaki-res-form__cal-day.is-empty {
	visibility: hidden;
	cursor: default;
}
.sirtaki-res-form__cal-day.is-disabled,
.sirtaki-res-form__cal-day:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}
.sirtaki-res-form__cal-day.is-closed {
	text-decoration: line-through;
}
.sirtaki-res-form__cal-dot {
	position: absolute;
	bottom: 0.28rem;
	left: 50%;
	transform: translateX(-50%);
	width: 0.3rem;
	height: 0.3rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}

/* Party stepper. */
.sirtaki-res-form__stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.35rem 0.5rem;
	border: 1px solid currentColor;
	border-radius: 2px;
}
.sirtaki-res-form__step-btn {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}
.sirtaki-res-form__step-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}
.sirtaki-res-form__step-value {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}
.sirtaki-res-form__party-select {
	/* Reset native chrome so the number reads like the big stepper count,
	   while remaining a real <select> (native wheel/list picker on mobile). */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: 0;
	margin: 0;
	padding: 0 0.1rem;
	background-color: transparent;
	color: inherit;
	font: inherit;
	text-align: center;
	text-align-last: center;
	cursor: pointer;
}
.sirtaki-res-form__party-select::-ms-expand {
	display: none;
}
.sirtaki-res-form__step-unit {
	font-size: 0.82em;
	opacity: 0.75;
}

/* Time slots. */
.sirtaki-res-form__times {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.sirtaki-res-form__slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
	gap: 0.5rem;
}
.sirtaki-res-form__slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	padding: 0.55rem 0.3rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.sirtaki-res-form__slot-time {
	font-weight: 600;
}
.sirtaki-res-form__slot-note {
	font-size: 0.68em;
	letter-spacing: 0.03em;
	opacity: 0.8;
}
.sirtaki-res-form__slot.is-selected {
	background: currentColor;
}
.sirtaki-res-form__slot.is-full {
	opacity: 0.35;
	cursor: not-allowed;
}
.sirtaki-res-form__waitlist {
	align-self: flex-start;
	padding: 0.55rem 1rem;
	border: 1px dashed currentColor;
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.sirtaki-res-form__hint {
	margin: 0;
	font-style: italic;
	opacity: 0.7;
}

/* Guest details, revealed once a time is chosen. */
.sirtaki-res-form__details {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.sirtaki-res-form__details[disabled] {
	opacity: 0.45;
}
.sirtaki-res-form__legend {
	padding: 0;
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.sirtaki-res-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
.sirtaki-res-form__field {
	display: flex;
	flex: 1 1 12rem;
	flex-direction: column;
	gap: 0.4rem;
}

.sirtaki-res-form__submit {
	align-self: flex-start;
	padding: 0.8rem 1.8rem;
	border: 0;
	border-radius: 2px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.sirtaki-res-form__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sirtaki-res-form__message:empty {
	display: none;
}
.sirtaki-res-form__message.is-error {
	color: #b00020;
}
.sirtaki-res-form__message.is-success {
	font-weight: 600;
}
