/* APBF donate page. Everything is scoped to .apbf-donate so the theme is not affected. */
/* :not(#a#b#c) matches everything. It only makes these rules stronger than theme
   and Gravity Forms rules that use IDs, such as "#main h2". */
.apbf-donate:not(#a#b#c) {
	--green: #8bc53f;
	--dark-green: #30411f;
	--pale-green: #edf2e5;
	--ink: #434343;
	--muted: #666a62;
	--gray: #f4f4f4;
	--line: #dcdfd5;
	color: var(--ink);
	font-family: Montserrat, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	background: #fff;
}
.apbf-donate:not(#a#b#c) *, .apbf-donate:not(#a#b#c) *::before, .apbf-donate:not(#a#b#c) *::after { box-sizing: border-box; }
.apbf-donate:not(#a#b#c) :is(h1, h2, h3, p, ul, fieldset, legend) { margin: 0; padding: 0; border: 0; font-family: inherit; letter-spacing: 0; text-transform: none; }
.apbf-donate:not(#a#b#c) :is(h1, h2, h3) { color: inherit; font-weight: 700; line-height: 1.2; }
.apbf-donate:not(#a#b#c) fieldset { min-width: 0; }
.apbf-donate:not(#a#b#c) img { display: block; max-width: 100%; }
.apbf-donate:not(#a#b#c) .apbf-wrap { width: min(1320px, 100% - 40px); margin-inline: auto; }
.apbf-donate:not(#a#b#c) .apbf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hero */
.apbf-donate:not(#a#b#c) .apbf-hero { background: #272727; color: #fff; padding-top: 26px; }
.apbf-donate:not(#a#b#c) .apbf-hero__grid { display: grid; gap: 32px; }
.apbf-donate:not(#a#b#c) .apbf-hero__copy { display: flex; flex-direction: column; gap: 18px; }
.apbf-donate:not(#a#b#c) .apbf-hero__copy h1 { font-size: 25px; color: #fff; }
.apbf-donate:not(#a#b#c) .apbf-hero__copy p { font-size: 16px; color: #fff; }
.apbf-donate:not(#a#b#c) .apbf-hero__copy img { order: -1; width: 100%; height: auto; aspect-ratio: 561 / 327; object-fit: cover; }

/* Form */
.apbf-donate:not(#a#b#c) .apbf-form { background: #fff; color: var(--ink); margin: 0 -20px; padding: 32px 20px; scroll-margin-top: 90px; }
.apbf-donate:not(#a#b#c) .apbf-form__title { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; color: var(--ink); }
.apbf-donate:not(#a#b#c) .apbf-form__subtitle { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; color: var(--ink); }
.apbf-donate:not(#a#b#c) .apbf-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apbf-donate:not(#a#b#c) .apbf-option { position: relative; display: block; margin: 0; cursor: pointer; }
.apbf-donate:not(#a#b#c) .apbf-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.apbf-donate:not(#a#b#c) .apbf-option__box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 76px; padding: 12px 8px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.apbf-donate:not(#a#b#c) .apbf-option strong { font-size: 16px; line-height: 1.25; }
.apbf-donate:not(#a#b#c) .apbf-option small { font-size: 13px; line-height: 1.3; color: var(--muted); }
.apbf-donate:not(#a#b#c) .apbf-option--amount strong { font-size: 18px; color: var(--dark-green); }
.apbf-donate:not(#a#b#c) .apbf-option:hover .apbf-option__box { border-color: var(--dark-green); }
.apbf-donate:not(#a#b#c) .apbf-option--frequency input:checked + .apbf-option__box { background: var(--dark-green); border-color: var(--dark-green); color: #fff; }
.apbf-donate:not(#a#b#c) .apbf-option--frequency input:checked + .apbf-option__box small { color: #dfe6d5; }
.apbf-donate:not(#a#b#c) .apbf-option--frequency input:checked + .apbf-option__box strong::before { content: "✓ "; content: "✓ " / ""; }
.apbf-donate:not(#a#b#c) .apbf-option--amount input:checked + .apbf-option__box { background: var(--pale-green); border-color: var(--dark-green); box-shadow: inset 0 0 0 1px var(--dark-green); }
.apbf-donate:not(#a#b#c) .apbf-option--amount input:checked + .apbf-option__box strong::after { content: " ✓"; content: " ✓" / ""; }
.apbf-donate:not(#a#b#c) .apbf-option input:focus-visible + .apbf-option__box { outline: 3px solid #1b6ec2; outline-offset: 2px; }

/* Show only the panel for the chosen gift type. This works without JavaScript. */
.apbf-donate:not(#a#b#c) .apbf-form:has([name="apbf_frequency"][value="monthly"]:checked) .apbf-panel--once,
.apbf-donate:not(#a#b#c) .apbf-form:has([name="apbf_frequency"][value="once"]:checked) .apbf-panel--monthly { display: none; }

.apbf-donate:not(#a#b#c) .apbf-note { background: var(--gray); padding: 18px; margin: 18px 0; }
.apbf-donate:not(#a#b#c) .apbf-note strong { display: block; font-size: 16px; line-height: 1.35; }
.apbf-donate:not(#a#b#c) .apbf-note p { margin-top: 5px; font-size: 14.5px; color: var(--muted); }
.apbf-donate:not(#a#b#c) .apbf-summary strong { color: var(--dark-green); }
.apbf-donate:not(#a#b#c) .apbf-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.apbf-donate:not(#a#b#c) input.apbf-other { display: block; width: 100%; height: 56px; margin: 18px 0 0; padding: 0 16px; font: 400 16px/1.4 Montserrat, Arial, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.apbf-donate:not(#a#b#c) input.apbf-other::placeholder { color: var(--muted); opacity: 1; }
.apbf-donate:not(#a#b#c) input.apbf-other:focus { outline: 3px solid #1b6ec2; outline-offset: 1px; }

.apbf-donate:not(#a#b#c) .apbf-button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; font: 700 15px/1.2 Montserrat, Arial, sans-serif; color: #fff; text-decoration: none; background: var(--green); border: 0; border-radius: 3px; cursor: pointer; }
.apbf-donate:not(#a#b#c) .apbf-button--wide { width: 100%; min-height: 57px; }
.apbf-donate:not(#a#b#c) .apbf-button:hover { color: #fff; background: #79b02f; }
.apbf-donate:not(#a#b#c) .apbf-button:focus-visible { outline: 3px solid #1b6ec2; outline-offset: 2px; }
.apbf-donate:not(#a#b#c) .apbf-button:disabled { opacity: .6; cursor: wait; }
.apbf-donate:not(#a#b#c) .apbf-trust { margin-top: 18px; font-size: 13px; text-align: center; color: var(--muted); }

/* Sections */
.apbf-donate:not(#a#b#c) .apbf-section { padding: 40px 0; }
.apbf-donate:not(#a#b#c) .apbf-section--gray { background: var(--gray); }
.apbf-donate:not(#a#b#c) .apbf-section--green { background: var(--dark-green); color: #fff; padding: 64px 0; }
.apbf-donate:not(#a#b#c) .apbf-section h2 { font-size: 28px; }
.apbf-donate:not(#a#b#c) .apbf-section h2.apbf-h2--small { font-size: 20px; line-height: 1.4; }
.apbf-donate:not(#a#b#c) .apbf-eyebrow { margin-bottom: 20px; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.apbf-donate:not(#a#b#c) .apbf-section--green :is(.apbf-eyebrow, .apbf-lead) { color: #cfdcbf; }
.apbf-donate:not(#a#b#c) .apbf-lead { margin-top: 18px; font-size: 16px; color: var(--muted); }
.apbf-donate:not(#a#b#c) .apbf-cards { display: grid; gap: 12px; margin-top: 24px; }
.apbf-donate:not(#a#b#c) .apbf-card { padding: 20px 18px; background: #fff; }
.apbf-donate:not(#a#b#c) .apbf-card--gray { background: var(--gray); }
.apbf-donate:not(#a#b#c) .apbf-card h3 { margin-bottom: 8px; font-size: 18px; color: var(--dark-green); }
.apbf-donate:not(#a#b#c) .apbf-card p { font-size: 15.5px; color: var(--muted); }
.apbf-donate:not(#a#b#c) .apbf-card a { font-weight: 700; color: var(--dark-green); text-decoration: underline; }
.apbf-donate:not(#a#b#c) .apbf-logo { width: 190px; height: 70px; margin-bottom: 16px; object-fit: cover; mix-blend-mode: multiply; }
.apbf-donate:not(#a#b#c) .apbf-pack { display: grid; gap: 28px; }
.apbf-donate:not(#a#b#c) .apbf-checks { display: grid; gap: 22px; align-content: center; list-style: none; }
.apbf-donate:not(#a#b#c) .apbf-checks li { margin: 0; padding: 0; color: #fff; }
.apbf-donate:not(#a#b#c) .apbf-checks li::before { content: "✓"; content: "✓" / ""; margin-right: 10px; }
.apbf-donate:not(#a#b#c) .apbf-faq { display: grid; gap: 20px; }
.apbf-donate:not(#a#b#c) details { border-bottom: 1px solid var(--line); }
.apbf-donate:not(#a#b#c) summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 8px 22px 0; cursor: pointer; list-style: none; }
.apbf-donate:not(#a#b#c) summary::-webkit-details-marker { display: none; }
.apbf-donate:not(#a#b#c) summary::after { content: "+"; content: "+" / ""; font-size: 24px; font-weight: 700; line-height: 1; color: var(--dark-green); }
.apbf-donate:not(#a#b#c) details[open] summary::after { content: "–"; content: "–" / ""; }
.apbf-donate:not(#a#b#c) summary:focus-visible { outline: 3px solid #1b6ec2; outline-offset: 2px; }
.apbf-donate:not(#a#b#c) details p { padding: 0 40px 22px 0; color: var(--muted); }

/* Newsletter (Gravity Form 8) */
.apbf-donate:not(#a#b#c) .apbf-news { display: grid; gap: 26px; }
.apbf-donate:not(#a#b#c) .apbf-news__logo { width: 153px; height: auto; margin-bottom: 24px; }
.apbf-donate:not(#a#b#c) .apbf-news__form .gform_wrapper { max-width: none; margin: 0; }
.apbf-donate:not(#a#b#c) .apbf-news__form .gform_fields { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.apbf-donate:not(#a#b#c) .apbf-news__form .gfield { grid-column: auto; width: auto; margin: 0; padding: 0; }
.apbf-donate:not(#a#b#c) .apbf-news__form .gform_footer { margin: 16px 0; padding: 0; }
.apbf-donate:not(#a#b#c) .apbf-news__form :is(input[type="text"], input[type="email"]) { width: 100%; height: 56px; padding: 0 16px; font: 400 16px/1.4 Montserrat, Arial, sans-serif; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.apbf-donate:not(#a#b#c) .apbf-news__form .gform_button { width: 100%; min-height: 52px; margin: 0; font: 700 14px/1.2 Montserrat, Arial, sans-serif; letter-spacing: 1.5px; color: #000; text-transform: uppercase; background: transparent; border: 1px solid #222; border-radius: 3px; cursor: pointer; }
.apbf-donate:not(#a#b#c) .apbf-news__form .apbf-button { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }

@media (min-width: 700px) {
	.apbf-donate:not(#a#b#c) .apbf-cards--two, .apbf-donate:not(#a#b#c) .apbf-cards--four { grid-template-columns: 1fr 1fr; gap: 22px; }
	.apbf-donate:not(#a#b#c) .apbf-form { margin-inline: 0; margin-bottom: 40px; padding: 32px; }
}

@media (min-width: 1000px) {
	.apbf-donate:not(#a#b#c) .apbf-hero { padding: 70px 0; }
	.apbf-donate:not(#a#b#c) .apbf-hero__grid { grid-template-columns: minmax(0, 585fr) minmax(0, 647fr); gap: clamp(32px, 5.5vw, 88px); align-items: center; }
	.apbf-donate:not(#a#b#c) .apbf-hero__copy { gap: 26px; }
	.apbf-donate:not(#a#b#c) .apbf-hero__copy h1 { font-size: 49px; }
	.apbf-donate:not(#a#b#c) .apbf-hero__copy p { font-size: 18px; }
	.apbf-donate:not(#a#b#c) .apbf-hero__copy img { order: 0; aspect-ratio: 585 / 396; border-radius: 10px; }
	.apbf-donate:not(#a#b#c) .apbf-form { margin: 0; padding: 32px 30px 28px; }
	.apbf-donate:not(#a#b#c) .apbf-section { padding: 64px 0; }
	.apbf-donate:not(#a#b#c) .apbf-section h2 { font-size: 39px; }
	.apbf-donate:not(#a#b#c) .apbf-section h2.apbf-h2--small { font-size: 27px; }
	.apbf-donate:not(#a#b#c) .apbf-cards--four { grid-template-columns: repeat(4, 1fr); }
	.apbf-donate:not(#a#b#c) .apbf-card { padding: 28px 24px; }
	.apbf-donate:not(#a#b#c) .apbf-pack { grid-template-columns: 2fr 1fr; gap: 110px; }
	.apbf-donate:not(#a#b#c) .apbf-faq { grid-template-columns: 1fr 2fr; }
	.apbf-donate:not(#a#b#c) .apbf-news { grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
	.apbf-donate:not(#a#b#c) .apbf-news__form .gform_fields { grid-template-columns: 1fr 1fr; }
	/* Put the two buttons side by side. After sign-up the form is gone, so the button moves back below the message. */
	.apbf-donate:not(#a#b#c) .apbf-news__form .gform_footer { width: calc(50% - 8px); }
	.apbf-donate:not(#a#b#c) .apbf-news__form:has(.gform_footer) > .apbf-button { width: calc(50% - 8px); margin: -68px 0 0 auto; }
}
