/*
 * Hyfox Booking – boekingsformulier
 * Mobiel eerst. Kleuren komen uit de instellingen via CSS-variabelen:
 *   --hb-primary (tekst/knoppen), --hb-accent (accent), --hb-bg (achtergrond kaart-omgeving)
 * Geen externe lettertypes (AVG: geen Google Fonts), alleen systeemletters.
 */

.hb-booking {
	--hb-primary: #1f2937;
	--hb-accent: #b91c1c;
	--hb-bg: #ffffff;
	--hb-line: rgba(0, 0, 0, .12);
	--hb-muted: rgba(0, 0, 0, .58);
	--hb-radius: 12px;
	--hb-display: "Rockwell", "Roboto Slab", "Clarendon", "Georgia", serif;
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	padding: 20px 16px 28px;
	background: var(--hb-bg);
	color: var(--hb-primary);
	font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	border-radius: var(--hb-radius);
}
.hb-booking *, .hb-booking *::before, .hb-booking *::after { box-sizing: inherit; }

/* Kop */
.hb-head { text-align: center; margin-bottom: 18px; }
.hb-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 50%; margin: 0 auto 8px; display: block; }
.hb-brand {
	font-family: var(--hb-display);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1.1;
}
/* Barbershop-streep onder de naam */
.hb-brand::after {
	content: "";
	display: block;
	width: 120px;
	height: 6px;
	margin: 10px auto 0;
	border-radius: 3px;
	background: repeating-linear-gradient(-45deg, var(--hb-accent) 0 8px, #fff 8px 14px, #1e3a8a 14px 22px, #fff 22px 28px);
}
.hb-intro { margin: 10px auto 0; max-width: 46ch; color: var(--hb-muted); font-size: .95rem; }

/* Voortgang */
.hb-progress { display: flex; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; counter-reset: none; }
.hb-progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; color: var(--hb-muted); text-align: center; }
.hb-progress span {
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	border: 2px solid var(--hb-line); font-weight: 700; font-size: .8rem; background: #fff;
}
.hb-progress li.current { color: var(--hb-primary); font-weight: 600; }
.hb-progress li.current span { border-color: var(--hb-accent); color: var(--hb-accent); }
.hb-progress li.done span { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }

/* Gekozen opties */
.hb-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hb-summary span { background: #fff; border: 1px solid var(--hb-line); border-radius: 999px; padding: 4px 10px; font-size: .8rem; }

/* Kaart */
.hb-card { background: #fff; border: 1px solid var(--hb-line); border-radius: var(--hb-radius); padding: 18px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); }
.hb-title { font-family: var(--hb-display); font-size: 1.25rem; margin: 0 0 14px; line-height: 1.2; }
.hb-muted { color: var(--hb-muted); font-size: .92rem; }
.hb-small { color: var(--hb-muted); font-size: .8rem; margin: 10px 0 0; }
.hb-back { background: none; border: 0; padding: 4px 0; margin: -4px 0 8px; color: var(--hb-muted); font: inherit; font-size: .9rem; cursor: pointer; }
.hb-back:hover { color: var(--hb-primary); }

/* Keuzelijsten (behandeling, kapper) */
.hb-options { display: grid; gap: 8px; }
.hb-option {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px;
	padding: 12px 14px; text-align: left; font: inherit; color: inherit;
	background: #fff; border: 1.5px solid var(--hb-line); border-radius: 10px; cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .05s;
}
.hb-option:hover { border-color: var(--hb-primary); }
.hb-option:active { transform: scale(.99); }
.hb-option.is-selected { border-color: var(--hb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hb-accent) 18%, transparent); }
.hb-option-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hb-option-main small { color: var(--hb-muted); font-size: .82rem; }
.hb-option-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: .85rem; color: var(--hb-muted); white-space: nowrap; }
.hb-option-meta strong { color: var(--hb-primary); font-size: 1rem; }
.hb-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex: none; }
.hb-avatar-any { background: var(--hb-primary); }

/* Dagen (horizontaal scrollen op mobiel) */
.hb-days {
	display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -4px 6px;
	scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; align-items: stretch;
}
.hb-month {
	flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .7rem; text-transform: uppercase;
	letter-spacing: .08em; color: var(--hb-muted); padding: 0 2px; text-align: center;
}
.hb-day {
	flex: none; width: 54px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
	font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--hb-line); border-radius: 10px; cursor: pointer; scroll-snap-align: center;
}
.hb-day span { font-size: .72rem; text-transform: uppercase; color: var(--hb-muted); }
.hb-day strong { font-size: 1.15rem; }
.hb-day:hover:not(:disabled) { border-color: var(--hb-primary); }
.hb-day.is-selected { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
.hb-day.is-selected span { color: rgba(255,255,255,.75); }
.hb-day:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.hb-dayname { font-weight: 600; margin: 4px 0 8px; }
.hb-slot-group { margin-bottom: 12px; }
.hb-slot-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-muted); margin-bottom: 6px; }
.hb-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hb-slot {
	padding: 11px 0; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; color: inherit;
	background: #fff; border: 1.5px solid var(--hb-line); border-radius: 8px; cursor: pointer;
}
.hb-slot:hover { border-color: var(--hb-accent); color: var(--hb-accent); }
.hb-slot.is-selected { background: var(--hb-accent); border-color: var(--hb-accent); color: #fff; }

.hb-loading { padding: 18px 0; color: var(--hb-muted); text-align: center; }
.hb-loading::before {
	content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
	border: 2px solid var(--hb-line); border-top-color: var(--hb-accent); border-radius: 50%; animation: hb-spin .7s linear infinite;
}
@keyframes hb-spin { to { transform: rotate(360deg); } }

/* Formulier */
.hb-form { display: grid; gap: 12px; }
.hb-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.hb-form em { font-weight: 400; font-style: normal; color: var(--hb-muted); }
.hb-form input, .hb-form textarea {
	width: 100%; padding: 12px; font: inherit; font-size: 16px; /* 16px voorkomt inzoomen op iPhone */
	color: inherit; background: #fff; border: 1.5px solid var(--hb-line); border-radius: 8px;
}
.hb-form input:focus, .hb-form textarea:focus { outline: none; border-color: var(--hb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hb-accent) 18%, transparent); }
.hb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hb-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: .9rem; }

/* Knoppen */
.hb-btn {
	display: block; width: 100%; padding: 14px 16px; font: inherit; font-weight: 700; text-align: center; text-decoration: none;
	border-radius: 10px; border: 2px solid transparent; cursor: pointer;
}
.hb-btn-primary { background: var(--hb-accent); color: #fff; }
.hb-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.hb-btn-primary:disabled { opacity: .6; cursor: wait; }
.hb-btn-ghost { background: transparent; color: var(--hb-primary); border-color: var(--hb-line); margin-top: 8px; }

/* Bevestiging */
.hb-done { text-align: center; }
.hb-check { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--hb-accent); color: #fff; font-size: 2rem; }
.hb-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; margin: 16px 0 18px; padding: 14px; background: var(--hb-bg); border-radius: 10px; }
.hb-dl dt { color: var(--hb-muted); font-size: .9rem; }
.hb-dl dd { margin: 0; font-weight: 600; }

/* Losse pagina (annuleren) */
body.hb-standalone { margin: 0; min-height: 100vh; background: #f4f4f5; padding: 24px 0; }
.hb-standalone .hb-card form { margin: 16px 0 8px; }

@media (min-width: 560px) {
	.hb-booking { padding: 28px 28px 32px; }
	.hb-card { padding: 24px; }
	.hb-slots { grid-template-columns: repeat(6, 1fr); }
	.hb-brand { font-size: 2rem; }
}

/* ------------------------------------------------------------------
 * Info-blokjes: [hyfox_prijzen], [hyfox_openingstijden], [hyfox_contact]
 * Erven lettertype/kleur van het thema; alleen accenten uit de instellingen.
 * ------------------------------------------------------------------ */
.hb-pricelist { list-style: none; margin: 0; padding: 0; }
.hb-pricelist li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.hb-pricelist li:last-child { border-bottom: 0; }
.hb-p-name { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.hb-p-name small { font-weight: 400; opacity: .65; font-size: .85em; }
.hb-p-dots { flex: 1; border-bottom: 2px dotted rgba(0, 0, 0, .2); transform: translateY(-4px); min-width: 16px; }
.hb-p-meta { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.hb-p-meta small { opacity: .6; font-size: .8em; }
.hb-p-meta strong { color: var(--hb-accent, #b91c1c); font-size: 1.05em; }

.hb-hourlist { width: 100%; border-collapse: collapse; margin: 0; }
.hb-hourlist th, .hb-hourlist td { padding: 8px 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .1); text-align: left; font-weight: 400; background: none; }
.hb-hourlist td { text-align: right; font-variant-numeric: tabular-nums; }
.hb-hourlist tr.is-today th, .hb-hourlist tr.is-today td { font-weight: 700; color: var(--hb-accent, #b91c1c); }
.hb-closed { opacity: .55; }

.hb-contact p { margin: 0 0 10px; }
.hb-contact a { color: var(--hb-accent, #b91c1c); font-weight: 600; }
.hb-c-phone a { font-size: 1.3em; text-decoration: none; }
