/* RP Core, Form Updator: wachtmelding, bedankblok, veldcontrole en foto's. */
/* Elementor zet de globale kleuren op body.elementor-kit-…, dus hier uitlezen en niet op :root. */
.rpfu-overlay, .rpfu-thanks, .rpfu-notice, .rpfu-files, .rpfu-hint, .elementor-form {
	--rpfu-accent: var(--rpfu-color, var(--e-global-color-primary, #1f6feb));
}
:root {
	--rpfu-text: #1d2327;
	--rpfu-muted: #5f6b7a;
	--rpfu-line: #e3e7ed;
	--rpfu-ok: #12805c;
	--rpfu-err: #c62828;
	--rpfu-warn: #a15c00;
	--rpfu-radius: 14px;
}

/* ---------- Wachtmelding ---------- */
.rpfu-host { position: relative; }
.rpfu-overlay {
		/* Staat in de plaats van het formulier: eigen hoogte, doorzichtig, geen kleurverschil. */
	position: relative; width: 100%;
	display: flex; align-items: center; justify-content: center;
	padding: 28px 0; box-sizing: border-box;
	background: transparent; color: var(--rpfu-text);
	font-family: var(--rpfu-font, inherit);
	border-radius: inherit;
	opacity: 0; transition: opacity .3s ease;
}
.rpfu-overlay.is-in { opacity: 1; }
.rpfu-card {
	width: 100%; max-width: 360px; box-sizing: border-box;
	text-align: left; font-size: 15px; line-height: 1.45;
	transform: translateY(10px); transition: transform .4s ease;
}
.rpfu-overlay.is-in .rpfu-card { transform: none; }
.rpfu-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin: 0 0 26px; }
.rpfu-icon { flex: none; width: 64px; height: 64px; position: relative; }
.rpfu-icon svg { width: 64px; height: 64px; display: block; }
.rpfu-ring-bg { stroke: var(--rpfu-line); }
.rpfu-ring { stroke: var(--rpfu-accent); stroke-linecap: round; transform-origin: 50% 50%; animation: rpfu-spin 1s linear infinite; }
.rpfu-check { stroke: #fff; stroke-dasharray: 30; stroke-dashoffset: 30; }
.rpfu-disc { fill: var(--rpfu-accent); transform-origin: 50% 50%; transform: scale(0); }
.is-done .rpfu-ring, .is-done .rpfu-ring-bg { opacity: 0; }
.is-done .rpfu-disc { transform: scale(1); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.is-done .rpfu-check { stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease .2s; }
.rpfu-title { margin: 0; font-family: var(--rpfu-font-head, inherit); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--rpfu-text); max-width: 300px; }

.rpfu-steps { list-style: none; margin: 0 0 22px; padding: 0; }
.rpfu-steps li { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0; color: var(--rpfu-muted); transition: color .2s; }
.rpfu-steps li::before { content: none; }
.rpfu-steps li[hidden] { display: none; }
.rpfu-dot {
	flex: none; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
	border: 2px solid var(--rpfu-line); background: var(--rpfu-bg, #fff); position: relative; transition: all .25s;
}
.rpfu-steps li.is-active { color: var(--rpfu-text); font-weight: 600; }
.rpfu-steps li.is-active .rpfu-dot { border-color: var(--rpfu-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rpfu-accent) 18%, transparent); animation: rpfu-pulse 1.4s ease-in-out infinite; }
.rpfu-steps li.is-done { color: var(--rpfu-text); }
.rpfu-steps li.is-done .rpfu-dot { background: var(--rpfu-accent); border-color: var(--rpfu-accent); }
.rpfu-steps li.is-done .rpfu-dot::after {
	content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.rpfu-pct { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--rpfu-accent); }

.rpfu-bar { height: 8px; border-radius: 99px; background: var(--rpfu-line); overflow: hidden; }
.rpfu-bar span {
	display: block; height: 100%; width: 0; border-radius: inherit;
	background: var(--rpfu-accent);
	background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
	background-size: 200% 100%; animation: rpfu-shine 1.6s linear infinite;
	transition: width .3s ease;
}
.is-done .rpfu-bar span { animation: none; background-image: none; }
.rpfu-display-steps .rpfu-bar, .rpfu-display-bar .rpfu-steps { display: none; }
.rpfu-display-bar .rpfu-head { margin-bottom: 14px; }
.rpfu-num { margin: 8px 0 0; text-align: right; font-size: 13px; font-weight: 600; color: var(--rpfu-muted); font-variant-numeric: tabular-nums; }
.rpfu-display-steps .rpfu-num { display: none; }
.rpfu-note { margin: 14px 0 0; font-size: 13px; color: var(--rpfu-muted); min-height: 0; text-align: center; }
.rpfu-note:empty { display: none; }

/* ---------- Meldingen in het formulier ---------- */
.rpfu-notice {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin: 0 0 14px; padding: 10px 14px; border-radius: 10px;
	background: color-mix(in srgb, var(--rpfu-accent) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--rpfu-accent) 25%, #fff);
	color: var(--rpfu-text); font-size: 14px; width: 100%; box-sizing: border-box;
}
.rpfu-notice--error { background: #fdecec; border-color: #f5c2c2; }
.rpfu-notice button, .rpfu-link {
	background: none !important; border: 0 !important; padding: 0 !important; margin: 0;
	color: var(--rpfu-accent) !important; text-decoration: underline; cursor: pointer;
	font: inherit; font-weight: 600; box-shadow: none !important; min-height: 0; line-height: inherit;
}

/* ---------- Veldcontrole ---------- */
.rpfu-hint { display: block; width: 100%; margin-top: 5px; font-size: 13px; line-height: 1.35; }
.rpfu-hint--error { color: var(--rpfu-err); }
.rpfu-hint--warn { color: var(--rpfu-warn); }
.rpfu-hint--suggest { color: var(--rpfu-text); }
.elementor-field-group.rpfu-err .elementor-field { border-color: var(--rpfu-err) !important; }
.elementor-field-group.rpfu-ok .elementor-field:not(select):not(textarea) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312805c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px;
}

/* ---------- Foto's ---------- */
.rpfu-files { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.rpfu-files li {
	display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 8px;
	border: 1px solid var(--rpfu-line); border-radius: 10px; background: #fff;
	font-size: 13px; color: var(--rpfu-text);
}
.rpfu-files li::before { content: none; }
.rpfu-thumb { flex: none; width: 44px; height: 44px; border-radius: 7px; background: #f1f3f6 center/cover no-repeat; }
.rpfu-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpfu-fsize { flex: none; color: var(--rpfu-muted); font-variant-numeric: tabular-nums; }
.rpfu-fsize b { color: var(--rpfu-ok); font-weight: 600; }
.rpfu-busy .rpfu-fsize::before {
	content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px;
	border: 2px solid var(--rpfu-line); border-top-color: var(--rpfu-accent); border-radius: 50%; animation: rpfu-spin .8s linear infinite;
}
.rpfu-remove {
	flex: none; width: 28px; height: 28px; min-height: 0; padding: 0 !important; border-radius: 50% !important;
	border: 1px solid var(--rpfu-line) !important; background: #fff !important; color: var(--rpfu-muted) !important;
	font-size: 16px; line-height: 1; cursor: pointer; box-shadow: none !important;
}
.rpfu-remove:hover { color: var(--rpfu-err) !important; border-color: var(--rpfu-err) !important; }

/* ---------- Bedankblok ---------- */
.rpfu-thanks {
	/* Neemt de plek van het formulier in, zelfde achtergrond, geen losse kaart. */
	box-sizing: border-box; width: 100%; padding: 28px 20px; outline: none;
	display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
	background: transparent; color: var(--rpfu-text); border-radius: inherit;
	font-family: var(--rpfu-font, inherit);
	animation: rpfu-rise .45s ease both; font-size: 15px; line-height: 1.5;
}
.rpfu-thanks > * { width: 100%; max-width: 400px; }
.rpfu-thanks-icon {
	width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
	background: var(--rpfu-accent); display: flex; align-items: center; justify-content: center;
	animation: rpfu-pop .5s cubic-bezier(.2, 1.4, .4, 1) .1s both;
}
.rpfu-thanks-icon svg { width: 32px; height: 32px; }
.rpfu-thanks h3 { margin: 0 0 6px; font-family: var(--rpfu-font-head, inherit); font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--rpfu-text); letter-spacing: normal; text-transform: none; }
.rpfu-thanks p { margin: 0 0 14px; color: var(--rpfu-muted); }
.rpfu-thanks h4 { margin: 22px 0 12px; font-family: var(--rpfu-font-head, inherit); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--rpfu-text); letter-spacing: normal; text-transform: none; }
.rpfu-thanks ol { list-style: none; margin: 0; padding: 0; counter-reset: rpfu; text-align: left; }
.rpfu-thanks ol li { counter-increment: rpfu; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; padding: 0; }
.rpfu-thanks ol li::before {
	content: counter(rpfu); flex: none; width: 26px; height: 26px; border-radius: 50%;
	background: color-mix(in srgb, var(--rpfu-accent) 12%, #fff); color: var(--rpfu-accent);
	font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.rpfu-contact { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rpfu-line); }
.rpfu-contact p { margin: 0 0 10px; color: var(--rpfu-text); font-weight: 600; }
.rpfu-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rpfu-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
	background: var(--rpfu-accent); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 14px;
}
.rpfu-btn--wa { background: #1fa855; }
.rpfu-btn svg { width: 16px; height: 16px; fill: currentColor; }

@keyframes rpfu-spin { to { transform: rotate(360deg); } }
@keyframes rpfu-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--rpfu-accent) 6%, transparent); } }
@keyframes rpfu-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes rpfu-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rpfu-pop { from { transform: scale(0); } to { transform: scale(1); } }

@media (max-width: 480px) {
	.rpfu-card { padding: 20px 18px 16px; }
	.rpfu-thanks { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.rpfu-overlay, .rpfu-card, .rpfu-bar span, .rpfu-dot { transition: none !important; }
	.rpfu-ring, .rpfu-bar span, .rpfu-steps li.is-active .rpfu-dot, .rpfu-thanks, .rpfu-thanks-icon, .rpfu-busy .rpfu-fsize::before { animation: none !important; }
}
