/* ==========================================================================
   De Sint komt naar Puurs — shared design system (2026 refresh)
   Professional polish: Pfizer blue + white + gray. Loaded on every page.
   Existing class names / DOM are preserved so JS keeps working.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
	/* Brand */
	--pf-blue: #1842d9;
	--pf-blue-dark: #0026b0;
	--pf-blue-soft: #eef3ff;
	--pf-blue-light: #5cc1ff;
	--pf-blue-link: #029fff;

	/* Neutrals */
	--ink: #16205c;
	--body: #3a4256;
	--gray-50: #f7f8fb;
	--gray-100: #eef1f6;
	--gray-200: #e2e7f0;
	--gray-300: #cdd4e2;

	/* Surface + shape */
	--bg: #f4f6fb;
	--card: #ffffff;
	--radius: 10px;
	--radius-lg: 16px;

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(22, 32, 92, .08), 0 1px 2px rgba(22, 32, 92, .05);
	--shadow-md: 0 6px 18px rgba(22, 32, 92, .10), 0 2px 6px rgba(22, 32, 92, .06);
	--shadow-focus: 0 0 0 4px rgba(24, 66, 217, .15);

	--t-fast: .18s ease;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: none; }

body {
	background: var(--bg);
	color: var(--body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -.01em; }

a { color: var(--pf-blue); }
a:hover { color: var(--pf-blue-dark); }

hr { border-top: 1px solid var(--gray-200); opacity: 1; }
hr.small { margin-top: 0; margin-bottom: 0; }

p { color: var(--body); }

/* Page banner sits flush at top; main container gets breathing room */
.container.mt-4 { margin-top: 1.75rem !important; }

/* ---------- Hero (banner artwork + title block) ---------- */
/* Banner is 1920x1080 with a clear sky in the upper half. Below lg the text
   flows under the artwork on the sky colour (reads as one extended banner);
   from lg up it overlays the sky area — the artwork sits low, so the block
   is biased upward. */
.hero {
	position: relative;
	overflow: hidden;
	padding: 0;
	background: #e6f4ff; /* sampled from the banner sky */
	color: var(--ink);
}
.hero .hero-bg { display: block; width: 100%; height: auto; }
.hero-inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	padding: 1.6rem 1.25rem 1.9rem;
}

.hero .badge-edition {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	background: linear-gradient(90deg, #3f6bff, var(--pf-blue-dark));
	color: #fff;
	font-weight: 700;
	letter-spacing: .14em;
	font-size: .74rem;
	text-transform: uppercase;
	padding: .42rem 1.05rem;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(24, 66, 217, .35);
	margin-bottom: 1.1rem;
}
.hero h1 {
	color: var(--ink);
	font-weight: 900;
	letter-spacing: -.02em;
	font-size: clamp(2.1rem, 6vw, 3.4rem);
	line-height: 1.05;
	margin-bottom: .35rem;
}
.hero .hero-sub {
	color: var(--body);
	font-size: 1.06rem;
	font-weight: 300;
	margin-bottom: 1.6rem;
}
/* fact chips: date / time / location */
.hero .facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hero .facts li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: #fff;
	border: 1px solid rgba(22, 32, 92, .14);
	border-radius: 999px;
	padding: .45rem 1rem;
	font-size: .88rem;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}
.hero .facts li svg { flex: 0 0 auto; opacity: .9; color: var(--pf-blue); }

@media (min-width: 992px) {
	.hero .hero-inner {
		position: absolute;
		inset: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		padding: 7% 3rem 30%;
	}
}
@media (max-width: 575.98px) {
	.hero .facts li { font-size: .8rem; padding: .38rem .8rem; }
}

/* Praktische info pill — links to /practical_info/. Pinned top-right of the
   hero (over the clear sky corner). Not shown on practical_info itself. */
.info-pill {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	background: var(--pf-blue);
	color: #fff;
	border: 2px solid var(--pf-blue);
	border-radius: 999px;
	padding: .55rem 1.5rem;
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .03em;
	box-shadow: 0 4px 14px rgba(24, 66, 217, .35);
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
	            box-shadow var(--t-fast), transform var(--t-fast);
}
.info-pill:hover, .info-pill:focus {
	background: var(--pf-blue-dark);
	border-color: var(--pf-blue-dark);
	color: #fff;
	text-decoration: none;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}
.hero .info-pill {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
}
@media (max-width: 575.98px) {
	.hero .info-pill { top: 10px; right: 10px; padding: .45rem 1.2rem; font-size: .85rem; }
}

/* ---------- Form labels / hints ---------- */
.form-label-strong { font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.form-hint { font-size: .82rem; color: #8a93a6; }

/* ---------- Success celebration ---------- */
.success-check {
	width: 84px;
	height: 84px;
	margin: 0 auto 1.1rem;
	border-radius: 50%;
	background: var(--pf-blue-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}
.success-check svg { width: 44px; height: 44px; }

/* ---------- Practical-info section sub-cards ---------- */
.pi-item {
	background: var(--gray-50);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	padding: .95rem 1.15rem 1.05rem;
}
.pi-item + .pi-item { margin-top: .75rem; }
.pi-item .highligh-text { font-size: 1rem; }

/* ---------- Section card ---------- */
/* Wrap existing form/content blocks. Pure additive class. */
.s-card {
	background: var(--card);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 1.75rem;
}
@media (max-width: 575.98px) {
	.s-card { padding: 1.15rem; border-radius: 12px; }
}

.s-heading {
	color: var(--pf-blue);
	font-weight: 700;
}

/* Section sub-headings (practical_info) */
.highligh-text {
	color: var(--pf-blue);
	font-weight: 700;
	font-size: 1.1rem;
	border-left: 4px solid var(--pf-blue-light);
	padding-left: .6rem;
}

/* Framed images inside a card (maps, illustrations) */
.s-card img.img-fluid {
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	margin: .35rem 0;
}

/* ---------- Form controls ---------- */
.form-control {
	border-color: var(--gray-300);
	border-radius: 8px;
	transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus {
	border-color: var(--pf-blue);
	box-shadow: var(--shadow-focus);
}

/* The legacy inputs carry inline max-width:250px. Keep the narrow look on
   desktop but let them breathe full-width on phones (inline style wins, so
   use !important in a mobile-only media query — no per-input edits needed). */
@media (max-width: 575.98px) {
	.form-control[style*="max-width"] { max-width: 100% !important; }
}

/* ---------- Buttons (replaces per-page duplicates) ---------- */
.submit-btn,
.next-btn {
	border: 2px solid var(--pf-blue);
	border-radius: 999px;
	background: #fff;
	padding: 11px 38px;
	color: var(--pf-blue);
	font-weight: 700;
	letter-spacing: .02em;
	transition: background var(--t-fast), color var(--t-fast),
	            box-shadow var(--t-fast), transform var(--t-fast);
}
.submit-btn:hover, .submit-btn:focus,
.next-btn:hover, .next-btn:focus {
	background: var(--pf-blue);
	color: #fff;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}
/* filled variant for the primary CTA */
.submit-btn.btn-filled { background: var(--pf-blue); color: #fff; }
.submit-btn.btn-filled:hover, .submit-btn.btn-filled:focus {
	background: var(--pf-blue-dark);
	border-color: var(--pf-blue-dark);
	color: #fff;
}

.add-btn {
	background: var(--pf-blue);
	color: #fff;
	border: 2px solid var(--pf-blue);
	border-radius: 999px;
	padding: 7px 20px;
	font-weight: 700;
	font-size: .92rem;
	transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.add-btn:hover, .add-btn:focus {
	background: var(--pf-blue-dark);
	border-color: var(--pf-blue-dark);
	color: #fff;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.back-btn {
	border: 2px solid var(--gray-300);
	border-radius: 999px;
	background: #fff;
	padding: 11px 38px;
	color: #5b6478;
	font-weight: 700;
	transition: background var(--t-fast), color var(--t-fast),
	            box-shadow var(--t-fast), transform var(--t-fast);
}
.back-btn:hover, .back-btn:focus {
	background: #5b6478;
	color: #fff;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.faq-btn {
	border-radius: 999px;
	padding: 11px 38px;
	background: #3b3d92;
	border: 2px solid #3b3d92;
	font-weight: 700;
	transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.faq-btn:hover, .faq-btn:focus {
	background: #1e2859;
	border-color: #1e2859;
	color: #fff;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

/* ---------- Partner / kid rows ---------- */
.partner-row {
	padding: 1rem 1.1rem 1.1rem;
	background: var(--gray-50);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	position: relative;
	transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.partner-row + .partner-row { margin-top: .6rem; }

/* ---------- Step indicator (4 steps) ---------- */
/* Markup:
   <div class="steps">
     <div class="step done"><span class="dot">1</span><span class="label">Aanmelden</span></div>
     <div class="step active"><span class="dot">2</span><span class="label">Gegevens</span></div>
     <div class="step"><span class="dot">3</span><span class="label">Tijdstip</span></div>
     <div class="step"><span class="dot">4</span><span class="label">Bevestigen</span></div>
   </div>                                                          */
.steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	max-width: 640px;
	margin: 0 auto 1.5rem;
	padding: 0 .5rem;
}
.steps .step {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
/* connector line */
.steps .step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 17px;
	left: calc(50% + 19px);
	right: calc(-50% + 19px);
	height: 2px;
	background: var(--gray-200);
	z-index: 0;
}
.steps .step.done:not(:last-child)::after { background: var(--pf-blue); }
.steps .step .dot {
	position: relative;
	z-index: 1;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .9rem;
	font-weight: 700;
	background: #fff;
	color: #8a93a6;
	border: 2px solid var(--gray-300);
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.steps .step.done .dot {
	background: var(--pf-blue);
	border-color: var(--pf-blue);
	color: #fff;
}
.steps .step.done .dot::before { content: "\2713"; font-size: .95rem; }
.steps .step.done .dot { font-size: 0; }        /* hide the number, show check */
.steps .step.done .dot::before { font-size: 1rem; }
.steps .step.active .dot {
	background: #fff;
	border-color: var(--pf-blue);
	color: var(--pf-blue);
	box-shadow: var(--shadow-focus);
}
.steps .step .label {
	margin-top: .45rem;
	font-size: .78rem;
	color: #8a93a6;
	font-weight: 600;
	line-height: 1.1;
}
.steps .step.active .label { color: var(--pf-blue); }
.steps .step.done .label { color: #4a5468; }

/* Done state for the success page: all steps done */
.steps.all-done .step .dot { background: var(--pf-blue); border-color: var(--pf-blue); color: #fff; }
.steps.all-done .step:not(:last-child)::after { background: var(--pf-blue); }
.steps.all-done .step .label { color: #4a5468; }

@media (max-width: 575.98px) {
	/* icon-only on phones */
	.steps .step .label { display: none; }
	.steps { max-width: 260px; }
}

/* ---------- Gift selection cards ---------- */
.gifts-container { margin-top: .25rem; }

.gift-container.row { gap: 0; }

.gift-item-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: .6rem .5rem .7rem;
	margin-bottom: .75rem;
	background: #fff;
	border: 2px solid var(--gray-200);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.gift-item-container:hover {
	border-color: var(--pf-blue-light);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
	z-index: 2;
}
.gift-item-container .gift-item {
	max-width: 100%;
	height: 150px;
	width: auto;
	object-fit: contain;
	transition: transform var(--t-fast);
}
.gift-item-container:hover .gift-item { transform: scale(1.03); }

/* Phones: 2 cards per row — tighten padding and enlarge the product image */
@media (max-width: 575.98px) {
	.gift-item-container { padding: .35rem .3rem .45rem; }
	.gift-item-container .gift-item { height: 135px; }
	.gift-item-container > label { margin-top: .35rem; font-size: .76rem; }
}

/* gift name label under the image */
.gift-item-container > label {
	display: block;
	margin-top: .5rem;
	font-size: .8rem;
	line-height: 1.2;
	color: #4a5468;
	text-align: center;
	font-weight: 600;
	word-break: break-word;
}

/* selected state (JS toggles .is-selected; :has() covers the legacy .active path) */
.gift-item-container.is-selected,
.gift-item-container:has(.gift-item.active) {
	border-color: var(--pf-blue);
	box-shadow: 0 0 0 3px rgba(24, 66, 217, .14), var(--shadow-md);
	z-index: 3; /* lift the selected card (and its ::after check badge) above siblings */
}
.gift-item-container.is-selected > label,
.gift-item-container:has(.gift-item.active) > label { color: var(--pf-blue); }

/* checkmark badge */
.gift-item-container.is-selected::after,
.gift-item-container:has(.gift-item.active)::after {
	content: "\2713";
	position: absolute; /* parent col needs relative — see below */
	top: -10px;
	right: -6px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pf-blue);
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
}
/* the Bootstrap col wrapping each gift card is the positioning parent */
.gift-item-container { position: relative; }

/* legacy hook: JS toggles .active on the <img>. We now style the wrapping
   container via :has(.gift-item.active) (ring + check). Neutralise the old
   3px image border so it doesn't double up with the new container ring. */
.gift-item { border: 0; }
.gift-item.active { border: 0; }

/* ---------- Timeslot slots ---------- */
.slot {
	background: #eaf4ff;
	border-radius: var(--radius);
	padding: 10px 16px 12px;
	display: inline-block;
	cursor: pointer;
	margin: 8px;
	border: 2px solid var(--pf-blue-light);
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--t-fast), transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
	min-width: 150px;
}
.slot:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}
.slot.disabled {
	background: var(--gray-100);
	border: 2px solid var(--gray-300);
	cursor: not-allowed;
	opacity: .8;
}
.slot.disabled:hover { transform: none; box-shadow: var(--shadow-sm); }
.slot.active {
	background: var(--pf-blue-light);
	border: 2px solid var(--pf-blue-link);
	box-shadow: 0 0 0 3px rgba(24, 66, 217, .14);
}
.slot .time {
	display: block;
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ink);
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, .7);
	cursor: inherit;
}
.slot .remain { margin-bottom: 0; margin-top: 6px; cursor: inherit; font-size: .82rem; color: #4a5468; }
.slot .remain span {
	background: #38d400;
	font-weight: 700;
	color: #fff;
	padding: 1px 7px;
	border-radius: 6px;
}
.slot .remain span.warning { background: #ff7d1f; }
.slot.disabled .remain span { background: #aaa; }

#selectedTime, #slotRemain, #bookingTime { font-weight: 700; }
#selectedTime, #bookingTime { color: var(--pf-blue-link); }
#bookingTime.warning { color: #ff3d02; }
.booking-slot { font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--gray-200); }

/* ---------- Number stepper (timeslot) ---------- */
.num-reservation {
	border: 2px solid var(--pf-blue-light);
	border-radius: 999px;
	background: #fff;
	max-width: 240px;
	color: var(--pf-blue);
	font-weight: 700;
	box-shadow: var(--shadow-sm);
}
.num-reservation .minus,
.num-reservation .plus {
	float: right;
	margin-top: 2px;
	cursor: pointer;
	color: var(--pf-blue-light);
	transition: color var(--t-fast);
}
.num-reservation .minus { margin-right: 3px; }
.num-reservation .num {
	display: inline-block;
	width: 150px;
	text-align: center;
	padding: 10px 0;
	color: #666;
}
.num-reservation .num span { color: #333; }
.num-reservation .minus ion-icon, .num-reservation .plus ion-icon { font-size: 40px; }
.num-reservation .minus:hover, .num-reservation .plus:hover { color: var(--pf-blue-link); }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius); }
.alert-danger {
	border-color: #f3c2bd;
	background: #fdeeec;
	color: #a23a2f;
}

/* ---------- Footer ---------- */
footer .text-muted, footer small { color: #98a0b3 !important; }

/* ---------- Animation utility ---------- */
.fade-in { animation: sFadeIn .32s ease-out both; }
@keyframes sFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	.fade-in { animation: none; }
}

/* ==========================================================================
   Legacy: Caret / Bullet / Arrow breadcrumbs (kept from original file)
   ========================================================================== */
.breadcrumb-caret .breadcrumb-item+.breadcrumb-item::before { content: '\f0da'; font-family: 'FontAwesome'; }
.breadcrumb-bullet .breadcrumb-item+.breadcrumb-item::before { content: '•'; }
.breadcrumb-arrow .breadcrumb-item+.breadcrumb-item::before { content: ''; }
.breadcrumb-arrow { height: 40px; line-height: 40px; }
.breadcrumb-arrow .breadcrumb-item:first-child a { border-radius: 4px 0 0 4px; }
.breadcrumb-arrow .breadcrumb-item,
.breadcrumb-arrow .breadcrumb-item a,
.breadcrumb-arrow .breadcrumb-item span { display: inline-block; vertical-align: top; }
.breadcrumb-arrow .breadcrumb-item:not(:first-child) { margin-left: -1px; }
.breadcrumb-arrow .breadcrumb-item+.breadcrumb-item:before { padding: 0; content: ""; }
.breadcrumb-arrow .breadcrumb-item a,
.breadcrumb-arrow .breadcrumb-item.active { height: 40px; padding: 0 10px 0 25px; line-height: 40px; }
.breadcrumb-arrow .breadcrumb-item a { position: relative; color: #fff; text-decoration: none; background-color: #5cc1ff; border: 1px solid #5cc1ff; }
.breadcrumb-arrow .breadcrumb-item a:after,
.breadcrumb-arrow .breadcrumb-item a:before { position: absolute; top: -1px; width: 0; height: 0; content: ''; border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.breadcrumb-arrow .breadcrumb-item a:before { right: -10px; z-index: 3; border-left-color: #5cc1ff; border-left-style: solid; border-left-width: 11px; }
.breadcrumb-arrow .breadcrumb-item a:after { right: -11px; z-index: 2; border-left: 11px solid #029fff; }
.breadcrumb-arrow .breadcrumb-item a:focus,
.breadcrumb-arrow li a:hover { background-color: #4fc1e9; border: 1px solid #4fc1e9; }
.breadcrumb-arrow .breadcrumb-item a:focus:before,
.breadcrumb-arrow li a:hover:before { border-left-color: #4fc1e9; }
.breadcrumb-arrow li.active:after,
.breadcrumb-arrow li.active:before { border-left-color: #029fff; }
