/* Fix mijn Boete — formulier, teller en resultaatpagina.
   Zelfvoorzienend qua kleuren zodat het ook los van het thema klopt. */

.fmb-form-wrap,
.fmb-result,
.fmb-counter,
.fmb-progress,
.fmb-letters {
	--fmb-blue: #047CAC;
	--fmb-navy: #0E3A57;
	--fmb-amber: #F2A93B;
	--fmb-ink: #1F2A30;
	--fmb-soft: #EEF4F7;
	--fmb-line: #d8e3ea;
	--fmb-muted: #5b6b73;
}

/* ---- Voortgangsbalk -------------------------------------------------- */
.fmb-progress { margin: 24px 0 6px; }
.fmb-progress-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
	gap: 12px;
}
.fmb-progress-count { font-size: 1.02rem; color: var(--fmb-navy); }
.fmb-progress-count strong {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.5rem;
	color: var(--fmb-blue);
}
.fmb-progress-goal { font-size: .9rem; color: var(--fmb-muted); font-weight: 700; white-space: nowrap; }
.fmb-progress-track {
	height: 18px;
	background: #d7e6ee;
	border-radius: 999px;
	overflow: hidden;
}
.fmb-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #047CAC, #1aa0d6);
	border-radius: 999px;
	transition: width .6s ease;
}
.fmb-progress-foot { margin-top: 8px; font-size: .9rem; color: var(--fmb-muted); }

/* ---- Doe-mee CTA op de bevestigingspagina --------------------------- */
.fmb-doemee {
	margin: 24px auto 0;
	max-width: 540px;
	background: var(--fmb-soft);
	border: 1px solid var(--fmb-line);
	border-radius: 14px;
	padding: 22px 24px;
}
.fmb-doemee h2 {
	font-family: 'Newsreader', Georgia, serif;
	color: var(--fmb-navy);
	margin: 0 0 8px;
	font-size: 1.3rem;
}
.fmb-doemee p { color: var(--fmb-ink); margin: 0 0 12px; }
.fmb-link { color: var(--fmb-blue); font-weight: 600; text-decoration: none; }
.fmb-link:hover { text-decoration: underline; }

/* ---- Brievenpagina (/mijn-klacht/) ---------------------------------- */
.fmb-gate {
	background: #fff8ec;
	border: 1.5px solid #f0d49a;
	border-radius: 14px;
	padding: 20px 22px;
	margin: 4px 0 8px;
}
.fmb-gate-text { margin: 0 0 12px; color: var(--fmb-ink); line-height: 1.55; }
.fmb-gate-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-weight: 700;
	color: var(--fmb-navy);
	cursor: pointer;
}
.fmb-gate-check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--fmb-blue); flex: 0 0 auto; }

.fmb-tabs {
	display: flex;
	gap: 4px;
	margin: 18px 0 0;
	border-bottom: 2px solid var(--fmb-line);
	flex-wrap: wrap;
}
.fmb-tab {
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	padding: 12px 18px;
	font-family: inherit;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--fmb-muted);
	cursor: pointer;
}
.fmb-tab:hover { color: var(--fmb-navy); }
.fmb-tab.is-active { color: var(--fmb-navy); border-bottom-color: var(--fmb-blue); }
.fmb-tabpanel {
	background: #fff;
	border: 1px solid var(--fmb-line);
	border-top: 0;
	border-radius: 0 0 14px 14px;
	padding: 24px 26px;
}
.fmb-letter-card {
	background: #fff;
	border: 1px solid var(--fmb-line);
	border-radius: 16px;
	padding: 24px 26px;
	margin: 18px 0;
}
.fmb-letter-card h2 {
	font-family: 'Newsreader', Georgia, serif;
	color: var(--fmb-navy);
	margin: 0 0 10px;
	font-size: 1.4rem;
}
.fmb-letter-h3 { font-family: 'Newsreader', Georgia, serif; color: var(--fmb-navy); font-size: 1.1rem; margin: 22px 0 6px; }
.fmb-choice { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.fmb-btn-alt { background: #fff; color: var(--fmb-blue) !important; border: 1.5px solid var(--fmb-blue); }
.fmb-btn-alt:hover { background: var(--fmb-soft); }
.fmb-choice-hint { font-size: .92rem; color: var(--fmb-muted); margin: 6px 0 0; }
.fmb-steps { margin: 10px 0 18px; padding-left: 22px; }
.fmb-steps li { margin: 7px 0; line-height: 1.5; }
.fmb-copybtn {
	display: inline-block;
	margin: 8px 0;
	background: #fff;
	border: 1.5px solid var(--fmb-blue);
	color: var(--fmb-blue);
	border-radius: 9px;
	padding: 9px 16px;
	font-weight: 700;
	font-size: .92rem;
	cursor: pointer;
}
.fmb-copybtn:hover { background: var(--fmb-soft); }
.fmb-letter {
	white-space: pre-wrap;
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1rem;
	line-height: 1.6;
	background: #f6f9fb;
	border: 1px solid var(--fmb-line);
	border-radius: 10px;
	padding: 18px 20px;
	margin: 6px 0 0;
	color: var(--fmb-ink);
	overflow-x: auto;
}
.fmb-embed {
	margin-top: 16px;
	border: 1px solid var(--fmb-line);
	border-radius: 10px;
	overflow: hidden;
}
.fmb-embed iframe { display: block; width: 100%; height: 1000px; border: 0; }

/* ---- Teller ---------------------------------------------------------- */
.fmb-counter-num {
	color: var(--fmb-blue);
	font-weight: 800;
}

/* ---- Formulier ------------------------------------------------------- */
.fmb-form-wrap {
	background: #fff;
	border: 1px solid var(--fmb-line);
	border-radius: 18px;
	box-shadow: 0 18px 50px -28px rgba(14, 58, 87, .45);
	padding: clamp(22px, 4vw, 38px);
	max-width: 620px;
	margin: 0 auto;
}

.fmb-form-head {
	margin-bottom: 20px;
}
.fmb-form-title {
	font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
	line-height: 1.15;
	color: var(--fmb-navy);
	margin: 0 0 6px;
}
.fmb-form-sub {
	margin: 0;
	color: var(--fmb-muted);
	font-size: 1rem;
}
.fmb-form-sub .fmb-live-count {
	color: var(--fmb-blue);
}

.fmb-row {
	margin-bottom: 14px;
}
.fmb-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 520px) {
	.fmb-row-2 { grid-template-columns: 1fr; }
}

.fmb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fmb-label {
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--fmb-navy);
	text-transform: uppercase;
}
.fmb-req { color: #d4332b; font-weight: 800; }
.fmb-legend { margin: 8px 0 0; font-size: .82rem; color: var(--fmb-muted); }
.fmb-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 14px;
	font-size: 1.05rem;
	border: 1.5px solid var(--fmb-line);
	border-radius: 11px;
	background: #fbfdfe;
	color: var(--fmb-ink);
	transition: border-color .15s, box-shadow .15s;
}
.fmb-field input:focus {
	outline: none;
	border-color: var(--fmb-blue);
	box-shadow: 0 0 0 4px rgba(4, 124, 172, .14);
	background: #fff;
}
.fmb-field input.fmb-invalid {
	border-color: #d4332b;
	box-shadow: 0 0 0 4px rgba(212, 51, 43, .12);
}

/* ---- Boetes (uitklapbaar) ------------------------------------------- */
.fmb-fines {
	margin: 6px 0 18px;
	border: 1.5px dashed var(--fmb-line);
	border-radius: 12px;
	background: var(--fmb-soft);
	overflow: hidden;
}
.fmb-fines-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	color: var(--fmb-navy);
	text-align: left;
}
.fmb-check {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border: 2px solid var(--fmb-blue);
	border-radius: 6px;
	background: #fff;
	position: relative;
}
.fmb-fines-toggle[aria-expanded="true"] .fmb-check {
	background: var(--fmb-blue);
}
.fmb-fines-toggle[aria-expanded="true"] .fmb-check::after {
	content: "";
	position: absolute;
	left: 6px; top: 2px;
	width: 6px; height: 11px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
.fmb-fines-body {
	padding: 4px 16px 16px;
}
.fmb-fines-help {
	margin: 0 0 12px;
	font-size: .92rem;
	color: var(--fmb-muted);
}
.fmb-fine-row {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}
.fmb-fine-row input {
	flex: 1;
	box-sizing: border-box;
	padding: 11px 13px;
	font-size: 1rem;
	border: 1.5px solid var(--fmb-line);
	border-radius: 10px;
	background: #fff;
}
.fmb-fine-remove {
	flex: 0 0 auto;
	border: 1.5px solid var(--fmb-line);
	background: #fff;
	border-radius: 10px;
	width: 44px;
	cursor: pointer;
	font-size: 1.2rem;
	color: var(--fmb-muted);
	line-height: 1;
}
.fmb-add-fine {
	background: transparent;
	border: 0;
	color: var(--fmb-blue);
	font-weight: 700;
	cursor: pointer;
	padding: 4px 0;
	font-size: .95rem;
}

/* ---- Handtekening-pad ------------------------------------------------ */
.fmb-sign { margin: 10px 0 16px; }
.fmb-optional {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--fmb-muted);
}
.fmb-sign-help {
	margin: 6px 0 8px;
	font-size: .9rem;
	color: var(--fmb-muted);
	line-height: 1.45;
}
.fmb-sign-pad { position: relative; margin-top: 4px; }
.fmb-sign-canvas {
	display: block;
	width: 100%;
	height: 170px;
	background: #fbfdfe;
	border: 1.5px dashed var(--fmb-blue);
	border-radius: 12px;
	touch-action: none;
	cursor: crosshair;
}
/* "teken hier"-lijn met kruisje, los van de canvas (komt niet in de PNG) */
.fmb-sign-baseline {
	position: absolute;
	left: 22px; right: 22px;
	bottom: 30px;
	border-bottom: 1.5px solid #c4d3dc;
	pointer-events: none;
}
.fmb-sign-baseline::before {
	content: "\00D7";
	position: absolute;
	left: 0; bottom: 1px;
	color: #9fb1ba;
	font-size: 18px;
	line-height: 1;
}
.fmb-sign-hint {
	position: absolute;
	left: 0; right: 0;
	top: 42%;
	transform: translateY(-50%);
	text-align: center;
	color: #9fb1ba;
	font-size: .92rem;
	pointer-events: none;
}
.fmb-sign-clear {
	position: absolute;
	right: 10px; top: 10px;
	background: #fff;
	border: 1.5px solid var(--fmb-line);
	border-radius: 8px;
	padding: 5px 12px;
	font-size: .85rem;
	color: var(--fmb-muted);
	cursor: pointer;
}

/* ---- Account-checkbox ------------------------------------------------ */
.fmb-account {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 14px;
	font-size: .96rem;
	color: var(--fmb-ink);
	line-height: 1.45;
}
.fmb-account input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	accent-color: var(--fmb-blue);
}

/* ---- Consent --------------------------------------------------------- */
.fmb-consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 6px 0 20px;
	font-size: .96rem;
	color: var(--fmb-ink);
	line-height: 1.45;
}
.fmb-consent input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	accent-color: var(--fmb-blue);
}
.fmb-consent a { color: var(--fmb-blue); }

/* ---- Honeypot -------------------------------------------------------- */
.fmb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Turnstile ------------------------------------------------------- */
.fmb-turnstile { margin: 0 0 16px; }

/* ---- Submit ---------------------------------------------------------- */
.fmb-submit {
	width: 100%;
	padding: 16px 22px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	background: var(--fmb-blue);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: transform .08s, background .15s, box-shadow .15s;
	box-shadow: 0 12px 24px -12px rgba(4, 124, 172, .7);
}
.fmb-submit:hover { background: #0369a0; }
.fmb-submit:active { transform: translateY(1px); }
.fmb-submit:disabled { opacity: .6; cursor: progress; }

.fmb-form-foot {
	margin: 12px 0 0;
	font-size: .85rem;
	color: var(--fmb-muted);
	text-align: center;
}

/* ---- Statusbericht --------------------------------------------------- */
.fmb-message {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 11px;
	font-size: 1rem;
	line-height: 1.45;
}
.fmb-message.is-success {
	background: #e8f6ee;
	border: 1.5px solid #b9e3c9;
	color: #1d6b3c;
}
.fmb-message.is-error {
	background: #fdecea;
	border: 1.5px solid #f5c2bd;
	color: #b3261e;
}

.fmb-success-state {
	text-align: center;
	padding: 8px 0;
}
.fmb-success-state .fmb-success-mark {
	width: 64px; height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #047CAC;
	position: relative;
}
.fmb-success-state .fmb-success-mark::after {
	content: "";
	position: absolute;
	left: 23px; top: 16px;
	width: 12px; height: 24px;
	border: solid #fff;
	border-width: 0 5px 5px 0;
	transform: rotate(45deg);
}
.fmb-success-state h3 {
	font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
	color: var(--fmb-navy);
	margin: 0 0 8px;
}

/* ---- Resultaatpagina ------------------------------------------------- */
.fmb-result {
	max-width: 640px;
	margin: 40px auto;
	text-align: center;
}
.fmb-result-title {
	font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
	color: var(--fmb-navy);
}
.fmb-result-msg {
	font-size: 1.1rem;
	color: var(--fmb-ink);
	line-height: 1.6;
}
.fmb-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 13px 24px;
	background: var(--fmb-blue, #047CAC);
	color: #fff !important;
	border-radius: 11px;
	text-decoration: none;
	font-weight: 700;
}

/* ---- Aanmelden (login) ----------------------------------------------- */
.fmb-login {
	--fmb-blue: #047CAC;
	--fmb-navy: #0E3A57;
	--fmb-line: #d8e3ea;
	--fmb-ink: #1F2A30;
	--fmb-muted: #5b6b73;
	max-width: 420px;
	margin: 10px auto 40px;
	background: #fff;
	border: 1px solid var(--fmb-line);
	border-radius: 16px;
	padding: 30px 28px;
	box-shadow: 0 18px 50px -30px rgba(14, 58, 87, .45);
}
.fmb-login-title {
	font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
	color: var(--fmb-navy);
	margin: 0 0 16px;
}
.fmb-login label { display: block; font-weight: 700; color: var(--fmb-navy); margin-bottom: 6px; font-size: .9rem; }
.fmb-login input[type="text"],
.fmb-login input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	font-size: 1.05rem;
	border: 1.5px solid var(--fmb-line);
	border-radius: 10px;
	margin-bottom: 14px;
	background: #fbfdfe;
}
.fmb-login .login-remember { font-weight: 400; }
.fmb-login .login-remember label { display: inline; font-weight: 400; color: var(--fmb-ink); }
.fmb-login input[type="submit"] {
	width: 100%;
	padding: 14px 22px;
	font-size: 1.1rem;
	font-weight: 800;
	color: #fff;
	background: var(--fmb-blue);
	border: 0;
	border-radius: 11px;
	cursor: pointer;
	margin-top: 6px;
}
.fmb-login input[type="submit"]:hover { background: #0369a0; }
.fmb-login-alt { font-size: .92rem; margin: 12px 0 0; color: var(--fmb-muted); }
.fmb-login-alt a { color: var(--fmb-blue); }
