* RESET*/ *,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}




/* Section layout */
.donation-section {
	padding: 48px 20px;
	background: #f7f7f8;
	box-sizing: border-box;
}

.donation-wrap {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 520px;
	gap: 32px;
	align-items: start;
}

/* Left info/iframe */
.donation-info {
	background: transparent;
	padding: 8px 0;
}

.donation-info h2 {
	font-size: 2.1rem;
	margin-bottom: 8px;
	color: #1e3a8a;
	font-family: "EB Garamond", serif;
}

.donation-lead {
	max-width: 720px;
	font-size: 1.05rem;
	color: #222;
	margin-bottom: 14px;
}

.donation-copy {
	color: #444;
	line-height: 1.6;
	margin-bottom: 18px;
}

.donation-iframe-wrap iframe {
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 8px;
}

/* Right: the form */
.donation-form-wrap {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 40px rgba(15, 15, 20, 0.06);
	padding: 18px;
	box-sizing: border-box;
}

/* Progress bar */
.donation-progress {
	height: 8px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 14px;
}

.donation-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #2563eb, #1e3a8a);
	width: 0%;
	transition: width .35s ease;
}

/* Fieldset steps */
.donation-step {
	display: none;
	border: 0;
	margin: 0;
	padding: 0;
}

.donation-step.active {
	display: block;
}

/* Step titles */
.step-title {
	font-size: 1.15rem;
	margin-bottom: 12px;
	font-weight: 700;
	color: #222;
}

/* ------------------------------- */
/* PRESET AMOUNT BUTTONS (3 per row) */
/* ------------------------------- */
.preset-amounts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px 12px;
	margin-bottom: 16px;
}

.amount-btn {
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fafafa;
	padding: 14px 0;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 700;
	color: #222;
	transition: all .15s ease;
	font-size: 1.05rem;
	text-align: center;
}

.amount-btn.active,
.amount-btn:focus {
	background: #2563eb;
	color: #fff;
	outline: none;
	transform: translateY(-2px);
}

/* Custom amount */
.custom-amount-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 16px;
}

.custom-amount-row input[type="number"] {
	flex: 1;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	font-size: 1rem;
}

.custom-amount-row .currency {
	font-weight: 700;
	color: #666;
}

/* Input labels */
label {
	display: block;
	margin: 12px 0 6px;
	color: #333;
	font-weight: 600;
	font-size: .95rem;
}

/* Text inputs ALWAYS consistent styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.10);
	font-size: 1rem;
	box-sizing: border-box;
	background: #fff;
}

/* Address inputs (match Step 2 styling) */
#addr-line1,
#addr-line2,
#addr-city,
#addr-state,
#addr-zip {
	width: 100%;
	padding: 12px 14px;
	/* same as Step 2 inputs */
	font-size: 1rem;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.10);
	box-sizing: border-box;
	background: #fff;
	margin-bottom: 12px;
	/* similar spacing to Step 2 inputs */
}

/* Card fields */
.card-row {
	display: flex;
	gap: 12px;
}

.card-row>div {
	flex: 1;
}

/* Review block */
.review-block {
	background: #fbfbfb;
	border-radius: 8px;
	padding: 12px;
	margin: 8px 0;
}

.review-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
}

.review-row:last-child {
	border-bottom: none;
}

/* Payment note */
.payment-note {
	font-size: .95rem;
	color: #666;
	margin: 12px 0;
}

/* Buttons */
.step-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 18px;
}

.btn {
	padding: 12px 16px;
	border-radius: 8px;
	border: 0;
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
}

.btn-prev {
	background: #f3f3f3;
	color: #333;
}

.btn-next {
	background: #2563eb;
	color: #fff;
}

.btn-submit {
	background: #1e3a8a;
	color: #fff;
}

.btn-finish {
	background: #2563eb;
	color: #fff;
}

/* Success message */
.donation-success h3 {
	color: #1e3a8a;
}

.donation-success p {
	color: #444;
}

/* Required indicator */
.required {
	color: #c0392b;
	margin-left: 4px;
	font-weight: 700;
}

/* Responsive */
@media (max-width: 980px) {
	.donation-wrap {
		grid-template-columns: 1fr;
		padding: 0 12px;
	}

	.preset-amounts {
		grid-template-columns: repeat(2, 1fr);
	}

	.step-actions {
		justify-content: space-between;
	}

	.donation-info {
		order: 2;
		margin-top: 18px;
	}

	.donation-form-wrap {
		order: 1;
	}

	.donation-iframe-wrap iframe {
		min-height: 240px;
	}
}


/* Loader & Toast */
/* ---------- BLUR BACKDROP ---------- */
body.toast-active .donation-section {
	filter: blur(4px);
	pointer-events: none;
	user-select: none;
}

/* ---------- LOADER ---------- */
#loader {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(3px);
	align-items: center;
	justify-content: center;
}

.loader-box {
	background: #fff;
	padding: 30px 40px;
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-weight: 600;
}

.loader-spinner {
	width: 42px;
	height: 42px;
	border: 4px solid #ddd;
	border-top-color: #6a3cbc;
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- TOAST MODAL ---------- */
.toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background: #ffffff;
	color: #222;
	padding: 28px 36px;
	border-radius: 14px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
	z-index: 10001;
	opacity: 0;
	transition: all 0.35s ease;
	max-width: 90%;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
}

.toast.show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}