.donation-page {
    width: 100%;
    padding: 54px max(16px, calc((100% - 1120px) / 2)) 76px;
    background: #fff;
}

.donation-hero {
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 28px 32px 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.donation-hero h1,
.donation-result h1 {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 4.7rem);
    line-height: 1;
    letter-spacing: 0;
}

.donation-hero h1 span {
    display: block;
    font-size: 0.72em;
    font-weight: 600;
}

.donation-hero__logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.donation-hero p,
.donation-info p,
.trust-panel p,
.privacy-note,
.donation-submit p,
.result-card p {
    color: var(--muted);
}

.donation-hero p {
    color: #292929;
    font-weight: 500;
}

.donation-hero .donation-hero__tagline {
    margin: 18px auto 24px;
    font-size: 0.88rem;
}

.donation-slider {
    position: relative;
    max-width: 620px;
    margin: 0 auto 22px;
}

.donation-slider__state {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.donation-slider__viewport {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.donation-slider__track {
    display: flex;
    transition: transform 420ms ease;
}

#kenya-slide-2:checked ~ .donation-slider__viewport .donation-slider__track {
    transform: translateX(-100%);
}

.donation-slider__slide {
    flex: 0 0 100%;
    min-width: 0;
    background: #fff;
}

.donation-slider__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.donation-slider__arrows {
    display: none;
}

#kenya-slide-1:checked ~ .donation-slider__arrows--first,
#kenya-slide-2:checked ~ .donation-slider__arrows--second {
    display: block;
}

.donation-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0 0 5px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    color: #111;
    cursor: pointer;
    place-items: center;
    font-size: 2.2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.donation-slider__arrow--prev { left: 14px; }
.donation-slider__arrow--next { right: 14px; }

.donation-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.donation-slider__dots label {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b8b8b8;
    cursor: pointer;
}

#kenya-slide-1:checked ~ .donation-slider__dots label[for="kenya-slide-1"],
#kenya-slide-2:checked ~ .donation-slider__dots label[for="kenya-slide-2"] {
    background: #111;
}

.donation-hero__thanks {
    margin-bottom: 0;
    font-weight: 800 !important;
}

.bank-accounts {
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f7f7;
}

.bank-accounts__heading h2,
.bank-accounts__heading p {
    margin: 0;
}

.bank-accounts__heading p {
    margin-top: 6px;
    color: var(--muted);
}

.bank-accounts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.bank-account {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.bank-account--swift {
    grid-column: 1 / -1;
}

.bank-account span {
    color: var(--muted);
    font-size: 0.84rem;
}

.bank-account strong {
    grid-column: 1;
    overflow-wrap: anywhere;
    letter-spacing: 0.02em;
}

.bank-account button {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.bank-account button:hover {
    background: #1f3431;
}

.bank-account button:focus-visible {
    outline: 3px solid rgba(31, 52, 49, 0.24);
    outline-offset: 2px;
}

.bank-accounts__status {
    min-height: 20px;
    margin: 10px 0 -6px;
    color: #1f6b46;
    font-size: 0.88rem;
    font-weight: 700;
}

.donation-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    gap: 24px;
    align-items: start;
}

.donation-form,
.donation-aside,
.donation-fields,
.donation-info {
    display: grid;
    gap: 18px;
}

.donation-card,
.trust-panel,
.donation-info,
.org-box,
.result-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.donation-card h2,
.donation-info h2,
.org-box h2 {
    margin: 0 0 14px;
    font-size: 1.24rem;
    font-weight: 600;
}

.amount-options,
.currency-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.currency-options {
    margin-bottom: 14px;
}

.amount-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amount-options legend,
.currency-options legend {
    margin-bottom: 10px;
    font-weight: 600;
}

.amount-options label,
.currency-options label {
    cursor: pointer;
}

.amount-options input,
.currency-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-options span,
.currency-options span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.amount-options input:checked + span,
.currency-options input:checked + span {
    background: #1f3431;
    border-color: #1f3431;
    color: #fff;
    box-shadow: 0 12px 30px rgba(31, 52, 49, 0.18);
}

.amount-options input:focus-visible + span,
.currency-options input:focus-visible + span,
.donation-button:focus-visible,
.secondary-link:focus-visible {
    outline: 3px solid rgba(31, 52, 49, 0.24);
    outline-offset: 2px;
}

.donation-fields {
    grid-template-columns: 1fr;
}

.donation-field,
.check-row {
    display: grid;
    gap: 7px;
}

.donation-field--wide {
    grid-column: auto;
}

.donation-field span {
    font-weight: 600;
}

.donation-field em {
    color: var(--muted);
    font-style: normal;
    font-weight: 400;
}

.donation-field input,
.donation-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--text);
    background: #fff;
    font: inherit;
    outline: 0;
}

.donation-field textarea {
    min-height: 132px;
    padding: 12px;
    resize: vertical;
}

.donation-field input:focus,
.donation-field textarea:focus {
    border-color: #1f3431;
    box-shadow: 0 0 0 4px rgba(31, 52, 49, 0.11);
}

.donation-field small,
.field-error {
    min-height: 18px;
    color: #b42318;
    font-size: 0.84rem;
}

.amount-help {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.check-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    margin-top: 12px;
    color: var(--text);
}

.check-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.check-row a {
    font-weight: 700;
    text-underline-offset: 3px;
}

.donation-submit {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.donation-submit p {
    margin: 0;
    color: #292929;
    font-weight: 500;
}

.donation-button {
    position: relative;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.donation-button:hover {
    background: #1f3431;
}

.donation-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: donation-spin 700ms linear infinite;
}

.donation-button.is-loading .button-loader {
    display: inline-block;
}

.donation-status {
    min-height: 22px;
    font-weight: 600;
}

.donation-status.is-error {
    color: #b42318;
}

.trust-grid {
    display: grid;
    gap: 10px;
}

.trust-grid span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 12px;
    background: #f7f7f7;
    border-radius: 8px;
    font-weight: 700;
}

.trust-grid i {
    font-size: 1.25rem;
}

.org-box dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.org-box div {
    display: grid;
    gap: 3px;
}

.org-box dt {
    color: var(--muted);
    font-size: 0.84rem;
}

.org-box dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.donation-result {
    padding: 70px 0;
}

.result-card {
    max-width: 760px;
}

.result-status {
    display: grid;
    gap: 6px;
    margin: 22px 0;
    padding: 16px;
    background: #f7f7f7;
    border-radius: 8px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

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

@media (max-width: 560px) {
    .donation-page {
        padding-top: 34px;
    }

    .donation-hero {
        padding: 24px 18px 26px;
    }

    .bank-accounts {
        padding: 20px 16px;
    }

    .bank-accounts__grid {
        grid-template-columns: 1fr;
    }

    .bank-account--swift {
        grid-column: auto;
    }

    .bank-account {
        grid-template-columns: minmax(0, 1fr);
    }

    .bank-account button {
        grid-column: 1;
        grid-row: auto;
        margin-top: 7px;
    }

    .donation-slider__arrow {
        width: 40px;
        height: 40px;
    }

    .donation-fields,
    .amount-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donation-fields {
        grid-template-columns: 1fr;
    }

    .donation-button {
        width: 100%;
        min-height: 58px;
    }
}
