/* SP Donations form — on-brand (SP green #2a7d2f) */
.spd-donate {
	max-width: 480px;
	margin: 0 auto;
	font-family: inherit;
	color: #1f2937;
}
.spd-donate .spd-title { margin: 0 0 .5rem; }
.spd-cause { margin: 0 0 1rem; font-size: .95rem; color: #374151; }
.spd-form fieldset {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: .9rem 1rem 1rem;
	margin: 0 0 1rem;
}
.spd-form legend { font-weight: 600; font-size: .9rem; padding: 0 .4rem; color: #2a7d2f; }
.spd-presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .7rem; }
.spd-preset {
	flex: 1 1 auto;
	min-width: 64px;
	padding: .6rem .5rem;
	border: 1.5px solid #2a7d2f;
	background: #fff;
	color: #2a7d2f;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.spd-preset:hover { background: #eaf6ea; }
.spd-preset.is-active { background: #2a7d2f; color: #fff; }
.spd-custom { display: flex; align-items: center; gap: .4rem; }
.spd-custom .spd-sym { font-weight: 600; color: #374151; }
.spd-donate input[type="number"],
.spd-donate input[type="text"],
.spd-donate input[type="email"] {
	width: 100%;
	padding: .6rem .7rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
}
.spd-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.spd-row > * { flex: 1; }
.spd-details input { margin-bottom: .5rem; }
.spd-check { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; line-height: 1.35; cursor: pointer; }
.spd-check input { margin-top: .2rem; }
.spd-giftaid { background: #f7fbf7; }
.spd-giftaid-fields { margin-top: .7rem; }
.spd-consent { margin: 0 0 1rem; color: #4b5563; }
.spd-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: .6rem .8rem;
	border-radius: 8px;
	font-size: .88rem;
	margin-bottom: .8rem;
}
.spd-paypal { min-height: 46px; }
.spd-thanks {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	padding: 1rem;
	border-radius: 10px;
	text-align: center;
}
.spd-secure { font-size: .78rem; color: #6b7280; text-align: center; margin: .8rem 0 0; }
.spd-unavailable {
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	padding: 1rem;
	border-radius: 10px;
	color: #4b5563;
	text-align: center;
}

/* --- Modal donate ("DONATE NOW" → popup form). Launch = a self-contained white card. --- */
.spd-donate.spd-is-modal { display: block; max-width: 440px; margin: 0 auto; }
.spd-launch {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 30px 26px 26px; box-shadow: 0 6px 24px rgba(0,0,0,0.08);
	text-align: center; box-sizing: border-box; max-width: 100%;
}
.spd-launch-heading { font-size: 1.6rem; font-weight: 800; color: #1a1a1a; margin: 0 0 .55rem; line-height: 1.2; }
.spd-launch-intro { font-size: .95rem; color: #556070; line-height: 1.55; margin: 0 0 1.2rem; }
.spd-launch-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #2a7d2f; margin: 0 0 .6rem; }
.spd-launch-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-bottom: 1.1rem; }
@media (max-width: 380px) { .spd-launch-amounts { grid-template-columns: repeat(2, 1fr); } }
.spd-launch-amount {
	padding: .7rem 0; border: 1.5px solid #cbd5e1; background: #fff; color: #1a1a1a;
	border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
}
.spd-launch-amount:hover { border-color: #2a7d2f; color: #2a7d2f; background: #f5faf5; }
.spd-launch-cta {
	width: 100%; background: #2a7d2f; color: #fff; border: none; border-radius: 8px;
	padding: .95rem; font-size: 1.05rem; font-weight: 700; letter-spacing: .5px;
	text-transform: uppercase; cursor: pointer; transition: background .15s;
}
.spd-launch-cta:hover { background: #24692a; }
.spd-launch-secure { font-size: .8rem; color: #6b7280; margin: .9rem 0 0; }
.spd-modal-overlay {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0,0,0,0.55);
	display: flex; align-items: flex-start; justify-content: center;
	overflow-y: auto; padding: 40px 16px; box-sizing: border-box;
}
/* the `hidden` attribute must win over display:flex, or the modal shows open on load */
.spd-modal-overlay[hidden] { display: none !important; }
.spd-modal-box {
	position: relative; background: #fff; border-radius: 12px;
	padding: 30px 24px 24px; max-width: 520px; width: 100%;
	box-shadow: 0 20px 60px rgba(0,0,0,0.35); text-align: left;
}
.spd-modal-close {
	position: absolute; top: 6px; right: 14px;
	background: none; border: none; font-size: 30px; line-height: 1;
	color: #999; cursor: pointer; padding: 4px;
}
.spd-modal-close:hover { color: #333; }

/* --- Site-specific: Home "Can you help" section (#cause2_donate) ---
   That section already has its own green "Support Us" heading + pitch text,
   so here we drop the full card down to just the green DONATE button (which
   still opens the same modal form). Card A in the "DONATE" banner is unaffected. */
#cause2_donate .spd-donate.spd-is-modal { max-width: 340px; }
#cause2_donate .spd-launch {
	background: none; border: none; box-shadow: none; padding: 0;
}
#cause2_donate .spd-launch-heading,
#cause2_donate .spd-launch-intro,
#cause2_donate .spd-launch-label,
#cause2_donate .spd-launch-amounts,
#cause2_donate .spd-launch-secure { display: none; }
#cause2_donate .spd-launch-cta { margin: 0 auto; }
