/* ==========================================================================
   DP World Sinterklaasfeest — shared design system
   Official DP World brand assets (received 01/09/2026): Pilat fonts
   (self-hosted in /fonts), Primary colour DP World Blue #009FDF, Secondary
   colour DP World Yellow #FFB700, banner + logos in /images.
   Class names mirror the Pfizer platform (s-card, steps, partner-row, …).
   ========================================================================== */

/* ---------- Brand fonts (self-hosted Pilat) ---------- */
@font-face {
	font-family: 'Pilat';
	src: url('/fonts/pilat-light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Pilat';
	src: url('/fonts/pilat-demi.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Pilat Wide';
	src: url('/fonts/pilat-wide-book.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Pilat Wide';
	src: url('/fonts/pilat-wide-heavy.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
	/* Brand (official DP World palette) */
	--brand: #009FDF;       /* Primary — DP World Blue */
	--brand-dark: #0086BE;  /* hover / pressed */
	--brand-soft: #E9F7FD;  /* light blue tint (soft blocks) */
	--brand-light: #9CD9F3; /* mid tint (borders) */
	--brand-link: #0072A8;  /* darker blue — readable text on white */

	/* Secondary — DP World Yellow */
	--gold: #FFB700;
	--gold-ink: #8F6400;    /* readable yellow-family text on white */
	--gold-soft: #FFF6DC;

	/* Neutrals */
	--ink: #101a3d;
	--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(16, 26, 61, .08), 0 1px 2px rgba(16, 26, 61, .05);
	--shadow-md: 0 6px 18px rgba(16, 26, 61, .10), 0 2px 6px rgba(16, 26, 61, .06);
	--shadow-focus: 0 0 0 4px rgba(0, 159, 223, .18);

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

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

body {
	background: var(--bg);
	color: var(--body);
	font-family: 'Pilat Wide', 'Pilat', Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Headings + UI chrome use regular Pilat (Demi) — Wide is for body text */
h1, h2, h3, h4, h5, h6 {
	color: var(--ink);
	font-family: 'Pilat', 'Pilat Wide', Arial, Helvetica, sans-serif;
	font-weight: 600;
}

a { color: var(--brand-link); }
a:hover { color: var(--brand); }

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; }

/* ---------- Section card ---------- */
.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(--brand);
	font-weight: 600;
}

/* Secondary block on the confirmation page ("Stap 2 van 2") */
.s-card-secondary {
	border-top: 4px solid var(--gold);
}
/* gold-ink: plain #FFB700 text on white is unreadable */
.s-card-secondary .s-heading { color: var(--gold-ink); }

/* ---------- 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(--brand);
	box-shadow: var(--shadow-focus);
}

/* The inputs carry inline max-width:250px. Keep the narrow look on desktop
   but let them breathe full-width on phones. */
@media (max-width: 575.98px) {
	.form-control[style*="max-width"] { max-width: 100% !important; }
}

/* Small grey helper text under a field */
.field-help {
	font-size: .85rem;
	color: #6b7488;
	margin-top: .35rem;
	line-height: 1.4;
}

/* ---------- Buttons ---------- */
.submit-btn, .next-btn, .add-btn, .back-btn, .webshop-btn, .copy-btn, .btn {
	font-family: 'Pilat', 'Pilat Wide', Arial, Helvetica, sans-serif;
}

.submit-btn,
.next-btn {
	border: 2px solid var(--brand);
	border-radius: 999px;
	background: #fff;
	padding: 11px 38px;
	color: var(--brand);
	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(--brand);
	color: #fff;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.add-btn {
	background: var(--brand);
	color: #fff;
	border: 2px solid var(--brand);
	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(--brand-dark);
	border-color: var(--brand-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);
}

/* Big gold CTA to the De Kinderplaneet webshop (PAGE 3) */
/* Big yellow CTA to the De Kinderplaneet webshop (PAGE 3).
   Dark ink text on yellow — white on #FFB700 has no contrast. */
.webshop-btn {
	display: inline-block;
	background: var(--gold);
	border: 2px solid var(--gold);
	border-radius: 999px;
	color: var(--ink);
	padding: 14px 46px;
	font-weight: 600;
	letter-spacing: .02em;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.webshop-btn:hover, .webshop-btn:focus {
	background: #E5A400;
	border-color: #E5A400;
	color: var(--ink);
	text-decoration: none;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

/* ---------- Child 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; }

/* Bootstrap 4.0.0 lacks the position utilities — the row's × button needs
   absolute positioning (partner-row above is the positioning parent). */
.position-absolute { position: absolute !important; }

/* ---------- Step indicator (3 steps) ---------- */
/* Markup:
   <div class="steps">
     <div class="step done"><span class="dot">1</span><span class="label">Gegevens</span></div>
     <div class="step active"><span class="dot">2</span><span class="label">Nazien</span></div>
     <div class="step"><span class="dot">3</span><span class="label">Bevestigd</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(--brand); }
.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(--brand);
	border-color: var(--brand);
	color: #fff;
}
.steps .step.done .dot::before { content: "\2713"; font-size: 1rem; }
.steps .step.done .dot { font-size: 0; }        /* hide the number, show check */
.steps .step.active .dot {
	background: #fff;
	border-color: var(--brand);
	color: var(--brand);
	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(--brand); }
.steps .step.done .label { color: #4a5468; }

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

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

/* ---------- Review page definition list ---------- */
.review-list {
	margin: 0;
	padding: 0;
}
.review-list dt {
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #8a93a6;
	font-weight: 700;
	margin-top: .8rem;
}
.review-list dd {
	margin: 0;
	color: var(--ink);
	font-weight: 600;
}
.review-list dd.plain { font-weight: 400; color: var(--body); }

/* ---------- Copy blocks (PAGE 3 → De Kinderplaneet handover) ---------- */
.copy-block {
	background: var(--gold-soft);
	border: 1px solid #F2DE9C;
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	margin-bottom: 1rem;
}
.copy-block .copy-title {
	color: var(--brand);
	font-weight: 700;
	margin-bottom: .6rem;
}
/* Registrant data gets its own navy block so it can't be mixed up
   with the per-child rows below it. */
.copy-block-employee {
	background: var(--brand-soft);
	border-color: #BEE4F8;
}
.copy-block-employee .copy-value {
	border-bottom-color: #A8DAF2;
}
.copy-row {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .3rem 0;
	flex-wrap: wrap;
}
.copy-row .copy-label {
	flex: 0 0 110px;
	font-size: .85rem;
	color: #6b7488;
	font-weight: 600;
}
.copy-row .copy-value {
	flex: 1 1 160px;
	min-width: 0;
	font-weight: 600;
	color: var(--ink);
	border-bottom: 1px dashed #E8CC72;
	padding: 2px 0;
	word-break: break-word;
}
.copy-btn {
	flex: 0 0 auto;
	border: 1px solid var(--brand-light);
	background: #fff;
	color: var(--brand-link);
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	padding: 3px 14px;
	cursor: pointer;
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.copy-btn:hover, .copy-btn:focus {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}
.copy-btn.done {
	background: #38a100;
	border-color: #38a100;
	color: #fff;
}

/* ---------- Success check (PAGE 3) ---------- */
/* Circle + SVG check above the "Hoera!" line, same pattern as the
   Pfizer Afterwork success page (colours follow this site's success green). */
.success-check {
	width: 84px;
	height: 84px;
	margin: 0 auto 1.1rem;
	border-radius: 50%;
	background: #eaf6e6;
	display: flex;
	align-items: center;
	justify-content: center;
}
.success-check svg { width: 44px; height: 44px; }

/* ---------- Reservation number highlight ---------- */
.resnum {
	font-size: 1.5em;
	font-weight: bold;
	color: var(--brand-link);
	text-decoration: underline;
}

/* ---------- 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; }
}
