/* DONATE PAGE */

.donateHero {
	background: linear-gradient(180deg, var(--hdr-accent-soft) 0%, var(--bg-color) 100%);
	border-bottom: 1px solid transparent;
}

.donateHero.open {
	border-bottom-color: var(--hdr-border);
}

body.dark .donateHero {
	background: linear-gradient(180deg, color-mix(in srgb, #fff 6%, var(--bg-color)) 0%, var(--bg-color) 100%);
}

.donateHero .container {
	padding-top: 40px;
	padding-bottom: 36px;
}

.donateHero h1 {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 12px;
	font-size: clamp(3rem, 4vw, 4.2rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text-color);
}

.donateHero h1 img {
	width: 1.1em;
	height: 1.1em;
}

.donateHero p {
	margin: 0 0 10px;
	font-size: 1.7rem;
	line-height: 1.7;
	color: var(--muted-text-color);
}

.donateHero p.donateLead {
	font-size: 1.9rem;
	color: var(--text-color);
}

.donateChoices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.donateChoice {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	border: 1px solid var(--hdr-border);
	border-radius: 14px;
	background: var(--bg-color);
	color: var(--text-color);
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.donateChoice:hover,
.donateChoice:focus-visible {
	transform: translateY(-2px);
	border-color: var(--hdr-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
	text-decoration: none;
}

.donateChoice.active {
	border-color: var(--hdr-accent);
	box-shadow: 0 0 0 2px var(--hdr-accent);
}

body.dark .donateChoice.active {
	border-color: rgba(255, 255, 255, .6);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
}

.donateChoice strong {
	display: block;
	font-size: 2rem;
	line-height: 1.3;
}

.donateChoice small {
	display: block;
	font-size: 1.4rem;
	line-height: 1.5;
	color: var(--muted-text-color);
}

.donateIcon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--hdr-accent-soft);
	color: var(--hdr-accent);
}

body.dark .donateIcon {
	background: color-mix(in srgb, #fff 8%, var(--bg-color));
	color: #fff;
}

body.dark .donateChoice {
	background: color-mix(in srgb, #fff 4%, var(--bg-color));
}

body.dark .donateChoice:hover,
body.dark .donateChoice:focus-visible {
	border-color: rgba(255, 255, 255, .4);
	box-shadow: 0 0 18px color-mix(in srgb, #fff 18%, transparent);
}

/* Closing section: lighter at the top, slightly darker at the bottom */
.donateBody {
	flex: 1 0 auto;
	background: linear-gradient(180deg, var(--bg-color) calc(100% - 220px), var(--hdr-accent-soft) 100%);
}

/* On a tall screen the page is shorter than the window; the body takes the spare height, so its gradient meets the footer */
main:has(> .donateBody) {
	display: flex;
	flex-direction: column;
}

body.dark .donateBody {
	background: linear-gradient(180deg, var(--bg-color) calc(100% - 220px), color-mix(in srgb, #000 16%, var(--bg-color)) 100%);
}

.donateBody .container {
	padding-top: 36px;
	padding-bottom: 64px;
}

.donatePanel {
	display: none;
	margin-bottom: 24px;
	padding: 26px 30px;
	border: 1px solid var(--hdr-border);
	border-radius: 14px;
	background: var(--bg-color);
	font-size: 1.6rem;
	color: var(--text-color);
}

.donatePanel p,
.donatePanel li {
	line-height: 1.75;
}

.donatePanel p {
	margin: 0 0 12px;
}

.donatePanel h2 {
	margin: 0 0 16px;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--text-color);
}

.donateAfter > p {
	font-size: 1.7rem;
	line-height: 1.75;
}

.donateSteps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 18px 0 22px;
	padding: 0;
	list-style: none;
	counter-reset: donateStep;
}

.donateSteps li {
	counter-increment: donateStep;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--hdr-border);
	border-radius: 12px;
	line-height: 1.6;
}

.donateSteps li::before {
	content: counter(donateStep);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--hdr-accent);
	color: #fff;
	font-size: 1.4rem;
	font-weight: 700;
}

body.dark .donateSteps li::before {
	background: #f1f1f3;
	color: #111;
}

.donateAfter .donateNote {
	margin-bottom: 18px;
	padding: 14px 18px;
	border-left: 4px solid var(--hdr-accent);
	border-radius: 0 10px 10px 0;
	background: var(--hdr-accent-soft);
}

body.dark .donateAfter .donateNote {
	border-left-color: rgba(255, 255, 255, .6);
	background: color-mix(in srgb, #fff 7%, var(--bg-color));
}

.donateAfter .donateSign {
	margin: 0 0 24px;
	line-height: 1.5;
	font-weight: 600;
}

.prayerList {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.prayerList li {
	position: relative;
	margin: 0;
	border: 1px solid var(--hdr-border);
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.prayerList label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
}

.prayerList input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.prayerList li:has(input:checked) {
	border-color: var(--hdr-accent);
	background: var(--hdr-accent-soft);
	box-shadow: 0 0 0 1px var(--hdr-accent);
}

.prayerList li:has(input:checked) .donateIcon {
	background: var(--hdr-accent);
	color: #fff;
}

.prayerList li:has(input:focus-visible) {
	outline: 2px solid var(--hdr-accent);
	outline-offset: 2px;
}

body.dark .prayerList li:has(input:checked) {
	border-color: rgba(255, 255, 255, .6);
	background: color-mix(in srgb, #fff 10%, var(--bg-color));
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
}

body.dark .prayerList li:has(input:checked) .donateIcon {
	background: #f1f1f3;
	color: #111;
}

.prayerList li:hover {
	transform: translateY(-2px);
	border-color: var(--hdr-accent);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

body.dark .prayerList li:hover {
	border-color: rgba(255, 255, 255, .4);
	box-shadow: 0 0 18px color-mix(in srgb, #fff 14%, transparent);
}

.prayerList .donateIcon,
.donatePanel h2 .donateIcon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
}

.donatePanel h2 {
	display: flex;
	align-items: center;
	gap: 14px;
}

.donateAction {
	display: inline-flex;
	align-items: center;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--hdr-accent);
	color: #fff;
	font: inherit;
	font-size: 1.6rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donateAction:hover,
.donateAction:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

body.dark .donateAction {
	background: #f1f1f3;
	color: #111;
}

.money-select {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.money-select .amount {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 10px;
	border: 1px solid var(--hdr-border);
	border-radius: 14px;
	background: var(--bg-color);
	color: var(--text-color);
	font: inherit;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.money-select .amount:hover,
.money-select .amount:focus-visible {
	transform: translateY(-2px);
	border-color: var(--hdr-accent);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.money-select .amount.selected {
	border-color: var(--hdr-accent);
	background: var(--hdr-accent-soft);
	box-shadow: 0 0 0 2px var(--hdr-accent);
}

body.dark .money-select .amount:hover,
body.dark .money-select .amount:focus-visible,
body.dark .money-select .amount.selected {
	border-color: rgba(255, 255, 255, .6);
}

body.dark .money-select .amount.selected {
	background: color-mix(in srgb, #fff 10%, var(--bg-color));
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
}

.money-select .donateIcon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.money-select .amount.selected .donateIcon {
	background: var(--hdr-accent);
	color: #fff;
}

body.dark .money-select .amount.selected .donateIcon {
	background: #f1f1f3;
	color: #111;
}

.money-select .value {
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1.2;
}

#donate-done,
#donate-success,
#prayer-success {
	display: none;
}

.donate-message {
	margin-bottom: 16px;
	font-size: 2rem;
	line-height: 1.5;
}

.donate-message.confirm {
	color: var(--muted-text-color);
}

.donate-message.success {
	font-weight: 600;
}

.donateAfter {
	margin-bottom: 20px;
}

.donateAlert {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	padding: 16px 20px;
	border: 1px solid #1a9e55;
	border-radius: 12px;
	background: #e8f7ee;
	color: #11613a;
}

.donateAlert strong {
	display: block;
	font-size: 1.8rem;
	line-height: 1.4;
}

.donateAlert span {
	font-size: 1.5rem;
	line-height: 1.5;
}

.donateAlert .donateAlertIcon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #1a9e55;
	color: #fff;
}

body.dark .donateAlert {
	border-color: rgba(74, 210, 135, .5);
	background: rgba(74, 210, 135, .1);
	color: #bdf0d2;
}

body.dark .donateAlert .donateAlertIcon {
	background: #4ad287;
	color: #0b2a1a;
}

.donateStatsHeading {
	margin: 8px 0 0;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--text-color);
}

.donateStatsHeading small {
	display: block;
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--muted-text-color);
}

.donateLoading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 0;
	font-size: 1.5rem;
	color: var(--muted-text-color);
}

.donateSpinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--hdr-border);
	border-top-color: var(--hdr-accent);
	border-radius: 50%;
	animation: donateSpin 0.8s linear infinite;
}

body.dark .donateSpinner {
	border-top-color: #fff;
}

@keyframes donateSpin {
	to { transform: rotate(360deg); }
}

@media (max-width: 800px) {
	.donateSteps { grid-template-columns: 1fr; }
	.prayerList { grid-template-columns: 1fr; }
	.money-select { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.donateHero .container { padding-top: 20px; padding-bottom: 24px; }
	.donateChoices { grid-template-columns: 1fr; }
	.donatePanel { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.donateSpinner { animation-duration: 2.4s; }
	.donateChoice, .donateAction, .money-select .amount, .prayerList li { transition: none; }
	.donateChoice:hover, .donateChoice:focus-visible, .money-select .amount:hover, .prayerList li:hover { transform: none; }
}
