/* MAF Donate page modules */

.mafdn {
	--maf-hf: var(--e-global-typography-primary-font-family, var(--wp--preset--font-family--heading, Montserrat)), "Helvetica Neue", Arial, sans-serif;
	--maf-bf: var(--e-global-typography-text-font-family, var(--wp--preset--font-family--body, Figtree)), "Helvetica Neue", Arial, sans-serif;
	--maf-text: var(--e-global-color-text, #3D3D45);
	--maf-head: #20202a;
	--ink: var(--maf-head, #20202a);
	--body: var(--maf-text, #3D3D45);
	--muted: #6B6B75;
	--soft: #978B87;
	--line: #ece9e7;
	--wash: #FAF7F5;
	--plum: #870F54;
	--berry: #B21E5A;
	font-family: var(--maf-bf);
	color: var(--body);
}

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

.mafdn-band { width: 100%; }
.mafdn-in { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.mafdn .mafdn-bar { display: block; width: 52px; height: 5px; border-radius: 3px; background: var(--berry); margin: 0 0 20px; }
.mafdn .mafdn-bar.is-sm { width: 40px; height: 4px; margin-bottom: 16px; }
.mafdn .mafdn-bar.is-yellow { background: #EAEA6C; margin-bottom: 18px; }

/* Theme-proof type: themes size every h1/h2/p globally */
.mafdn h1, .mafdn h2, .mafdn h3 { font-family: var(--maf-hf) !important; } .mafdn p { font-family: var(--maf-bf) !important; letter-spacing: normal; text-transform: none; }

/* ---- Header ---- */
.mafdn-header { background: var(--wash); border-bottom: 1px solid var(--line); }
.mafdn-headgrid { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; padding-top: 52px; padding-bottom: 44px; }
.mafdn-headtitle { flex: 1 1 420px; min-width: 0; }
.mafdn .mafdn-h1 { font-size: 52px !important; font-weight: 800 !important; line-height: 1.08 !important; letter-spacing: -.02em !important; color: var(--ink) !important; margin: 0 !important; }
.mafdn .mafdn-headintro { flex: 1 1 320px; min-width: 0; max-width: 380px; font-size: 17px !important; line-height: 1.65 !important; color: #4a4a52 !important; margin: 0 0 6px !important; }

/* ---- Why give + form ---- */
.mafdn-give { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: start; padding-top: 72px; padding-bottom: 80px; }
.mafdn-case { min-width: 0; max-width: 62ch; }

.mafdn .mafdn-eyebrow { font-size: 12px !important; font-weight: 700 !important; line-height: 1.4 !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: var(--soft) !important; margin: 0 0 14px !important; }
.mafdn .mafdn-h2 { font-size: 34px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -.015em !important; color: var(--ink) !important; margin: 0 0 26px !important; text-wrap: balance; }
.mafdn .mafdn-h2.is-big { font-size: 36px !important; line-height: 1.15 !important; margin-bottom: 14px !important; }
.mafdn .mafdn-p { font-size: 17px !important; font-weight: 400 !important; line-height: 1.7 !important; color: var(--body) !important; margin: 0 0 22px !important; }
.mafdn .mafdn-p.is-lead { font-size: 18px !important; }

.mafdn-points { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 12px; display: flex; flex-direction: column; gap: 22px; }
.mafdn-point { display: flex; gap: 18px; align-items: flex-start; }
.mafdn-check { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.mafdn .mafdn-ptitle { font-size: 17px !important; font-weight: 700 !important; line-height: 1.35 !important; color: var(--ink) !important; margin: 0 0 5px !important; }
.mafdn .mafdn-pbody { font-size: 16px !important; font-weight: 400 !important; line-height: 1.65 !important; color: var(--body) !important; margin: 0 !important; }

.mafdn-formcol { min-width: 0; }
.mafdn-give.is-sticky .mafdn-formcol { position: sticky; top: 130px; }
body.admin-bar .mafdn-give.is-sticky .mafdn-formcol { top: 162px; }

.mafdn-formbox { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 12px 20px -12px rgba(32,32,42,.25); }
.mafdn-formhead { background: var(--plum); padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mafdn-formlabel { font: 700 13px/1 var(--maf-hf); letter-spacing: .09em; text-transform: uppercase; color: #fff; }
.mafdn-formbadge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--maf-hf); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }

.mafdn-embed { padding: 22px; background: var(--wash); border-bottom: 1px solid var(--line); }
.mafdn .mafdn-embed iframe { display: block; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 auto !important; border: 0; }

.mafdn-empty { border: 2px dashed #d8d3d0; border-radius: 12px; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; background: #fff; }
.mafdn .mafdn-emptyt { font-size: 13px !important; font-weight: 700 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--plum) !important; margin: 0 !important; }
.mafdn .mafdn-emptyb { font-size: 14px !important; line-height: 1.6 !important; color: var(--muted) !important; margin: 0 !important; max-width: 30ch; }

.mafdn-formfoot { padding: 18px 22px; display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; }
.mafdn-ein { font: 600 11px/1.4 var(--maf-hf); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.mafdn-tax { font: 400 12px/1.4 var(--maf-bf); color: var(--muted); }

.mafdn .mafdn-below { font-size: 14px !important; line-height: 1.6 !important; color: var(--muted) !important; margin: 16px 0 0 !important; text-align: center; }
.mafdn .mafdn-below a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Other ways ---- */
.mafdn-ways { background: var(--wash); border-top: 1px solid var(--line); }
.mafdn-ways .mafdn-in { padding-top: 76px; padding-bottom: 84px; }
.mafdn .mafdn-waysintro { font-size: 17px !important; line-height: 1.65 !important; color: #4a4a52 !important; margin: 0 0 40px !important; max-width: 56ch; }

.mafdn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.mafdn-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c, var(--plum)); border-radius: 14px; padding: 28px 26px 30px; display: flex; flex-direction: column; }
.mafdn .mafdn-ctitle { font-size: 19px !important; font-weight: 700 !important; line-height: 1.3 !important; color: var(--ink) !important; margin: 0 0 10px !important; }
.mafdn .mafdn-cbody { font-size: 15px !important; line-height: 1.65 !important; color: var(--body) !important; margin: 0 0 22px !important; flex: 1; }
.mafdn a.mafdn-clink, .mafdn a.mafdn-clink:visited { align-self: flex-start; font: 700 12px/1.3 var(--maf-hf); letter-spacing: .08em; text-transform: uppercase; color: var(--ink) !important; text-decoration: underline !important; text-decoration-color: var(--c, var(--plum)) !important; text-decoration-thickness: 2px !important; text-underline-offset: 5px !important; }
.mafdn a.mafdn-clink:hover { color: var(--plum) !important; }

/* ---- Notice strip ---- */
.mafdn-platewrap .mafdn-in { padding-top: 56px; padding-bottom: 72px; }
.mafdn-plate { border: 1px solid var(--line); border-left: 5px solid var(--c, #80BC00); border-radius: 12px; padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.mafdn .mafdn-platetext { font-size: 17px !important; line-height: 1.6 !important; color: var(--body) !important; margin: 0 !important; max-width: 62ch; flex: 1 1 320px; }
.mafdn a.mafdn-btn, .mafdn a.mafdn-btn:visited, .mafdn a.mafdn-btn:hover, .mafdn a.mafdn-btn:focus {
	flex: 0 0 auto; display: inline-block; background: var(--plum) !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
	padding: 15px 28px !important; border-radius: 999px !important; font: 700 12px/1 var(--maf-hf) !important; letter-spacing: .08em !important; text-transform: uppercase !important; text-decoration: none !important;
}
.mafdn a.mafdn-btn:hover { filter: brightness(.94); }

/* ---- Tablet / phone ---- */
@media (max-width: 960px) {
	.mafdn-give { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; padding-bottom: 56px; }
	.mafdn-give.is-sticky .mafdn-formcol { position: static; }
	.mafdn-give.is-formfirst .mafdn-formcol { order: -1; }
	.mafdn-case { max-width: none; }
	.mafdn-formcol { max-width: 560px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
	.mafdn-in { padding-left: 20px; padding-right: 20px; }
	.mafdn-headgrid { padding-top: 36px; padding-bottom: 30px; gap: 14px; }
	.mafdn .mafdn-h1 { font-size: 38px !important; }
	.mafdn .mafdn-h2 { font-size: 27px !important; margin-bottom: 20px !important; }
	.mafdn .mafdn-h2.is-big { font-size: 28px !important; }
	.mafdn-embed { padding: 12px; }
	.mafdn-formhead { padding: 14px 18px; }
	.mafdn-formfoot { padding: 14px 18px; }
	.mafdn-ways .mafdn-in { padding-top: 52px; padding-bottom: 56px; }
	.mafdn-cards { grid-template-columns: 1fr; gap: 16px; }
	.mafdn-card { padding: 22px 20px 24px; }
	.mafdn-platewrap .mafdn-in { padding-top: 36px; padding-bottom: 48px; }
	.mafdn-plate { padding: 22px 20px; }
	.mafdn a.mafdn-btn { width: 100%; text-align: center; }
}

/* ---- Box header styles (v1.6.2) ---- */
.mafdn-formbox.is-light { border-top: 4px solid var(--berry); }
.mafdn-formbox.is-light .mafdn-formhead { background: #fff; padding: 18px 22px 4px; }
.mafdn-formbox.is-light .mafdn-formlabel { color: var(--ink); }
.mafdn-formbox.is-light .mafdn-formbadge { color: var(--soft); }
.mafdn-formbox.is-light .mafdn-embed,
.mafdn-formbox.is-none .mafdn-embed { background: #fff; padding-top: 14px; }
.mafdn-formbox.is-none { border-top: 4px solid var(--berry); }
.mafdn-formbox.is-none .mafdn-embed { padding-top: 22px; }

/* ---- Site fonts (v2.1) ---- */
.mafdn p.mafdn-eyebrow, .mafdn p.mafdn-ptitle, .mafdn p.mafdn-emptyt { font-family: var(--maf-hf) !important; }

/* ---- Notice strip image (v2.2) ---- */
.mafdn-plate.has-img { gap: 20px 32px; }
.mafdn .mafdn-plateimg { flex: 0 0 auto; display: block; width: 180px !important; max-width: 100% !important; height: auto !important; margin: 0 !important; border-radius: 8px !important; box-shadow: 0 6px 16px -8px rgba(32,32,42,.35) !important; }
@media (max-width: 640px) {
	.mafdn-plate.has-img { flex-direction: column; align-items: stretch; text-align: left; }
	.mafdn .mafdn-plateimg { width: 200px !important; align-self: center; }
}

/* ---- Merged card (v2.5): Donorbox's own header becomes the card's top ---- */
.mafdn .mafdn-formbox.is-merged {
	border: 0 !important; border-radius: 18px; overflow: hidden; background: #fff;
	box-shadow: 0 0 0 1px var(--line), 0 28px 56px -28px rgba(32,32,42,.35);
}
.mafdn .mafdn-formbox.is-merged .mafdn-embed { padding: 0 !important; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.mafdn .mafdn-formbox.is-merged .mafdn-embed iframe {
	width: calc(100% + 2px) !important; max-width: none !important; margin: -1px -1px 0 !important; border: 0 !important;
}
.mafdn .mafdn-formbox.is-merged .mafdn-empty { border: 0; border-radius: 0; background: var(--wash); }
.mafdn .mafdn-formbox.is-merged .mafdn-formfoot { background: var(--wash); padding: 16px 22px; gap: 8px 18px; }
.mafdn-secure { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1.4 var(--maf-hf); letter-spacing: .1em; text-transform: uppercase; color: var(--plum); }
.mafdn-formbox.is-merged .mafdn-ein::before { content: "·"; margin-right: 10px; color: #cfc9c6; }
.mafdn-formbox.is-merged .mafdn-tax { margin-left: auto; }
@media (max-width: 640px) {
	.mafdn .mafdn-formbox.is-merged { border-radius: 14px; }
	.mafdn-formbox.is-merged .mafdn-tax { margin-left: 0; flex-basis: 100%; }
}

/* ---- Merged card hugs the Donorbox form width (v2.5.1) ---- */
.mafdn .mafdn-formbox.is-merged { width: 100%; max-width: var(--fw, 424px); margin-left: auto; margin-right: auto; }
.mafdn .mafdn-formbox.is-merged + .mafdn-below { max-width: var(--fw, 424px); margin-left: auto; margin-right: auto; }
.mafdn .mafdn-formbox.is-merged .mafdn-embed iframe { min-width: 0 !important; }
.mafdn .mafdn-formbox.is-merged .mafdn-formfoot { flex-wrap: wrap; }
.mafdn-formbox.is-merged .mafdn-tax { margin-left: 0; flex-basis: 100%; }

/* ---- Theme-proof link states (v2.5.2): theme/Elementor link hover can't resize or recase these ---- */
.mafdn a.mafdn-clink, .mafdn a.mafdn-clink:link, .mafdn a.mafdn-clink:visited, .mafdn a.mafdn-clink:hover, .mafdn a.mafdn-clink:focus, .mafdn a.mafdn-clink:active {
	font-family: var(--maf-hf) !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.3 !important;
	letter-spacing: .08em !important; text-transform: uppercase !important; transform: none !important;
	color: var(--ink) !important; text-decoration: underline !important; text-decoration-color: var(--c, var(--plum)) !important;
	text-decoration-thickness: 2px !important; text-underline-offset: 5px !important; white-space: nowrap; transition: color .15s ease, text-decoration-color .15s ease;
}
.mafdn a.mafdn-clink:hover, .mafdn a.mafdn-clink:focus { color: var(--plum) !important; }
.mafdn a.mafdn-clink span { display: inline-block; transition: transform .15s ease; }
.mafdn a.mafdn-clink:hover span { transform: translateX(3px); }
.mafdn a.mafdn-btn:hover, .mafdn a.mafdn-btn:focus { font-size: 12px !important; letter-spacing: .08em !important; line-height: 1 !important; transform: none !important; }
.mafdn .mafdn-below a, .mafdn .mafdn-below a:hover, .mafdn .mafdn-below a:focus { font-size: 14px !important; line-height: 1.6 !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: normal !important; transform: none !important; }
.mafdn .mafdn-card { transition: border-color .18s ease, box-shadow .18s ease; }
.mafdn .mafdn-card:hover { border-color: #ddd7d3; box-shadow: 0 14px 30px -18px rgba(32,32,42,.3); }
