/* WFF Quick Donate — inherits the site's own fonts (linotype-didot-headline, futura-pt) */
.wff-qd {
	--qd-navy: var(--wff-ink, #053881);
	--qd-blue: #2468b0;
	--qd-sky: var(--wff-sky, #A0C1E3);
	--qd-wash: #EAF1F8;
	--qd-ink: #21334E;
	--qd-line: rgba(5, 56, 129, .18);
	--qd-display: "linotype-didot-headline", "linotype-didot", Georgia, serif;
	--qd-ui: "futura-pt", system-ui, -apple-system, "Segoe UI", sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 32px 24px;
	background: #fff;
	color: var(--qd-ink);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(5, 56, 129, .12);
	font-family: var(--qd-ui);
	line-height: 1.5;
}
.wff-qd *, .wff-qd *::before, .wff-qd *::after { box-sizing: border-box; }
.wff-qd[hidden], .wff-qd [hidden] { display: none !important; }

.wff-qd__eyebrow, .wff-qd legend {
	margin: 0 0 8px;
	padding: 0;
	font: 600 12px/1.3 var(--qd-ui);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--qd-blue);
}
.wff-qd__title {
	margin: 0 0 10px;
	font: 400 clamp(28px, 4vw, 40px)/1.1 var(--qd-display);
	letter-spacing: .01em;
	color: var(--qd-navy);
}
.wff-qd__lead { margin: 0; font-size: 16px; max-width: 46ch; }

.wff-qd__form { margin-top: 24px; }
.wff-qd__set { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }

.wff-qd__grid { display: grid; gap: 10px; }
.wff-qd__grid--causes  { grid-template-columns: repeat(3, 1fr); }
.wff-qd__grid--amounts { grid-template-columns: repeat(5, 1fr); }

/* chips: native radio kept for keyboard + screen readers, visually hidden */
.wff-qd__opt { position: relative; display: block; cursor: pointer; margin: 0; }
.wff-qd__opt input {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.wff-qd__opt > span {
	display: flex; flex-direction: column; justify-content: center;
	height: 100%; min-height: 56px; padding: 12px 14px;
	background: #fff; border: 1.5px solid var(--qd-line); border-radius: 14px;
	text-align: center; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.wff-qd__opt b { font: 400 18px/1.2 var(--qd-display); color: var(--qd-navy); }
.wff-qd__opt small { margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--qd-ink); opacity: .8; }
.wff-qd__grid--amounts .wff-qd__opt > span { font: 400 22px/1 var(--qd-display); color: var(--qd-navy); }
.wff-qd__opt:hover > span { border-color: var(--qd-navy); }
.wff-qd__opt input:focus-visible + span { outline: 3px solid var(--qd-sky); outline-offset: 2px; }
.wff-qd__opt input:checked + span {
	background: var(--qd-navy); border-color: var(--qd-navy); color: #fff;
	box-shadow: 0 6px 16px rgba(5, 56, 129, .25);
}
.wff-qd__opt input:checked + span b,
.wff-qd__opt input:checked + span small,
.wff-qd__grid--amounts .wff-qd__opt input:checked + span { color: #fff; opacity: 1; }

.wff-qd__impact {
	min-height: 1.5em; margin: 12px 0 0; padding-left: 12px;
	border-left: 3px solid var(--qd-sky);
	font: italic 400 15px/1.45 var(--qd-display); color: var(--qd-navy);
}
.wff-qd__impact:empty { display: none; }

.wff-qd__other { margin-top: 12px; }
.wff-qd__other label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.wff-qd__prefix { position: relative; max-width: 260px; }
.wff-qd__prefix em {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	font: 600 12px var(--qd-ui); letter-spacing: .1em; font-style: normal; color: var(--qd-blue);
}

.wff-qd__email, .wff-qd__custom {
	width: 100%; height: 50px; padding: 0 16px;
	font: 400 16px var(--qd-ui); color: var(--qd-ink);
	background: #fff; border: 1.5px solid var(--qd-line); border-radius: 12px;
	box-shadow: none;
}
.wff-qd__custom { padding-right: 60px; }
.wff-qd__email:focus, .wff-qd__custom:focus {
	outline: 3px solid var(--qd-sky); outline-offset: 0; border-color: var(--qd-navy);
}
.wff-qd__hint { margin: 6px 0 0; font-size: 12.5px; opacity: .75; }
.wff-qd__sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wff-qd__error { min-height: 1.4em; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #b3261e; }
.wff-qd__error:empty { min-height: 0; margin: 0; }

.wff-qd__btn {
	display: inline-block; width: 100%; padding: 16px 28px; cursor: pointer;
	font: 600 13px/1 var(--qd-ui); letter-spacing: .16em; text-transform: uppercase;
	color: #fff; background: var(--qd-navy);
	border: 0; border-radius: 999px; transition: background .15s, transform .15s;
}
.wff-qd__btn:hover { background: var(--qd-blue); }
.wff-qd__btn:active { transform: translateY(1px); }
.wff-qd__btn:focus-visible { outline: 3px solid var(--qd-sky); outline-offset: 3px; }
.wff-qd__btn[disabled] { opacity: .7; cursor: progress; }

.wff-qd__secure { margin: 12px 0 0; text-align: center; font-size: 12.5px; opacity: .8; }
.wff-qd__secure a { color: var(--qd-navy); text-decoration: underline; text-underline-offset: 2px; }

/* wide layout: heading beside the form on desktop (good full-width home band) */
@media (min-width: 900px) {
	.wff-qd--wide {
		display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
		padding: 44px 48px; align-items: start;
	}
	.wff-qd--wide .wff-qd__form { margin-top: 0; }
	.wff-qd--wide .wff-qd__title { font-size: 44px; }
}

@media (max-width: 720px) {
	.wff-qd { padding: 24px 16px; border-radius: 14px; }
	.wff-qd__grid--causes { grid-template-columns: 1fr; }
	.wff-qd__grid--amounts { grid-template-columns: repeat(3, 1fr); }
	.wff-qd__opt > span { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
	.wff-qd * { transition: none !important; }
}
