.af-donation-form-wrap {
	--af-navy: #141e29;
	--af-red: #c21632;
	--af-red-dark: #9e1128;
	--af-border: #e2e5e9;
	--af-bg: #ffffff;
	max-width: 480px;
	margin: 0 auto;
}

.af-donation-form {
	background: var(--af-bg);
	border: 1px solid var(--af-border);
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 4px 24px rgba(20, 30, 41, 0.06);
	font-family: inherit;
}

.af-donation-form__title {
	margin: 0 0 20px;
	color: var(--af-navy);
	font-size: 1.4rem;
}

.af-donation-form__frequency {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	background: #f4f5f6;
	border-radius: 999px;
	padding: 4px;
}

.af-toggle {
	flex: 1;
	text-align: center;
	position: relative;
	cursor: pointer;
}

.af-toggle input {
	position: absolute;
	opacity: 0;
	inset: 0;
	cursor: pointer;
}

.af-toggle span {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--af-navy);
	transition: background 0.15s ease, color 0.15s ease;
}

.af-toggle input:checked + span {
	background: var(--af-navy);
	color: #ffffff;
}

.af-donation-form__amounts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 6px;
}

.af-amount {
	position: relative;
	cursor: pointer;
}

.af-amount input {
	position: absolute;
	opacity: 0;
	inset: 0;
	cursor: pointer;
}

.af-amount span {
	display: block;
	text-align: center;
	padding: 12px 6px;
	border: 2px solid var(--af-border);
	border-radius: 8px;
	font-weight: 700;
	color: var(--af-navy);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.af-amount input:checked + span {
	border-color: var(--af-red);
	background: rgba(194, 22, 50, 0.06);
	color: var(--af-red);
}

.af-amount--custom span {
	font-weight: 600;
}

.af-donation-form__custom-amount {
	margin: 10px 0 20px;
}

.af-custom-amount-input {
	display: flex;
	align-items: center;
	border: 2px solid var(--af-border);
	border-radius: 8px;
	overflow: hidden;
}

.af-currency-symbol {
	padding: 0 12px;
	color: var(--af-navy);
	font-weight: 700;
}

.af-custom-amount-input input {
	border: none;
	padding: 12px 12px 12px 0;
	flex: 1;
	font-size: 1rem;
}

.af-custom-amount-input input:focus {
	outline: none;
}

.af-donation-form__row {
	margin-bottom: 16px;
}

.af-donation-form__row label,
.af-donation-form__custom-amount label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--af-navy);
}

.af-donation-form__row input[type="text"],
.af-donation-form__row input[type="email"] {
	width: 100%;
	padding: 11px 12px;
	border: 2px solid var(--af-border);
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
}

.af-donation-form__row input:focus,
.af-custom-amount-input:focus-within {
	border-color: var(--af-navy);
	outline: none;
}

.af-donation-form__giftaid {
	margin-bottom: 20px;
	padding: 14px;
	background: #f9fafb;
	border-radius: 8px;
}

.af-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--af-navy);
}

.af-checkbox input {
	margin-top: 3px;
	flex-shrink: 0;
}

.af-giftaid-address {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--af-border);
}

.af-donation-form__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.af-donation-form__card {
	padding: 12px;
	border: 2px solid var(--af-border);
	border-radius: 8px;
	margin-bottom: 8px;
}

.af-donation-form__errors {
	color: var(--af-red);
	font-size: 0.85rem;
	min-height: 1.2em;
	margin-bottom: 12px;
}

.af-donation-form__submit {
	width: 100%;
	padding: 14px;
	background: var(--af-red);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.af-donation-form__submit:hover:not(:disabled) {
	background: var(--af-red-dark);
}

.af-donation-form__submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.af-donation-form__message {
	margin-top: 16px;
	padding: 12px;
	border-radius: 8px;
	text-align: center;
	font-weight: 600;
}

.af-donation-form__message--success {
	background: #e6f4ea;
	color: #1e7e34;
}

@media (max-width: 380px) {
	.af-donation-form__amounts {
		grid-template-columns: repeat(2, 1fr);
	}
}
