/* Donation page */
.page-hero--donate { padding-bottom: clamp(120px, 14vw, 170px); }
.donate-section { padding-top: 0; margin-top: clamp(-120px, -10vw, -80px); }
.donate-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 32px; align-items: start; position: relative; }
@media (max-width: 960px) { .donate-layout { grid-template-columns: 1fr; } }

.donate-card, .summary-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.donate-card { padding: clamp(24px, 4vw, 44px); }
.donate-summary { position: sticky; top: 104px; }
@media (max-width: 960px) { .donate-summary { position: static; } }
.summary-card { padding: 28px; }

.d-step { border: 0; padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--line); min-width: 0; }
.d-step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.d-step__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0; }
.d-step__title .opt { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 400; }
.d-step__num { width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 1rem; flex: none; }

/* Visually hidden radio/checkbox inputs that stay keyboard-focusable */
.segmented input, .currency input, .amount input, .fund input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--purple-50); border-radius: 16px; padding: 6px; gap: 6px; }
.segmented label { position: relative; cursor: pointer; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 14px; border-radius: 12px; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--purple-800); transition: background .25s, color .25s, box-shadow .25s; text-align: center; }
.segmented input:checked + span { background: var(--purple); color: #fff; box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.segmented__tag { font-style: normal; font-family: var(--font-body); font-size: .7rem; letter-spacing: .04em; background: var(--green-700); color: #fff; padding: 3px 8px; border-radius: 999px; text-transform: none; }

.currency { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.currency__label { font-size: .9rem; color: var(--muted); margin-right: 4px; }
.currency label { position: relative; cursor: pointer; }
.currency label span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); transition: all .2s; }
.currency input:checked + span { border-color: var(--purple); background: var(--purple-50); color: var(--purple); }
.currency input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 600px) { .amounts { grid-template-columns: repeat(3, 1fr); } }
.amount { position: relative; cursor: pointer; }
.amount span { display: block; text-align: center; padding: 16px 6px; border-radius: 14px; border: 2px solid var(--line); font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s; }
.amount:hover span { border-color: var(--purple-500); transform: translateY(-2px); }
.amount input:checked + span { border-color: var(--purple); background: var(--purple); color: #fff; box-shadow: 0 10px 20px -10px rgba(92,39,109,.7); }
.amount input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.amount .amount__pop { display: inline-block; text-align: left; border: 0; font-family: var(--font-body); line-height: 1.5; position: absolute; top: -9px; right: -4px; background: var(--green-700); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; z-index: 1; }

.custom-amount { margin-top: 16px; }
.custom-amount label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 8px; }
.custom-amount__input { position: relative; }
.custom-amount__sym { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 1.2rem; color: var(--muted); pointer-events: none; }
.custom-amount input { width: 100%; font: inherit; font-size: 1.15rem; padding: 14px 16px 14px 52px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s; -moz-appearance: textfield; }
.custom-amount input::-webkit-outer-spin-button, .custom-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-amount input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(92,39,109,.15); }
.custom-amount input.is-active { border-color: var(--purple); }
.custom-amount .field-error { margin: 8px 0 0; }

.impact { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--green-100); color: var(--green-700); }
.impact svg { width: 26px; height: 26px; flex: none; }
.impact p { margin: 0; color: #2d4a20; font-weight: 500; }
.impact.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.02); } }

.funds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .funds { grid-template-columns: 1fr; } }
.fund { position: relative; cursor: pointer; }
.fund__box { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.fund__box::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; transition: border .2s, background .2s; }
.fund input:checked + .fund__box { border-color: var(--purple); background: var(--purple-50); }
.fund input:checked + .fund__box::before { border: 6px solid var(--purple); }
.fund input:focus-visible + .fund__box { outline: 3px solid var(--green); outline-offset: 2px; }
.fund strong { display: block; font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.08rem; line-height: 1.25; }
.fund small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 4px; }
.fund--wide { grid-column: 1 / -1; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 14px; font-size: .97rem; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--purple); margin: 3px 0 0; flex: none; }
.dedication { margin: 4px 0 8px; padding: 18px 18px 2px; background: var(--purple-50); border-radius: 14px; }
.d-step .field-row { margin-top: 8px; }

/* Summary */
.summary-card__head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.summary-card__head h2 { font-size: 1.5rem; margin: 0; }
.summary-card__head p { margin: 0; color: var(--green-700); font-weight: 600; font-size: .95rem; }
.summary-lines { margin: 18px 0; display: grid; gap: 10px; }
.summary-lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-total { padding-top: 14px; border-top: 1px solid var(--line); align-items: baseline; }
.summary-total dt { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.summary-total dd { font-family: var(--font-display); font-size: 2rem; color: var(--purple); font-weight: 600; }
.summary-dedication { font-size: .92rem; background: var(--purple-50); padding: 10px 14px; border-radius: 12px; color: var(--purple-800); }
.summary-progress { margin-bottom: 8px; }
.summary-progress:empty, .summary-progress .progress:empty { display: none; }
.paypal-slot { min-height: 50px; margin-top: 8px; }
.paypal-slot .loading { text-align: center; color: var(--muted); font-size: .92rem; padding: 14px 0; }
.paypal-setup { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; font-size: .93rem; }
.paypal-setup p { color: var(--muted); margin: 6px 0 14px; }
.trust { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .9rem; color: var(--muted); }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust svg { width: 18px; height: 18px; color: var(--green-700); flex: none; }
.pay-note { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.pay-note.is-error { color: #b3261e; font-size: .9rem; margin-top: 10px; }

/* Thank you */
.thanks { position: relative; overflow: hidden; text-align: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(40px, 7vw, 80px) 24px; border: 1px solid var(--line); }
.thanks:focus { outline: none; }
.thanks img { margin: 0 auto 18px; position: relative; }
.thanks .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.thanks__confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.thanks__confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }
.is-donated .donate-layout { display: none; }
.summary-charge { font-size: .88rem; }
.summary-charge dt { display: flex; flex-direction: column; line-height: 1.3; }
.summary-charge small { font-size: .78rem; }
.summary-charge dd { font-weight: 500; color: var(--muted); }

/* Centre the thank-you message under the heading */
.thanks .lead { margin-inline: auto; text-align: center; }

/* Zelle option (summary card) */
.zelle { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--purple-50); }
.zelle summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; }
.zelle summary::-webkit-details-marker { display: none; }
.zelle summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; }
.zelle[open] summary::after { transform: rotate(-135deg); }
.zelle summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.zelle summary strong { display: block; color: var(--ink); }
.zelle summary small { color: var(--muted); font-size: .85rem; }
.zelle__logo { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--purple); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.zelle__steps { margin: 0; padding: 0 16px 0 36px; display: grid; gap: 10px; font-size: .93rem; color: var(--text); }
.zelle__copy { display: flex; align-items: center; gap: 8px; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 10px; }
.zelle__copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--font-body); font-weight: 600; color: var(--purple-800); font-size: .92rem; }
.zelle__btn { flex: none; border: 0; border-radius: 8px; background: var(--purple); color: #fff; font: 600 .78rem var(--font-body); padding: 6px 10px; cursor: pointer; }
.zelle__btn:hover { background: var(--purple-700); }
.zelle__name { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.zelle__note { margin: 12px 16px 16px; font-size: .82rem; color: var(--muted); }
