/**
 * Public booking page — [icg_afspraak].
 *
 * Everything is scoped under .icg-book so it drops into a theme page without
 * touching the surrounding layout.
 *
 * One palette, not two. An earlier version followed prefers-color-scheme, which
 * put a white card on the theme's black page for every visitor whose phone is
 * in light mode — and made the headings dark-on-dark. The site is dark, full
 * stop, so the widget is dark, full stop.
 */

.icg-book {
	--icg-ink: #ffffff;
	--icg-ink-2: #c3c2b7;
	--icg-muted: #8b8a84;
	--icg-surface: #16161a;
	--icg-surface-2: #1d1d22;
	--icg-line: rgba(255, 255, 255, .1);
	--icg-gold: #c9a227;
	--icg-gold-soft: rgba(201, 162, 39, .16);
	--icg-crit: #e57373;
	--icg-radius: 14px;
	--icg-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);

	max-width: 760px;
	margin: 0 auto;
	color: var(--icg-ink);
	font-size: 16px;
	line-height: 1.55;
}

.icg-book * {
	box-sizing: border-box;
}

/* ---------- intro ---------- */

.icg-book__kicker {
	margin: 0 0 4px;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--icg-gold);
}

.icg-book__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.15;
}

.icg-book__lead {
	margin: 0 0 28px;
	color: var(--icg-ink-2);
	max-width: 60ch;
}

/* ---------- steps ---------- */

.icg-book__step {
	margin: 0 0 26px;
}

.icg-book__steptitle {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 650;
}

.icg-book__stepsub {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: var(--icg-muted);
}

/* ---------- choice cards ---------- */

.icg-book__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.icg-book__grid--dates {
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.icg-book__card {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 15px 16px;
	text-align: left;
	background: var(--icg-surface);
	border: 1px solid var(--icg-line);
	border-radius: var(--icg-radius);
	box-shadow: var(--icg-shadow);
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
}

.icg-book__card:hover {
	border-color: var(--icg-gold);
	transform: translateY(-1px);
}

.icg-book__card.is-active {
	border-color: var(--icg-gold);
	background: var(--icg-gold-soft);
}

.icg-book__cardtitle {
	font-weight: 600;
	font-size: 15px;
}

.icg-book__cardsub {
	font-size: 13px;
	color: var(--icg-muted);
}

.icg-book__badge {
	margin-top: 6px;
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--icg-gold-soft);
	color: var(--icg-gold);
	font-size: 11.5px;
	font-weight: 600;
}

/* ---------- slots ---------- */

.icg-book__slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 8px;
}

.icg-book__slot {
	padding: 11px 8px;
	background: var(--icg-surface);
	border: 1px solid var(--icg-line);
	border-radius: 10px;
	color: inherit;
	font: inherit;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.icg-book__slot:hover {
	border-color: var(--icg-gold);
	background: var(--icg-gold-soft);
}

/* ---------- chosen summary rows ---------- */

.icg-book__chosen {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	padding: 11px 14px;
	margin-bottom: 10px;
	background: var(--icg-surface-2);
	border: 1px solid var(--icg-line);
	border-radius: 10px;
}

.icg-book__chosenlabel {
	font-size: 12.5px;
	color: var(--icg-muted);
}

.icg-book__chosenvalue {
	font-size: 15px;
}

.icg-book__link {
	margin-left: auto;
	padding: 0;
	background: none;
	border: 0;
	color: var(--icg-gold);
	font: inherit;
	font-size: 13.5px;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- form ---------- */

.icg-book__form {
	display: grid;
	gap: 14px;
	max-width: 480px;
}

.icg-book__field {
	display: grid;
	gap: 5px;
}

.icg-book__label {
	font-size: 13.5px;
	font-weight: 600;
}

.icg-book__optional {
	font-weight: 400;
	color: var(--icg-muted);
}

.icg-book__input {
	width: 100%;
	padding: 10px 12px;
	background: var(--icg-surface);
	color: inherit;
	border: 1px solid var(--icg-line);
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
}

.icg-book__input:focus {
	outline: none;
	border-color: var(--icg-gold);
	box-shadow: 0 0 0 3px var(--icg-gold-soft);
}

/* Honeypot: reachable to a scraping bot, invisible and unreachable to people. */
.icg-book__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.icg-book__submit {
	justify-self: start;
	padding: 12px 22px;
	background: var(--icg-gold);
	color: #16161a;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.icg-book__submit[disabled] {
	opacity: .6;
	cursor: default;
}

.icg-book__error {
	margin: 0;
	color: var(--icg-crit);
	font-size: 14px;
}

/* ---------- terminal states ---------- */

.icg-book__done,
.icg-book__empty {
	padding: 22px 24px;
	background: var(--icg-surface-2);
	border: 1px solid var(--icg-line);
	border-radius: var(--icg-radius);
}

.icg-book__doneline {
	margin: 6px 0 10px;
	font-size: 17px;
	font-weight: 600;
}

.icg-book__contact a {
	color: var(--icg-gold);
}

/* ---------- a11y ---------- */

.icg-book :focus-visible {
	outline: 2px solid var(--icg-gold);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.icg-book__card,
	.icg-book__slot {
		transition: none;
	}

	.icg-book__card:hover {
		transform: none;
	}
}
