/* Al-Ehsan Donation Portal — matches site green / gold theme */
.adp-wrap {
	--adp-primary: #0E5C4A;
	--adp-primary-dark: #0A4436;
	--adp-soft: #E3F0EB;
	--adp-accent: #E2A23B;
	--adp-bg: #F4F7F5;
	--adp-text: #16211D;
	--adp-muted: #5B6A64;
	--adp-border: #D6E0DB;
	--adp-error: #B3261E;
	--adp-radius: 20px;
	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	padding: 8px 16px 48px;
	background: var(--adp-bg);
	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--adp-text);
	-webkit-font-smoothing: antialiased;
}
.adp-wrap *,
.adp-wrap *::before,
.adp-wrap *::after {
	box-sizing: border-box;
}

.adp-card {
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
	border-radius: 0;
}

.adp-banner {
	background: var(--adp-primary);
	color: #fff;
	border-radius: var(--adp-radius) var(--adp-radius) 0 0;
	padding: 28px 24px 24px;
}
.adp-banner-urdu {
	font-family: "Noto Nastaliq Urdu", serif;
	font-size: 20px;
	line-height: 2;
	opacity: 0.9;
	margin: 0;
	color: #fff;
}
.adp-banner-title {
	margin: 4px 0 0;
	font-size: clamp(26px, 6vw, 34px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #fff !important;
}
.adp-banner-sub {
	margin: 10px 0 0;
	font-size: 15px;
	color: #CFE6DD !important;
}

.adp-form {
	background: #fff;
	border: 1px solid var(--adp-border);
	border-top: 0;
	border-radius: 0 0 var(--adp-radius) var(--adp-radius);
	padding: 8px 24px 24px;
	margin: 0;
}

.adp-section {
	margin: 0;
	padding: 20px 0 0;
	border: 0;
}
.adp-label {
	display: block;
	font-weight: 700;
	font-size: 17px;
	margin: 0 0 10px;
	padding: 0;
	color: var(--adp-text);
}
.adp-sublabel {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--adp-text);
	margin: 12px 0 5px;
}
.adp-hint {
	color: var(--adp-muted);
	font-size: 14px;
	margin: -6px 0 10px;
}

/* Category pills */
.adp-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.adp-pill {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	border: 1.5px solid var(--adp-border);
	border-radius: 999px;
	padding: 9px 15px;
	font-size: 15px;
	font-weight: 500;
	color: var(--adp-text);
	background: #fff;
	user-select: none;
	margin: 0;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.adp-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}
.adp-pill.is-active,
.adp-pill:has(input:checked) {
	background: var(--adp-primary);
	border-color: var(--adp-primary);
	color: #fff;
}

/* Amounts */
.adp-amounts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.adp-amount {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	border: 1.5px solid var(--adp-border);
	border-radius: 12px;
	padding: 12px 6px;
	background: #fff;
	min-height: 64px;
	margin: 0;
	transition: border-color 0.15s, background 0.15s;
}
.adp-amount input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}
.adp-amount.is-active,
.adp-amount:has(input:checked) {
	border-color: var(--adp-primary);
	background: var(--adp-soft);
	color: var(--adp-primary-dark);
}
.adp-amount-val {
	font-weight: 700;
	font-size: 17px;
	color: inherit;
}
.adp-amount.is-active .adp-amount-val,
.adp-amount:has(input:checked) .adp-amount-val {
	color: var(--adp-primary-dark);
}
.adp-amount-lbl {
	display: block;
	font-weight: 500;
	font-size: 12px;
	color: var(--adp-muted);
	margin-top: 2px;
}
.adp-amount.is-active .adp-amount-lbl,
.adp-amount:has(input:checked) .adp-amount-lbl {
	color: var(--adp-primary-dark);
}

.adp-input-prefix {
	position: relative;
	display: block;
}
.adp-input-prefix > span {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--adp-muted);
	font-weight: 600;
	z-index: 1;
	pointer-events: none;
	background: transparent;
	border: 0;
	padding: 0;
}
.adp-input-prefix input {
	width: 100%;
	font: inherit;
	font-size: 17px;
	padding: 12px 14px 12px 42px;
	border: 1.5px solid var(--adp-border);
	border-radius: 12px;
	background: #fff;
	color: var(--adp-text);
	outline: none;
}
.adp-input-prefix input:focus {
	border-color: var(--adp-primary);
	box-shadow: 0 0 0 3px var(--adp-soft);
}

.adp-check {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 14px;
	font-size: 15px;
	cursor: pointer;
}
.adp-check input {
	width: 20px;
	height: 20px;
	accent-color: var(--adp-primary);
	margin: 0;
}

.adp-fields {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 0 12px;
}
.adp-fields .adp-field {
	width: 100%;
}
.adp-fields .adp-field--half {
	width: calc(50% - 6px);
}
.adp-donation-id {
	font-weight: 700;
	color: var(--adp-primary);
	margin-top: 8px !important;
}
.adp-field {
	margin-top: 12px;
}
.adp-field label {
	display: block;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 5px;
	color: var(--adp-text);
}
.adp-field label span {
	font-weight: 400;
	color: var(--adp-muted);
}
.adp-field input {
	width: 100%;
	font: inherit;
	font-size: 17px;
	padding: 12px 14px;
	border: 1.5px solid var(--adp-border);
	border-radius: 12px;
	background: #fff;
	color: var(--adp-text);
	outline: none;
}
.adp-field input:focus {
	border-color: var(--adp-primary);
	box-shadow: 0 0 0 3px var(--adp-soft);
}

/* Payments */
.adp-payments {
	display: grid;
	gap: 8px;
}
.adp-pay {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 12px;
	cursor: pointer;
	border: 1.5px solid var(--adp-border);
	border-radius: 12px;
	padding: 13px 15px;
	background: #fff;
	margin: 0;
	position: relative;
	font-weight: 600;
}
.adp-pay input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}
.adp-pay.is-active,
.adp-pay:has(input:checked) {
	border-color: var(--adp-primary);
	background: var(--adp-soft);
}
.adp-pay-label {
	font-weight: 600;
	font-size: 15px;
}
.adp-pay-desc {
	font-weight: 400;
	color: var(--adp-muted);
	font-size: 13px;
}

.adp-bank-box {
	display: block;
	margin-top: 10px;
	border: 1px dashed var(--adp-border);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 14px;
	background: #fff;
}
/* CSS display:block was overriding the HTML hidden attribute */
.adp-bank-box[hidden] {
	display: none !important;
}
.adp-bank-box strong {
	display: block;
	margin-bottom: 8px;
	color: var(--adp-primary);
}
.adp-bank-box ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.adp-bank-box li {
	padding: 8px 0;
	border-bottom: 1px solid var(--adp-border);
	display: block;
}
.adp-bank-box li:last-of-type {
	border-bottom: 0;
}
.adp-bank-box li span {
	display: block;
	font-weight: 700;
	color: var(--adp-text);
	min-width: auto;
}
.adp-bank-note {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--adp-muted);
}

.adp-error {
	background: #fdecea;
	color: var(--adp-error);
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	font-size: 14px;
	margin: 16px 0 0;
}

.adp-submit {
	display: block;
	width: 100%;
	margin-top: 24px;
	font: inherit;
	font-size: 19px;
	font-weight: 800;
	color: #1E1503 !important;
	background: var(--adp-accent) !important;
	border: 0;
	border-radius: 14px;
	padding: 16px;
	cursor: pointer;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.3;
}
.adp-submit:hover {
	filter: brightness(1.05);
}
.adp-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}
.adp-submit-amt {
	font-weight: 800;
}
.adp-submit--outline {
	background: transparent !important;
	color: var(--adp-primary) !important;
	border: 1.5px solid var(--adp-border);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	padding: 9px 18px;
	width: auto;
	margin: 16px auto 0;
}

.adp-success {
	background: #fff;
	border: 1px solid var(--adp-border);
	border-top: 0;
	border-radius: 0 0 var(--adp-radius) var(--adp-radius);
	padding: 28px 24px;
	text-align: center;
}
.adp-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 0.75rem;
	border-radius: 50%;
	background: var(--adp-primary);
	color: #fff;
	font-size: 1.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.adp-success h3 {
	margin: 0 0 8px;
	font-size: 24px;
	color: var(--adp-text);
}
.adp-success p {
	margin: 6px 0;
	color: var(--adp-muted);
}
.adp-success-bank {
	text-align: left;
	margin-top: 1rem;
}

.adp-footer-note,
.adp-credit {
	text-align: center;
	color: var(--adp-muted);
	font-size: 13px;
	margin: 12px 0 0;
	padding: 0;
}
.adp-credit {
	margin-top: 8px;
	padding-bottom: 8px;
}
.adp-credit a {
	color: var(--adp-primary);
	font-weight: 700;
	text-decoration: none;
}
.adp-credit a:hover {
	text-decoration: underline;
}

/* Redirect overlay (same-page feel before Meezan) */
#adpPayOverlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 20, 16, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.adp-pay-sheet {
	background: #fff;
	border-radius: 20px;
	padding: 28px 24px;
	max-width: 400px;
	width: 100%;
	text-align: center;
	font-family: "Figtree", system-ui, sans-serif;
	color: #16211D;
}
.adp-pay-spinner {
	width: 44px;
	height: 44px;
	margin: 0 auto 14px;
	border: 4px solid #E3F0EB;
	border-top-color: #0E5C4A;
	border-radius: 50%;
	animation: adp-spin 1s linear infinite;
}
@keyframes adp-spin {
	to { transform: rotate(360deg); }
}
.adp-pay-sheet p {
	margin: 6px 0;
	font-weight: 600;
}
.adp-pay-hint {
	font-weight: 400 !important;
	font-size: 13px;
	color: #5B6A64;
}

@media (max-width: 420px) {
	.adp-amounts {
		grid-template-columns: 1fr;
	}
	.adp-wrap {
		padding: 8px 12px 32px;
	}
	.adp-banner,
	.adp-form,
	.adp-success {
		padding-left: 18px;
		padding-right: 18px;
	}
}
