:root {
	--gold: #E2AC42;
	--blue: #053F73;
	--red: #C81E32;
	--black: #000000;
	--white: #ffffff;
	--pansyPurple: #781A54;
	--gray-100: #f8f9fa;
	--gray-200: #e9ecef;
	--gray-300: #dee2e6;
	--gray-600: #6c757d;
}

body {
	font-family: 'Poppins', sans-serif;
	background: var(--gray-100);
	color: var(--black);
	line-height: 1.6;
}

/* ============================================
   Main Section - Two Column Layout
   ============================================ */
.donate-page {
	padding: 3rem 0;
}

.donate-page .container {
	max-width: 1200px;
}

/* ============================================
   Left Column - Sticky Donate Card
   ============================================ */
.donate-card-wrapper {
	height: 100%;
	position: relative;
}

.donate-card {
	background: var(--white);
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
	.donate-card-wrapper {
		height: auto;
		margin-bottom: 2rem;
	}
}

.donate-card__header {
	background: var(--blue);
	color: var(--white);
	padding: 1.5rem;
	text-align: center;
}

.donate-card__header h2 {
	font-size: .8rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.4;
}

.donate-card__body {
	padding: 1.5rem;
}

/* Frequency Toggle */
.frequency-toggle {
	display: flex;
	background: var(--gray-200);
	border-radius: 8px;
	padding: 4px;
	margin-bottom: 1.5rem;
}

.frequency-toggle__btn {
	flex: 1;
	padding: 0.75rem 1rem;
	border: none;
	background: transparent;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--black);
	cursor: pointer;
	transition: all 0.2s ease;
}

.frequency-toggle__btn:hover {
	background: rgba(200, 30, 50, 0.1);
}

.frequency-toggle__btn.active {
	background: var(--red);
	color: var(--white);
	box-shadow: 0 2px 8px rgba(200, 30, 50, 0.3);
}

/* Amount Grid */
.amount-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.amount-btn {
	padding: 0.85rem 0.5rem;
	border: 2px solid var(--gray-300);
	border-radius: 8px;
	background: var(--white);
	font-size: 1rem;
	font-weight: 600;
	color: var(--black);
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.amount-btn:hover {
	border-color: var(--red);
	background: rgba(200, 30, 50, 0.02);
}

.amount-btn.active {
	border-color: var(--red);
	background: var(--red);
	color: var(--white);
	box-shadow: 0 2px 8px rgba(200, 30, 50, 0.25);
}

/* Other Amount Input */
.other-amount-wrapper {
	margin-bottom: 1rem;
}

.other-amount-input {
	display: flex;
	align-items: center;
	border: 2px solid var(--gray-300);
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.other-amount-input:focus-within {
	border-color: var(--gold);
}

.other-amount-input.active {
	border-color: var(--red);
}

.other-amount-input__prefix {
	padding: 0.75rem 1rem;
	background: var(--gray-200);
	font-weight: 600;
	color: var(--gray-600);
}

.other-amount-input__field {
	flex: 1;
	padding: 0.75rem;
	border: none;
	font-size: 1rem;
	outline: none;
	min-width: 0;
}

.other-amount-input__field::placeholder {
	color: #999;
}

.other-amount-error {
	color: var(--red);
	font-size: 0.8rem;
	margin-top: 0.25rem;
	display: none;
}

.other-amount-error.show {
	display: block;
}

/* Fee Checkbox */
.fee-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem;
	background: var(--gray-100);
	border-radius: 8px;
	margin-bottom: 1rem;
	cursor: pointer;
}

.fee-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--gold);
	cursor: pointer;
}

.fee-checkbox__label {
	font-size: 0.9rem;
	color: var(--black);
}

/* Total Display */
.total-display {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	margin-bottom: 1rem;
	border-top: 1px solid var(--gray-200);
	border-bottom: 1px solid var(--gray-200);
}

.total-display__label {
	font-size: 1rem;
	color: var(--gray-600);
}

.total-display__amount {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--gold);
}

/* Dedicate Gift */
.dedicate-gift {
	margin-bottom: 1.5rem;
}

.dedicate-gift__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
}

.dedicate-gift__checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--gold);
}

.dedicate-gift__checkbox span {
	font-size: 0.9rem;
}

.dedicate-gift__info {
	margin-top: 0.75rem;
	padding: 1rem;
	background: var(--gray-100);
	border-radius: 8px;
	font-size: 0.85rem;
	color: var(--gray-600);
	display: none;
}

.dedicate-gift__info.show {
	display: block;
}

/* CTA Button */
.donate-cta {
	width: 100%;
	padding: 1rem;
	background: var(--black);
	color: var(--white);
	border: none;
	border-radius: 8px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: 1rem;
}

.donate-cta:hover:not(:disabled) {
	background: #333;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.donate-cta:active:not(:disabled) {
	transform: translateY(0);
}

.donate-cta:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Security Note */
.security-note {
	text-align: center;
	font-size: 0.85rem;
	color: var(--gray-600);
}

.security-note svg {
	width: 14px;
	height: 14px;
	margin-right: 0.25rem;
	vertical-align: middle;
}

/* ============================================
   iATS Container - Styling (no HTML changes!)
   ============================================ */
#iatspb-host {
	margin-top: 1.5rem;
	border-top: 1px solid var(--gray-200);
	padding-top: 1.5rem;
}

.iats-loading {
	text-align: center;
	padding: 2rem;
	color: var(--gray-600);
}

.iats-loading__spinner {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid var(--gray-200);
	border-top-color: var(--gold);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 0.5rem;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Hide iATS sections we control via custom UI */
#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_PaymentFrequencyDiv,
#iatspb-host #IATS_PaymentBoxDiv #IATS_AmountSectionDiv,
#iatspb-host #IATS_PaymentBoxDiv .IATS_EventTitle,
#iatspb-host #IATS_PaymentBoxDiv .IATS_EventDescription,
#iatspb-host #IATS_PaymentBoxDiv .IATS_HeaderDiv,
#iatspb-host #IATS_PaymentBoxDiv .IATS_FooterDiv,
#iatspb-host #IATS_PaymentBoxDiv .IATS_SocialMediaDiv,
#iatspb-host #IATS_PaymentBoxDiv span.IATS_Action,
#iatspb-host #IATS_PaymentBoxDiv .IATS_SecureDataDiv,
#iatspb-host #IATS_PaymentBoxDiv .IATS_ProcessingDiv,
#iatspb-host #IATS_PaymentBoxDiv #IATS_ProcessingDiv,
#iatspb-host #IATS_PaymentBoxDiv .IATS_Processing,
#iatspb-host #IATS_PaymentBoxDiv #IATS_Processing,
#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_ConnectMessage {
	display: none !important;
}

/* Hide dedicate gift fields — shown only when checkbox is checked */
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item2,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item3,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item4,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item5,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item6,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item7,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item8,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item9 {
	display: none !important;
}

/* Show dedicate gift fields when checkbox is active */
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item2.dedicate-visible,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item3.dedicate-visible,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item4.dedicate-visible,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item5.dedicate-visible,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item6.dedicate-visible,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item7.dedicate-visible,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item8.dedicate-visible,
#iatspb-host #IATS_PaymentBoxDiv #IATS_PaymentItemDiv_Item9.dedicate-visible {
	display: inline-block !important;
	vertical-align: top;
}

/* Style the visible iATS form */
#iatspb-host #IATS_PaymentBoxDiv {
	width: 100% !important;
	max-width: 100% !important;
	border: 0;
	padding: 0;
	background: transparent;
	font-family: 'Poppins', sans-serif;
}

#iatspb-host #IATS_PaymentBoxDiv * {
	font-family: 'Poppins', sans-serif;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_InnerDiv {
	padding: 0;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_ContentDiv {
	padding: 0;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentDiv {
	padding: 0;
	margin: 0 !important;
	box-shadow: none;
	background: transparent;
	max-width: 100%;
	float: none;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentSectionTitle {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentSectionNote {
	font-size: 0.85rem;
	color: var(--gray-600);
	margin-bottom: 1rem;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentItemDiv {
	margin-bottom: 0.75rem;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentLabelOnTop {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 0.35rem;
	color: #333;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentLabelOnTop.IATS_InputRequired {
	font-weight: 600;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentLongItem {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 0.35rem;
	color: #333;
}

#iatspb-host #IATS_PaymentBoxDiv input.IATS_PaymentInputField,
#iatspb-host #IATS_PaymentBoxDiv select.IATS_PaymentInputField,
#iatspb-host #IATS_PaymentBoxDiv textarea.IATS_PaymentInputField,
#iatspb-host #IATS_PaymentBoxDiv .IATS_AccountNumberField,
#iatspb-host #IATS_PaymentBoxDiv .IATS_ExpiryMonthField,
#iatspb-host #IATS_PaymentBoxDiv .IATS_ExpiryYearField,
#iatspb-host #IATS_PaymentBoxDiv .IATS_CVV2Field,
#iatspb-host #IATS_PaymentBoxDiv .IATS_ACHInput,
#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentDateInputField,
#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentReoccurringInputField {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--gray-300);
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	transition: border-color 0.2s ease;
	box-shadow: none !important;
	box-sizing: border-box;
}

#iatspb-host #IATS_PaymentBoxDiv input:focus,
#iatspb-host #IATS_PaymentBoxDiv select:focus,
#iatspb-host #IATS_PaymentBoxDiv textarea:focus {
	border-color: var(--gold);
	outline: none;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_PaymentItemErrorMessage {
	display: none;
	color: var(--red);
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

/* Account type toggle (Credit Card / Bank) */
#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_AccountTypeDiv {
	display: flex !important;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_AccountTypeDiv .IATS_RadioPaymentButton {
	display: none;
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_AccountTypeDiv .IATS_RadioPaymentLabel {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 2px solid var(--gray-300);
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	text-align: center;
	transition: all 0.2s ease;
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_AccountTypeDiv .IATS_RadioPaymentLabel:hover {
	border-color: var(--gold);
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_AccountTypeDiv .IATS_RadioPaymentButton:checked + .IATS_RadioPaymentLabel {
	border-color: var(--gold);
	background: rgba(226, 172, 66, 0.1);
}

/* Credit Card / Debit sections */
#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_CreditCardDiv,
#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_DebitDiv {
	background: var(--gray-100);
	padding: 1rem;
	border-radius: 8px;
	margin-top: 1rem;
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_ExpiryDateDiv select {
	width: auto;
	display: inline-block;
	margin-right: 0.5rem;
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_CVV2Div input {
	max-width: 100px;
	display: inline-block;
}

/* Recurring settings */
#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_ReoccurringSettingDiv {
	background: rgba(226, 172, 66, 0.05);
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	border-left: 3px solid var(--gold);
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_ReoccurringDiv {
	padding: 0;
	margin: 0;
	box-shadow: none;
}

/* reCAPTCHA */
#iatspb-host #IATS_PaymentBoxDiv #IATS_CAPTCHADiv {
	padding: 1rem 0;
	display: flex;
	justify-content: center;
	clear: both;
}

/* Keep CAPTCHA visible, hide only native iATS action buttons */
#iatspb-host #IATS_PaymentBoxDiv #IATS_ProcessAction_Button,
#iatspb-host #IATS_PaymentBoxDiv #IATS_BackAction_Button {
	/*display: none !important;*/
}

/* Error messages - hide by default, iATS will show when needed */
#iatspb-host #IATS_PaymentBoxDiv #IATS_ErrorMsgSectionDiv {
	display: none;
}

/* Show error section when iATS adds content or inline display style */
#iatspb-host #IATS_PaymentBoxDiv #IATS_ErrorMsgSectionDiv[style*="display: block"],
#iatspb-host #IATS_PaymentBoxDiv #IATS_ErrorMsgSectionDiv[style*="display:block"],
#iatspb-host #IATS_PaymentBoxDiv #IATS_ErrorMsgSectionDiv.show-error {
	display: block !important;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_ErrorMsgDiv {
	padding: 1rem;
	background: rgba(200, 30, 50, 0.05);
	border-left: 3px solid var(--red);
	margin: 1rem 0;
	border-radius: 0 8px 8px 0;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_ErrorMessage {
	color: var(--red);
	font-size: 0.9rem;
}

/* Custom items (checkboxes) */
#iatspb-host #IATS_PaymentBoxDiv .IATS_SelectItemsSubDivOnTop {
	display: inline-flex;
	align-items: center;
	margin-right: 1rem;
	margin-bottom: 0.5rem;
}

#iatspb-host #IATS_PaymentBoxDiv .IATS_SelectItemsSubDivOnTop input[type="checkbox"] {
	width: auto;
	margin-right: 0.35rem;
	accent-color: var(--gold);
}

/* ============================================
   Right Column - Impact Story
   ============================================ */
.impact-section {
	padding-left: 2rem;
}

@media (max-width: 991px) {
	.impact-section {
		padding-left: 0;
	}
}

.impact-story {
	margin-bottom: 3rem;
}

.impact-story__image {
	width: 100%;
	height: 300px;
	background: var(--gray-200);
	border-radius: 12px;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gray-600);
	font-size: 0.9rem;
	position: relative;
	overflow: hidden;
}

.impact-story__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.impact-story__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--blue);
}

.impact-story__text {
	color: var(--gray-600);
	margin-bottom: 1rem;
}

/* Impact Tiers */
.impact-tiers {
	margin-top: 2rem;
}

.impact-tiers__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--black);
}

.impact-tiers__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (max-width: 576px) {
	.impact-tiers__grid {
		grid-template-columns: 1fr;
	}
}

.impact-tier {
	padding: 1.25rem;
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: 8px;
	transition: all 0.2s ease;
}

.impact-tier:hover {
	border-color: var(--gold);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.impact-tier__amount {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.impact-tier__description {
	font-size: 0.9rem;
	color: var(--gray-600);
	margin: 0;
}

/* ============================================
   Bottom Section - Other Ways to Give
   ============================================ */
.other-ways {
	padding: 4rem 0;
	background: var(--white);
	margin-top: 3rem;
}

.other-ways__title {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 2rem;
	color: var(--black);
}

.other-ways__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 768px) {
	.other-ways__grid {
		grid-template-columns: 1fr;
	}
}

.way-card {
	padding: 1.5rem;
	background: var(--gray-100);
	border-radius: 12px;
	text-align: center;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
}

.way-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.way-card__icon {
	width: 48px;
	height: 48px;
	background: var(--gold);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.way-card__icon svg {
	width: 24px;
	height: 24px;
	fill: var(--white);
}

.way-card__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--black);
}

.way-card__description {
	font-size: 0.9rem;
	color: var(--gray-600);
	margin-bottom: 1rem;
}

.way-card__contact {
	font-size: .9rem;
	margin-top: auto;
}

.way-card__link {
	display: inline-block;
	color: var(--blue);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9rem;
}

.way-card__link:hover {
	text-decoration: underline;
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_ExpiryDateDiv {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 1rem;
	margin: 0;
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_ExpiryDateDiv *:nth-child(1) {
	flex: 0 0 100%;
}

#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_ExpiryDateDiv > *:nth-child(2),
#iatspb-host #IATS_PaymentBoxDiv #IATS_Payment_ExpiryDateDiv > *:nth-child(3) {
	flex: 0 0 calc(50% - .5rem);
	max-width: calc(50% - .5rem);
	margin: 0;
}
