/*
 * Weichaer Hof Anfragen: the enquiry form and its overview card.
 * Values follow the Laravel site's EnquiryForm (themes/weichaer-hof/sections/EnquiryForm.vue, tokens.css) 1:1.
 */
.whan-form,
.whan-summary,
.whan-done {
	--whan-ink: #26241c;
	--whan-body: #5c594e;
	--whan-label: #4b483b;
	--whan-faint: #8d8776;
	--whan-forest: #2e4b3c;
	--whan-forest-dark: #26402f;
	--whan-forest-soft: #41543f;
	--whan-accent: #c4512d;
	--whan-accent-hover: #b65c38;
	--whan-gold-deep: #9c7526;
	--whan-gold-icon: #8a6a24;
	--whan-card: #fcfaf3;
	--whan-input: #f2ede3;
	--whan-on-accent: #f5efdf;
	--whan-on-dark: #f2efe0;
	--whan-border: rgba(38, 36, 26, 0.18);
	--whan-shadow: 0 24px 50px -30px rgba(45, 40, 22, 0.35);
	--whan-error: #a4342c;
	font-family: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 27.2px;
	color: var(--whan-body);
}

.whan-form *,
.whan-summary * {
	box-sizing: border-box;
}

.whan-icon {
	flex: none;
}

/* The form is the card */
.whan-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
	padding: clamp(24px, 3vw, 44px);
	background: var(--whan-card);
	border: 1px solid rgba(38, 36, 26, 0.16);
	border-radius: 22px;
	box-shadow: var(--whan-shadow);
}

.whan-form--progress {
	gap: clamp(26px, 2.6vw, 36px);
}

/* Inside a booking window the window is the card. */
.whva-dialog .whan-form {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* Hidden means hidden: a step, a conditional field or a button the script switched off. */
.whan-form[hidden],
.whan-form [hidden],
.whan-done[hidden] {
	display: none !important;
}

/* Feiern: three discs on a gold rail */
.whan-progress {
	display: flex;
	align-items: center;
}

.whan-rail {
	flex: 1;
	min-width: 24px;
	height: 3px;
	margin: 0 14px;
	overflow: hidden;
	background: rgba(38, 36, 26, 0.12);
	border-radius: 999px;
}

.whan-rail-fill {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, #c8963e, #d9a441);
	transition: width 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.whan-rail-fill.is-full {
	width: 100%;
}

.whan-prog-step {
	display: flex;
	flex: 0 1 110px;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.whan-disc {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-size: 16px;
	font-weight: 700;
	color: var(--whan-faint);
	background: transparent;
	border: 1px solid rgba(38, 36, 26, 0.28);
	border-radius: 999px;
	transition: all 0.3s;
}

.whan-prog-step.is-done .whan-disc {
	color: var(--whan-forest);
	background: rgba(46, 75, 60, 0.14);
}

.whan-prog-step.is-current .whan-disc {
	color: var(--whan-on-dark);
	background: var(--whan-forest);
	border-color: var(--whan-forest);
}

.whan-prog-label {
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	color: var(--whan-faint);
}

.whan-prog-step.is-current .whan-prog-label {
	color: var(--whan-ink);
}

.whan-step-title {
	display: block;
	font-family: 'Fraunces', Georgia, serif;
	font-size: 26px;
	font-weight: 600;
	color: var(--whan-ink);
}

.whan-form--progress .whan-step {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Catering: numbered chips with a rule between */
.whan-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0 0 22px;
	list-style: none;
	border-bottom: 1px solid rgba(38, 36, 26, 0.12);
}

.whan-strip li {
	margin: 0;
	padding: 0;
}

.whan-strip-rule {
	flex: 1;
	min-width: 24px;
	height: 1px;
	background: rgba(38, 36, 26, 0.16);
}

.whan-form .whan-strip .whan-chip {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 0;
	font: inherit;
	text-align: left;
	color: inherit;
	background: none;
	border: 0;
	cursor: default;
	opacity: 1;
}

.whan-form .whan-strip .whan-chip:not(:disabled) {
	cursor: pointer;
}

.whan-form .whan-strip .whan-chip:hover,
.whan-form .whan-strip .whan-chip:focus-visible {
	color: inherit;
	background: none;
}

.whan-chip .whan-disc {
	color: var(--whan-body);
	border-color: rgba(38, 36, 26, 0.35);
}

.whan-chip.is-current .whan-disc {
	color: var(--whan-on-accent);
	background: var(--whan-accent);
	border-color: rgba(38, 36, 26, 0.25);
}

.whan-chip.is-done .whan-disc {
	color: var(--whan-on-accent);
	background: var(--whan-forest);
	border-color: var(--whan-forest);
}

.whan-chip-label {
	font-size: 16px;
	font-weight: 600;
	color: var(--whan-faint);
}

.whan-chip.is-current .whan-chip-label {
	color: var(--whan-ink);
}

/* Fields */
.whan-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.whan-form--progress .whan-grid {
	gap: 16px 18px;
}

.whan-form--plain .whan-grid {
	gap: 16px 18px;
}

.whan-field--wide,
.whan-grid > .whan-consent {
	grid-column: 1 / -1;
}

@media (max-width: 720px) {
	.whan-form--wizard .whan-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 680px) {
	.whan-form--progress .whan-grid,
	.whan-form--plain .whan-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* In a booking window: the Laravel popup's measure (two columns only for e-mail and phone), a full-width button. */
.whva-dialog .whan-form {
	gap: 16px;
}

.whva-dialog .whan-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 560px) {
	.whva-dialog .whan-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.whva-dialog .whan-actions {
	padding-top: 0;
	border-top: 0;
}

.whva-dialog .whan-form .whan-btn--submit {
	width: 100%;
	margin-left: 0;
	padding: 16px 26px;
	box-shadow: 0 12px 40px rgba(196, 81, 45, 0.35);
}

.whva-dialog .whan-check {
	line-height: 23px;
}

/* A course booking: "Gesamtpreis" and the sum, as the Laravel popup draws it above the consent line. */
.whan-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding-top: 16px;
	font-size: 17px;
	line-height: 1.4;
	color: var(--whan-ink);
	border-top: 1px solid rgba(38, 36, 26, 0.16);
}

.whan-total strong {
	font-weight: 600;
	color: var(--whan-accent);
}

.whva-dialog .whan-done {
	padding: 0;
	font-size: 18px;
	line-height: 27px;
	color: #2e4b3c;
	background: none;
	border: 0;
}

.whva-dialog .whan-done .whan-icon,
.whva-dialog .whan-done strong:empty {
	display: none;
}

.whva-dialog .whan-done > span > span {
	font-size: 18px;
	line-height: 27px;
	color: #2e4b3c;
}

.whan-field {
	display: flex;
	flex-direction: column;
	/* At least 8px between label and field, or the focus ring covers the label (Togaether UI rule). */
	gap: 10px;
	min-width: 0;
}

.whan-caption {
	font-size: 16px;
	font-weight: 600;
	line-height: inherit;
	color: var(--whan-label);
}

.whan-req {
	color: var(--whan-accent);
}

.whan-required-note {
	margin: 0;
	font-size: 16px;
	color: var(--whan-label);
}

.whan-optional {
	font-weight: 400;
	color: var(--whan-faint);
}

.whan-form input[type='text'],
.whan-form input[type='email'],
.whan-form input[type='tel'],
.whan-form input[type='number'],
.whan-form input[type='date'],
.whan-form input[type='time'],
.whan-form textarea {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 16px 18px;
	font: inherit;
	font-size: 18px;
	line-height: normal;
	color: var(--whan-body);
	background: var(--whan-input);
	border: 1px solid var(--whan-border);
	border-radius: 12px;
	box-shadow: none;
	transition: border-color 0.2s;
}

.whan-form--progress input[type='date'],
.whan-form textarea {
	padding-top: 15px;
	padding-bottom: 15px;
}

.whan-form textarea {
	line-height: 24px;
	resize: vertical;
}

.whan-form--progress textarea {
	line-height: 25px;
}

.whan-form input::placeholder,
.whan-form textarea::placeholder {
	color: var(--whan-faint);
	opacity: 1;
}

.whan-form input:focus,
.whan-form textarea:focus {
	border-color: var(--whan-accent);
}

/*
 * The focus ring: 2px ink (#26241c is 15:1 on the card), 2px off the field, for keyboard focus only. A select and the
 * hour and minute pair sit in a frame, so the frame carries the ring and not the bare control inside it.
 */
.whan-form input:focus-visible,
.whan-form textarea:focus-visible,
.whan-form .whan-select:has(select:focus-visible),
.whan-form .whan-time:has(input:focus-visible),
.whan-form .whan-alert:focus-visible {
	outline: 2px solid var(--whan-ink);
	outline-offset: 2px;
}

.whan-form .whan-time input:focus-visible {
	outline: none;
}

.whan-select {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 18px;
	color: var(--whan-body);
	background: var(--whan-input);
	border: 1px solid var(--whan-border);
	border-radius: 12px;
	transition: border-color 0.2s;
}

.whan-select:focus-within {
	border-color: var(--whan-accent);
}

.whan-form .whan-select select {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 16px 0;
	font: inherit;
	font-size: 18px;
	line-height: normal;
	color: var(--whan-body);
	background: transparent;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.whan-form [aria-invalid='true'],
.whan-select:has([aria-invalid='true']),
.whan-time:has([aria-invalid='true']) {
	border-color: var(--whan-error);
}

/* Multi-select tiles: gold when ticked */
.whan-field--tiles {
	gap: 12px;
}

.whan-form--progress .whan-field--tiles {
	margin-top: 6px;
}

.whan-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 10px 20px;
}

.whan-form--progress .whan-tiles {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 10px 22px;
}

.whan-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	font-size: 18px;
	color: var(--whan-body);
	background: var(--whan-input);
	border: 1px solid var(--whan-border);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.whan-tile:hover {
	border-color: rgba(156, 117, 38, 0.7);
}

.whan-tile:has(:checked) {
	color: var(--whan-ink);
	background: rgba(166, 126, 48, 0.1);
	border-color: rgba(166, 126, 48, 0.6);
}

.whan-tile input,
.whan-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--whan-accent);
}

.whan-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}

.whan-choice {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	cursor: pointer;
}

.whan-choice input {
	accent-color: var(--whan-accent);
}

/* Consent */
.whan-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	line-height: 24px;
	color: var(--whan-body);
	cursor: pointer;
}

.whan-check input {
	margin-top: 3px;
}

.whan-grid > .whan-consent {
	margin-top: 4px;
}

.whan-check a {
	color: var(--whan-gold-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.whan-error {
	font-size: 16px;
	color: var(--whan-error);
}

/* Server errors about a field the guest cannot see (the chosen event, say): one line above the form. */
.whan-alert {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--whan-error);
}

.whan-error:empty {
	display: none;
}

/* Buttons. Repeated with the form class: the theme paints every button on hover. */
.whan-form .whan-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 0;
	padding: 15px 24px;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: inherit;
	text-decoration: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 250ms;
}

.whan-form .whan-btn:active {
	transform: scale(0.98);
}

.whan-form .whan-btn:focus-visible {
	outline: 2px solid var(--whan-ink);
	outline-offset: 2px;
}

.whan-form .whan-btn--back {
	color: var(--whan-forest);
	background: transparent;
	border: 1px solid var(--whan-forest);
}

.whan-form .whan-btn--back:hover,
.whan-form .whan-btn--back:focus-visible {
	color: var(--whan-on-dark);
	background: var(--whan-forest);
	border-color: var(--whan-forest);
}

.whan-form--progress .whan-btn--back {
	border-color: rgba(46, 75, 60, 0.55);
}

.whan-form--progress .whan-btn--back:hover,
.whan-form--progress .whan-btn--back:focus-visible {
	color: var(--whan-forest);
	background: rgba(46, 75, 60, 0.08);
	border-color: var(--whan-forest);
}

.whan-form .whan-btn--next,
.whan-form .whan-btn--submit,
.whan-form .whan-btn--send {
	margin-left: auto;
	padding: 15px 28px;
	color: var(--whan-on-accent);
	background: var(--whan-accent);
	border: 1px solid rgba(38, 36, 26, 0.25);
	box-shadow: 0 12px 40px rgba(196, 81, 45, 0.4);
}

.whan-form .whan-btn--submit {
	gap: 10px;
	padding: 17px 36px;
}

.whan-form .whan-btn--send {
	gap: 10px;
	margin-left: 0;
	padding: 16px 28px;
}

.whan-form .whan-btn--next:hover,
.whan-form .whan-btn--submit:hover,
.whan-form .whan-btn--send:hover,
.whan-form .whan-btn--next:focus-visible,
.whan-form .whan-btn--submit:focus-visible,
.whan-form .whan-btn--send:focus-visible {
	color: var(--whan-on-accent);
	background: var(--whan-accent-hover);
	border-color: rgba(38, 36, 26, 0.25);
	box-shadow: 0 16px 52px rgba(196, 81, 45, 0.6);
}

/* Feiern's Weiter is forest */
.whan-form--progress .whan-btn--next {
	padding: 15px 26px;
	background: var(--whan-forest);
	box-shadow: none;
}

.whan-form--progress .whan-btn--next:hover,
.whan-form--progress .whan-btn--next:focus-visible {
	background: var(--whan-forest-dark);
	box-shadow: none;
}

.whan-form .whan-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.whan-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: clamp(20px, 2vw, 26px);
	border-top: 1px solid rgba(38, 36, 26, 0.1);
}

.whan-send {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.whan-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding-top: 22px;
	border-top: 1px solid rgba(38, 36, 26, 0.12);
}

.whan-form--plain .whan-actions {
	padding-top: 4px;
	border-top: 0;
}

.whan-status {
	font-size: 16px;
}

.whan-status:empty {
	display: none;
}

.whan-status--error {
	font-weight: 600;
	color: var(--whan-error);
}

/* Thank-you */
.whan-done {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 20px;
	color: var(--whan-forest-soft);
	background: rgba(65, 84, 63, 0.12);
	border: 1px solid var(--whan-forest-soft);
	border-radius: 12px;
}

.whan-done .whan-icon {
	margin-top: 2px;
}

.whan-done > span {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.whan-done strong {
	font-size: 18px;
	color: var(--whan-forest-dark);
}

.whan-done > span > span {
	font-size: 16px;
	line-height: 24px;
}

.whan-done--panel {
	padding: clamp(22px, 2.6vw, 36px);
	background: var(--whan-card);
	border-color: rgba(217, 164, 65, 0.8);
	border-radius: 20px;
}

.whan-done--panel .whan-icon {
	display: none;
}

.whan-done--panel strong {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 600;
	color: var(--whan-forest);
}

.whan-done--panel > span > span {
	margin-top: 8px;
	font-size: 18px;
	line-height: 30px;
	color: var(--whan-body);
}

/* "Ihre Anfrage im Überblick" */
.whan-summary {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(26px, 2.6vw, 36px);
	background: var(--whan-card);
	border: 1px solid rgba(217, 164, 65, 0.8);
	border-radius: 22px;
	box-shadow: var(--whan-shadow);
}

.whan-summary .whan-sum-title {
	margin: 0;
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(23px, 1.9vw, 27px);
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	color: var(--whan-forest);
}

.whan-sum-rule {
	display: block;
	height: 1px;
	background: linear-gradient(90deg, rgba(217, 178, 102, 0.15), #e4be62, rgba(217, 178, 102, 0.15));
}

.whan-sum-rows {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.whan-sum-row {
	display: flex;
	align-items: baseline;
	gap: 14px;
}

.whan-sum-row dt {
	font-size: 16px;
	font-weight: 400;
	color: #5d5a4d;
}

.whan-sum-leader {
	flex: 1;
	border-bottom: 2px dotted #cdc2a4;
	transform: translateY(-4px);
}

.whan-sum-row dd {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	text-align: right;
	color: var(--whan-ink);
}

.whan-sum-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-top: 14px;
	font-size: 16px;
	line-height: 24px;
	color: var(--whan-body);
	border-top: 1px solid rgba(38, 36, 26, 0.12);
}

.whan-sum-note .whan-icon {
	margin-top: 3px;
	color: var(--whan-gold-icon);
}

/* The Restaurant's table form (Laravel ReservationBar): two labelled groups, one time field, channel cards. */
/* The page's card holds the text and this form side by side; the form itself is not a card. */
.whan-form.whan-form--reservation {
	gap: 20px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.whan-fieldset {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.whan-form .whan-legend {
	margin: 0 0 16px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--whan-gold-deep);
}

.whan-form--reservation .whan-grid {
	gap: 16px;
}

@media (max-width: 520px) {
	.whan-form--reservation .whan-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The padding sits on the two inputs, so hour and minute are full-height tap targets (they were 34 × 22 px). */
.whan-time {
	display: flex;
	align-items: center;
	padding: 0 14px;
	font-size: 18px;
	line-height: normal;
	color: var(--whan-body);
	background: var(--whan-input);
	border: 1px solid var(--whan-border);
	border-radius: 12px;
}

.whan-time:focus-within {
	border-color: var(--whan-accent);
}

.whan-form .whan-time input[type='number'] {
	width: calc(3ch + 8px);
	min-width: 0;
	padding: 16px 4px;
	font-size: 18px;
	text-align: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.whan-form .whan-time input::-webkit-inner-spin-button,
.whan-form .whan-time input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.whan-time-unit {
	margin-left: 4px;
	color: var(--whan-faint);
}

.whan-channels {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.whan-channel {
	display: flex;
	flex: 1 1 200px;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	font-size: 17px;
	line-height: inherit;
	color: var(--whan-ink);
	background: var(--whan-input);
	border: 1px solid var(--whan-border);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.whan-channel:has(:checked) {
	background: rgba(196, 81, 45, 0.06);
	border-color: var(--whan-accent);
}

.whan-channel input {
	margin: 0;
	accent-color: var(--whan-accent);
}

.whan-form--reservation .whan-check {
	line-height: 23px;
}

.whan-form--reservation .whan-actions {
	padding-top: 0;
	border-top: 0;
}

.whan-form--reservation .whan-btn--submit {
	margin-left: 0;
	padding: 16px 26px;
	box-shadow: 0 12px 40px rgba(196, 81, 45, 0.35);
}

/* The table request thanks in one forest line, as the Laravel ReservationBar. */
.whan-done.whan-done--line {
	padding: 0;
	font-size: 16px;
	color: #2e4b3c;
	background: none;
	border: 0;
}

.whan-done--line .whan-icon,
.whan-done--line strong:empty {
	display: none;
}

.whan-done--line > span > span {
	font-size: 16px;
	color: #2e4b3c;
}
