/*
 * Publieke boekingspagina — mobile-first, bewust zonder UBold.
 * Strakke, Zenchef-achtige stijl; branding per tenant of per
 * widget-profiel overschrijft --booking-primary(-dark) via een
 * inline style-blok, alle tinten volgen daar automatisch uit
 * (color-mix).
 */
:root {
	--booking-primary: #2f6f4f;
	--booking-primary-dark: #24573e;
	--booking-primary-soft: color-mix(in srgb, var(--booking-primary) 8%, white);
	--booking-primary-border: color-mix(in srgb, var(--booking-primary) 35%, white);
	--booking-danger: #b33261;
	--booking-text: #17212b;
	--booking-muted: #68737d;
	--booking-border: #e3e8ed;
	--booking-background: #f5f6f8;
	--booking-card: #ffffff;
	--booking-radius: 16px;
	--booking-radius-small: 12px;
	--booking-shadow: 0 1px 2px rgba(23, 33, 43, 0.04), 0 8px 24px rgba(23, 33, 43, 0.06);
	--booking-shadow-hover: 0 2px 4px rgba(23, 33, 43, 0.06), 0 12px 32px rgba(23, 33, 43, 0.1);
}

* {
	box-sizing: border-box;
}

body.booking-body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	color: var(--booking-text);
	background: var(--booking-background);
	-webkit-font-smoothing: antialiased;
	font-size: 15px;
	line-height: 1.5;
}

.booking-shell {
	max-width: 560px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 0 16px;
}

.booking-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0 14px;
}

.booking-header-title {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--booking-text);
	text-decoration: none;
}

.booking-language-switch a {
	color: var(--booking-muted);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	margin-left: 12px;
	padding-bottom: 2px;
}

.booking-language-switch a.active {
	color: var(--booking-primary);
	border-bottom: 2px solid var(--booking-primary);
}

.booking-main {
	flex: 1;
}

/* Widget-profiel-logo boven de flow (ook in widget-modus) */
.booking-logo {
	text-align: center;
	padding: 6px 0 16px;
}

.booking-logo img {
	max-height: 56px;
	max-width: 220px;
}

.booking-footer {
	padding: 28px 0;
	text-align: center;
	color: var(--booking-muted);
	font-size: 12px;
}

.booking-footer-business {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
	margin-bottom: 8px;
	font-size: 13px;
}

.booking-footer-business a {
	color: var(--booking-muted);
	text-decoration: underline;
}

/* Widget-embed (?widget=1): de klantsite levert de chrome, het
   iframe toont alleen de flow zelf */
body.booking-widget .booking-header,
body.booking-widget .booking-footer {
	display: none;
}

body.booking-widget .booking-shell {
	min-height: 0;
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Stappenindicator */
.booking-progress {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin: 0 8px 18px;
}

.booking-progress-step {
	position: relative;
	flex: 1;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: var(--booking-muted);
}

.booking-progress-step::before {
	content: attr(data-step-number);
	display: block;
	width: 26px;
	height: 26px;
	line-height: 24px;
	margin: 0 auto 5px;
	border-radius: 50%;
	border: 2px solid var(--booking-border);
	background: var(--booking-card);
	font-size: 12px;
	font-weight: 700;
	color: var(--booking-muted);
	transition: all 0.2s ease;
}

.booking-progress-step::after {
	content: '';
	position: absolute;
	top: 13px;
	left: calc(50% + 17px);
	width: calc(100% - 34px);
	height: 2px;
	background: var(--booking-border);
}

.booking-progress-step:last-child::after {
	display: none;
}

.booking-progress-step.active {
	color: var(--booking-primary);
}

.booking-progress-step.active::before {
	border-color: var(--booking-primary);
	color: var(--booking-primary);
}

.booking-progress-step.completed::before {
	content: '✓';
	border-color: var(--booking-primary);
	background: var(--booking-primary);
	color: #fff;
}

.booking-progress-step.completed::after {
	background: var(--booking-primary);
}

/* Stappen */
.booking-step {
	background: var(--booking-card);
	border: 1px solid var(--booking-border);
	border-radius: var(--booking-radius);
	box-shadow: var(--booking-shadow);
	padding: 22px 20px;
	margin-bottom: 16px;
	animation: booking-step-in 0.25s ease;
}

@keyframes booking-step-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.booking-step-hidden {
	display: none;
}

.booking-step h2 {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.3px;
}

.booking-muted {
	color: var(--booking-muted);
	font-size: 14px;
}

.booking-back {
	display: inline-flex;
	align-items: center;
	background: none;
	border: none;
	color: var(--booking-muted);
	font-size: 14px;
	font-weight: 600;
	padding: 0 0 10px;
	cursor: pointer;
}

.booking-back:hover {
	color: var(--booking-primary);
}

/* Arrangement-keuze */
.booking-arrangement-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.booking-arrangement-card {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	width: 100%;
	padding: 14px 16px;
	background: var(--booking-card);
	border: 2px solid var(--booking-border);
	border-radius: var(--booking-radius-small);
	font-family: inherit;
	font-size: 15px;
	color: var(--booking-text);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.booking-arrangement-card:hover {
	border-color: var(--booking-primary-border);
}

.booking-arrangement-card.selected {
	border-color: var(--booking-primary);
	background: var(--booking-primary-soft);
	box-shadow: 0 0 0 1px var(--booking-primary);
}

.booking-arrangement-name {
	font-weight: 700;
}

.booking-arrangement-price {
	margin-left: auto;
	font-weight: 700;
	color: var(--booking-primary);
	white-space: nowrap;
}

.booking-arrangement-description {
	flex-basis: 100%;
	font-size: 13px;
	color: var(--booking-muted);
}

/* Item-keuze */
.booking-item-group {
	margin: 22px 0 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--booking-muted);
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.booking-item-group:first-of-type {
	margin-top: 0;
}

.booking-item-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.booking-item-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 17px 18px;
	background: var(--booking-card);
	border: 1px solid var(--booking-border);
	border-radius: var(--booking-radius-small);
	font-family: inherit;
	font-size: 16px;
	color: var(--booking-text);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.booking-item-card:hover,
.booking-item-card:focus {
	border-color: var(--booking-primary-border);
	box-shadow: var(--booking-shadow-hover);
	transform: translateY(-1px);
}

.booking-item-name {
	font-weight: 700;
}

.booking-item-arrow {
	color: var(--booking-primary);
	font-size: 22px;
	line-height: 1;
	transition: transform 0.15s ease;
}

.booking-item-card:hover .booking-item-arrow {
	transform: translateX(3px);
}

/* Vestigingskeuze (multi-vestiging) */
a.booking-item-card {
	text-decoration: none;
}

.booking-location-card-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: left;
}

.booking-location-address {
	color: var(--booking-muted);
	font-size: 14px;
}

.booking-location-line {
	margin: 0 0 14px;
	color: var(--booking-muted);
	font-size: 14px;
}

.booking-location-line a {
	color: var(--booking-primary);
}

/* Formuliervelden */
.booking-field {
	margin-bottom: 15px;
}

.booking-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
}

.booking-field input[type="text"],
.booking-field input[type="email"],
.booking-field input[type="tel"],
.booking-field input[type="date"],
.booking-field select,
.booking-field textarea {
	width: 100%;
	padding: 13px 14px;
	font-size: 16px;
	font-family: inherit;
	color: var(--booking-text);
	border: 1px solid var(--booking-border);
	border-radius: var(--booking-radius-small);
	background: var(--booking-card);
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.booking-field select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2368737d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
	outline: none;
	border-color: var(--booking-primary);
	box-shadow: 0 0 0 3px var(--booking-primary-soft);
}

.booking-field-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 14px;
	color: var(--booking-muted);
}

.booking-field-checkbox input {
	margin-top: 2px;
	accent-color: var(--booking-primary);
}

.booking-required {
	color: var(--booking-danger);
}

/* Validatie (meriad form module zet is-invalid) */
.is-invalid {
	border-color: var(--booking-danger) !important;
}

.invalid-feedback,
[data-meriad-entity="form-field-feedback"] {
	color: var(--booking-danger);
	font-size: 13px;
	margin-top: 4px;
	display: block;
}

[data-meriad-entity="form-feedback"] {
	color: var(--booking-danger);
	font-size: 14px;
	margin-bottom: 10px;
}

/* Knoppen */
.booking-primary-button,
.booking-danger-button {
	display: inline-block;
	width: 100%;
	padding: 15px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--booking-primary);
	border: none;
	border-radius: var(--booking-radius-small);
	cursor: pointer;
	text-align: center;
	box-shadow: 0 2px 8px color-mix(in srgb, var(--booking-primary) 35%, transparent);
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.booking-primary-button:hover {
	background: var(--booking-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--booking-primary) 45%, transparent);
}

.booking-primary-button:active {
	transform: translateY(0);
}

.booking-danger-button {
	background: var(--booking-danger);
	box-shadow: none;
}

.booking-link-button {
	text-decoration: none;
	margin-top: 12px;
}

/* Tijdsloten */
.booking-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 9px;
}

.booking-slot {
	padding: 12px 4px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	color: var(--booking-text);
	border: 1.5px solid var(--booking-border);
	border-radius: var(--booking-radius-small);
	background: var(--booking-card);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.booking-slot:hover:not(:disabled) {
	border-color: var(--booking-primary);
	background: var(--booking-primary-soft);
	transform: translateY(-1px);
}

.booking-slot:disabled {
	color: var(--booking-border);
	cursor: not-allowed;
	text-decoration: line-through;
	background: transparent;
}

.booking-slot-remaining {
	display: block;
	font-size: 10px;
	font-weight: 500;
	color: var(--booking-muted);
	margin-top: 2px;
}

/* Gegevens-stap */
.booking-summary {
	font-weight: 700;
	margin: 0 0 6px;
	padding: 12px 14px;
	background: var(--booking-primary-soft);
	border-radius: var(--booking-radius-small);
	font-size: 14px;
}

.booking-hold-notice {
	font-size: 13px;
	color: var(--booking-muted);
	margin: 0 0 16px;
}

.booking-hold-notice strong {
	color: var(--booking-primary);
	font-variant-numeric: tabular-nums;
}

/* Bevestiging */
.booking-done {
	text-align: center;
	padding: 16px 0;
}

.booking-done-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--booking-primary);
	color: #fff;
	font-size: 30px;
	animation: booking-done-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.booking-done-icon-pending {
	background: #d97706;
}

.booking-done-icon-failed {
	background: var(--booking-danger);
}

.booking-done a {
	color: var(--booking-primary);
	font-weight: 700;
}

.booking-done a.booking-primary-button {
	color: #fff;
	text-decoration: none;
	margin-top: 12px;
}

/* Beheer/annuleer-pagina */
.booking-manage-card {
	border: 1px solid var(--booking-border);
	border-radius: var(--booking-radius-small);
	padding: 6px 18px;
	margin-bottom: 16px;
	background: var(--booking-card);
}

.booking-manage-details {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 8px 12px;
	margin: 14px 0;
}

.booking-manage-details dt {
	color: var(--booking-muted);
	font-size: 14px;
}

.booking-manage-details dd {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
}

.booking-status {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 14px;
	font-size: 13px;
	background: var(--booking-border);
}

.booking-status-confirmed,
.booking-status-seated,
.booking-status-completed {
	background: #dcefe5;
	color: var(--booking-primary-dark);
}

.booking-status-requested,
.booking-status-pending_payment {
	background: #fdf3dc;
	color: #8a6d1d;
}

.booking-status-cancelled,
.booking-status-rejected,
.booking-status-no_show {
	background: #f9e0e6;
	color: var(--booking-danger);
}

@media (min-width: 600px) {
	.booking-header {
		padding-top: 32px;
	}

	.booking-step {
		padding: 30px 28px;
	}
}