/* Warres Hope Fundraiser — publieke weergave.
   Kleuren zijn variabelen zodat het thema ze kan overschrijven.

   Let op de !important-vlaggen op tekstkleuren: Enfold zet in base.css
   "#top label span { color: #444 }". Die selector heeft een ID en wint dus
   van elke class-selector hier. Zonder deze uitzonderingen krijg je donkere
   tekst op de donkerblauwe knoppen. */

.whf-fundraiser {
	--whf-accent: #17458f;      /* Rotary royal blue */
	--whf-accent-dark: #10336b;
	--whf-highlight: #f7a81b;   /* Rotary gold */
	--whf-ink: #1d2530;
	--whf-muted: #5b6472;
	--whf-border: #dde3ec;
	--whf-surface: #fff;
	--whf-surface-alt: #f5f7fb;
	--whf-radius: 10px;

	margin: 2em 0;
	color: var(--whf-ink);
}

.whf-fundraiser *,
.whf-fundraiser *::before,
.whf-fundraiser *::after {
	box-sizing: border-box;
}

/* Meldingen */

.whf-notice {
	border-radius: var(--whf-radius);
	padding: 14px 18px;
	margin: 0 0 1.5em;
	border-left: 4px solid var(--whf-accent);
	background: var(--whf-surface-alt);
	line-height: 1.5;
}

.whf-notice-success {
	border-left-color: #2e7d32;
	background: #eef7ee;
}

.whf-notice-error {
	border-left-color: #c62828;
	background: #fdeeee;
}

.whf-notice-sub {
	color: var(--whf-muted);
	font-size: 0.9em;
}

/* Voortgang */

.whf-progress {
	margin-bottom: 1.75em;
}

.whf-progress-figures {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 0.5em;
}

.whf-raised {
	font-size: 2.2em;
	font-weight: 700;
	line-height: 1.1;
	color: var(--whf-accent);
}

.whf-goal {
	color: var(--whf-muted);
}

.whf-progress-bar {
	background: #e6eaf2;
	border-radius: 999px;
	height: 14px;
	overflow: hidden;
}

.whf-progress-fill {
	background: linear-gradient(90deg, var(--whf-accent), var(--whf-highlight));
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease;
	min-width: 2px;
}

.whf-progress-meta {
	margin-top: 0.5em;
	color: var(--whf-muted);
	font-size: 0.9em;
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
}

/* Formulier */

.whf-form {
	border: 1px solid var(--whf-border);
	border-radius: var(--whf-radius);
	padding: 26px;
	background: var(--whf-surface);
}

.whf-form .whf-field {
	margin: 0 0 1.35em;
	border: 0;
	padding: 0;
}

.whf-form .whf-legend,
.whf-form label {
	font-weight: 600;
	display: block;
	margin-bottom: 0.4em;
	color: var(--whf-ink);
}

.whf-form .whf-hint,
.whf-form .whf-optional,
.whf-form .whf-amount-hint {
	display: block;
	font-weight: 400;
	font-size: 0.85em;
	color: var(--whf-muted) !important;
	margin-top: 0.35em;
}

.whf-form .whf-optional {
	display: inline;
	margin-left: 0.25em;
}

.whf-form .whf-amount-hint {
	margin: 0 0 0.9em;
}

/* Bedragknoppen */

.whf-amount-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 0.6em;
}

.whf-amount-option {
	margin: 0;
	font-weight: 600;
}

.whf-amount-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.whf-amount-option .whf-amount-chip {
	display: inline-block;
	border: 2px solid var(--whf-border);
	border-radius: var(--whf-radius);
	padding: 11px 18px;
	cursor: pointer;
	background: var(--whf-surface);
	color: var(--whf-ink) !important;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.whf-amount-option:hover .whf-amount-chip {
	border-color: var(--whf-accent);
}

.whf-amount-option input:checked + .whf-amount-chip {
	border-color: var(--whf-accent);
	background: var(--whf-accent);
	color: #fff !important;
}

.whf-amount-option input:focus-visible + .whf-amount-chip {
	outline: 3px solid var(--whf-highlight);
	outline-offset: 2px;
}

/* Invoervelden */

.whf-form input[type="text"],
.whf-form input[type="email"],
.whf-form textarea,
.whf-form select {
	width: 100%;
	max-width: 380px;
	padding: 11px 12px;
	border: 1px solid var(--whf-border);
	border-radius: var(--whf-radius);
	font-size: 1em;
	font-family: inherit;
	background: var(--whf-surface);
	color: var(--whf-ink);
}

.whf-form textarea {
	max-width: 100%;
	resize: vertical;
}

.whf-form input:focus,
.whf-form textarea:focus,
.whf-form select:focus {
	border-color: var(--whf-accent);
	outline: 2px solid rgba(23, 69, 143, 0.15);
}

.whf-field-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.whf-field-row .whf-field {
	flex: 1 1 150px;
}

/* Aanvinkvakjes */

.whf-check label {
	display: flex;
	align-items: flex-start;
	gap: 0.55em;
	font-weight: 500;
	margin-bottom: 0.2em;
	cursor: pointer;
}

.whf-check label span {
	color: var(--whf-ink) !important;
	font-weight: 500;
}

.whf-check input[type="checkbox"] {
	margin: 0.2em 0 0;
	flex: 0 0 auto;
}

.whf-receipt {
	background: var(--whf-surface-alt);
	border: 1px solid var(--whf-border);
	border-radius: var(--whf-radius);
	padding: 14px 16px;
}

.whf-receipt-fields {
	margin-top: 1em;
	padding-top: 0.6em;
	border-top: 1px dashed var(--whf-border);
}

.whf-receipt-fields .whf-field:last-child {
	margin-bottom: 0;
}

.whf-receipt-intro {
	margin: 0 0 1em;
}

.whf-check input:disabled + span {
	opacity: 0.55;
}

.whf-hidden {
	display: none;
}

.whf-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Knop */

.whf-submit {
	margin: 1.5em 0 0;
}

.whf-button {
	background: var(--whf-accent);
	color: #fff !important;
	border: 0;
	border-radius: var(--whf-radius);
	padding: 15px 30px;
	font-size: 1.05em;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.whf-button:hover,
.whf-button:focus {
	background: var(--whf-accent-dark);
}

.whf-button[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.whf-legal {
	margin: 1em 0 0;
	font-size: 0.85em;
	color: var(--whf-muted);
	line-height: 1.5;
}

/* Donateurs */

.whf-donors {
	margin-top: 2.5em;
}

.whf-donors-title {
	margin: 0 0 1em;
	font-size: 1.2em;
	display: flex;
	align-items: center;
	gap: 0.6em;
}

.whf-donors-count {
	background: var(--whf-surface-alt);
	border-radius: 999px;
	padding: 0.15em 0.7em;
	font-size: 0.8em;
	color: var(--whf-muted);
	font-weight: 600;
}

.whf-donor-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.whf-donor {
	display: flex;
	gap: 0.9em;
	padding: 0.9em 0;
	border-bottom: 1px solid var(--whf-border);
	align-items: flex-start;
}

.whf-avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.05em;
	color: #fff;
	background: var(--whf-accent);
}

.whf-avatar-blue  { background: #17458f; }
.whf-avatar-gold  { background: #f7a81b; color: #3a2a00; }
.whf-avatar-green { background: #2e7d32; }
.whf-avatar-plum  { background: #7b3f8c; }
.whf-avatar-teal  { background: #127c8a; }

.whf-donor-body {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.whf-donor-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em;
}

.whf-donor-name {
	font-weight: 700;
}

.whf-donor-supports {
	font-size: 0.8em;
	color: var(--whf-accent);
	background: rgba(23, 69, 143, 0.08);
	border-radius: 999px;
	padding: 0.1em 0.6em;
}

.whf-donor-meta {
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
	align-items: baseline;
	font-size: 0.9em;
	color: var(--whf-muted);
	margin-top: 0.1em;
}

.whf-donor-amount {
	font-weight: 600;
	color: var(--whf-ink);
}

.whf-donor-message {
	display: block;
	margin-top: 0.35em;
	line-height: 1.5;
}

.whf-donors-nav {
	margin-top: 1.2em;
	display: flex;
	gap: 1.2em;
	flex-wrap: wrap;
}

.whf-donors-all,
.whf-donors-nav a {
	font-weight: 600;
}

.whf-donors-back {
	margin-left: auto;
	color: var(--whf-muted);
}

.whf-donors-empty p {
	color: var(--whf-muted);
}

@media (max-width: 480px) {
	.whf-form {
		padding: 18px;
	}

	.whf-amount-option .whf-amount-chip {
		padding: 10px 14px;
	}

	.whf-raised {
		font-size: 1.7em;
	}

	.whf-avatar {
		width: 36px;
		height: 36px;
		font-size: 0.95em;
	}
}

.whf-donor-company {
	font-size: 0.85em;
	color: var(--whf-muted);
}

/* Oproepblok voor homepage of zijbalk */

.whf-cta {
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
	border: 1px solid var(--whf-border);
	border-left: 6px solid var(--whf-highlight);
	border-radius: var(--whf-radius);
	background: linear-gradient(135deg, #f7f9fd 0%, #fff 60%);
	padding: 22px 26px;
}

.whf-cta-body {
	flex: 1 1 320px;
	min-width: 0;
}

.whf-cta-title {
	margin: 0 0 0.35em;
	font-size: 1.3em;
	line-height: 1.25;
}

.whf-cta-title a {
	text-decoration: none;
}

.whf-cta-text {
	margin: 0 0 0.9em;
	color: var(--whf-muted);
	line-height: 1.55;
}

.whf-cta-figures {
	display: flex;
	align-items: baseline;
	gap: 0.6em;
	flex-wrap: wrap;
	margin-bottom: 0.5em;
}

.whf-cta-raised {
	font-size: 1.5em;
	color: var(--whf-accent);
	line-height: 1;
}

.whf-cta-goal,
.whf-cta-donations {
	color: var(--whf-muted);
	font-size: 0.9em;
}

.whf-cta-donations::before {
	content: "·";
	margin-right: 0.6em;
}

.whf-cta-action {
	flex: 0 0 auto;
}

.whf-cta .whf-button {
	display: inline-block;
	text-decoration: none;
}

.whf-cta-draft {
	flex: 1 1 100%;
	margin: 0 0 0.5em;
	font-size: 0.85em;
	color: #8a6d3b;
	background: #fcf6e3;
	border-radius: 6px;
	padding: 6px 10px;
}

@media (max-width: 600px) {
	.whf-cta {
		padding: 18px;
	}

	.whf-cta-action,
	.whf-cta .whf-button {
		width: 100%;
		text-align: center;
	}
}
