/* css/Views/Support/support-base.css */
/* =============================================================================
   DONATION SUPPORT PAGE - BASE STYLES
   Path: /css/views/donation/support-base.css
   
   Purpose: Layout, structure, grid definitions, spacing, keyframe animations
   Dependencies: 
   - /css/_shared/_typography.css (load first - provides font tokens)
   
   DO NOT include:
   - Colors, backgrounds, shadows (see support-theme.css)
   - Media queries (see support-responsive.css)
   ========================================================================== */

/* =============================================================================
   CSS CUSTOM PROPERTIES - Layout Tokens Only
   ========================================================================== */

:root {
    /* Border Radius */
    --radius-xs: 0.375rem; /* 6px */
    --radius-sm: 0.625rem; /* 10px */
    --radius-md: 0.875rem; /* 14px */
    --radius-lg: 1.125rem; /* 18px */
    --radius-xl: 1.5rem; /* 24px */
    --radius-full: 9999px; /* Pill shape */
}

/* =============================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =============================================================================
   PAGE WRAPPER
   ========================================================================== */

.donation-wrapper {
    min-height: 100vh;
    font-family: var(--font-family);
    font-size: var(--font-base);
    line-height: var(--leading-relaxed);
    position: relative;
    z-index: 0;
    /* Brief hide to prevent FOUC – revealed by JS on DOMContentLoaded.
       CSS fallback animation reveals after 1s if JS fails. */
    opacity: 0;
    animation: donation-wrapper-reveal 0.4s ease forwards;
    animation-delay: 1s;
}

    .donation-wrapper.loaded {
        opacity: 1;
        animation: none;
    }

@keyframes donation-wrapper-reveal {
    to { opacity: 1; }
}

/* =============================================================================
   CONTAINER
   ========================================================================== */

.donation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

/* =============================================================================
   HEADER
   ========================================================================== */

.donation-header {
    position: relative;
    z-index: 10;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-xl);
}

/* Grid: logo | centered text | right controls */
.header-content {
    --logo-size: 150px;
    display: grid;
    grid-template-columns: var(--logo-size) 1fr var(--logo-size);
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-xl);
}

/* -----------------------------------------------------------------------------
   Header Left - Logo
   -------------------------------------------------------------------------- */

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.org-logo {
    width: var(--logo-size);
    height: var(--logo-size);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    padding: 0.375rem;
}

    .org-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* -----------------------------------------------------------------------------
   Header Center - Event Info
   -------------------------------------------------------------------------- */

.header-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.event-title {
    font-family: var(--font-family);
    font-size: var(--font-xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin: 0;
    letter-spacing: -0.01em;
}

.header-center .org-name {
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 500;
    line-height: var(--leading-normal);
    margin: 0;
}

/* -----------------------------------------------------------------------------
   Header Right - Donate Button
   -------------------------------------------------------------------------- */

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-donate-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: none;
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: var(--leading-normal);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

    .header-donate-btn:hover {
        transform: translateY(-1px);
    }

/* =============================================================================
   DONATION MARQUEE
   ========================================================================== */

.donation-marquee {
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    padding: 0.75rem 0;
    position: relative;
}

/* Fade edges */
.donation-marquee::before,
.donation-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    z-index: 2;
    pointer-events: none;
}

.donation-marquee::before {
    left: 0;
}

.donation-marquee::after {
    right: 0;
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marqueeScroll var(--marquee-duration, 90s) linear infinite;
}

.donation-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-donor {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: var(--leading-normal);
}

.marquee-amount {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 700;
    line-height: var(--leading-normal);
}

.marquee-message {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 400;
    font-style: italic;
    line-height: var(--leading-normal);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Single/few items: scroll from off-screen right to off-screen left */
@keyframes marqueeScrollSingle {
    0% {
        transform: translateX(var(--marquee-container-width, 100vw));
    }
    100% {
        transform: translateX(-100%);
    }
}

/* =============================================================================
   GRID LAYOUT
   ========================================================================== */

.donation-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

/* =============================================================================
   SIDEBAR
   ========================================================================== */

.donation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 1.5rem;
}

/* =============================================================================
   ADVOCATE CARD
   ========================================================================== */

.advocate-card {
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

    .advocate-card h2 {
        font-family: var(--font-family);
        font-size: var(--font-xl);
        font-weight: 700;
        line-height: var(--leading-tight);
        margin: 0 0 0.375rem 0;
        letter-spacing: -0.01em;
    }

.fundraising-for {
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 500;
    line-height: var(--leading-normal);
    margin: 0 0 1rem 0;
}

/* -----------------------------------------------------------------------------
   Advocate Photo
   -------------------------------------------------------------------------- */

.advocate-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    border: 3px solid transparent;
}

    .advocate-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .advocate-photo.placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.placeholder-initials {
    font-family: var(--font-family);
    font-size: var(--font-2xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
}

.placeholder-icon {
    font-size: 3rem;
    line-height: 1;
}

/* -----------------------------------------------------------------------------
   Beneficiaries
   -------------------------------------------------------------------------- */

.beneficiaries-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.beneficiary-chip {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: var(--leading-normal);
}

/* -----------------------------------------------------------------------------
   Advocate Message
   -------------------------------------------------------------------------- */

.advocate-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

    .advocate-message p {
        font-family: var(--font-family);
        font-size: var(--font-base);
        font-weight: 400;
        line-height: var(--leading-relaxed);
        margin: 0;
    }

/* =============================================================================
   PROGRESS CARD
   ========================================================================== */

.progress-card {
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
}

.progress-header {
    text-align: center;
    margin-bottom: 1rem;
}

.amount-raised {
    font-family: var(--font-family);
    font-size: var(--font-2xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    margin-bottom: 0.375rem;
    letter-spacing: -0.03em;
}

.goal-text {
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 600;
    line-height: var(--leading-normal);
    margin-bottom: 1.25rem;
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-stats {
    text-align: center;
}

.progress-percentage {
    font-family: var(--font-family);
    font-size: var(--font-xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.progress-label {
    font-family: var(--font-family);
    font-size: var(--font-xs);
    font-weight: 500;
    line-height: var(--leading-normal);
}

/* =============================================================================
   VERTICAL DONATION FEED (sidebar)
   ========================================================================== */

.donation-feed {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.donation-feed-header {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem 0.5rem;
}

.donation-feed-container {
    position: relative;
    max-height: 280px;
    overflow: hidden;
}

    /* Top fade */
    .donation-feed-container::before,
    .donation-feed-container::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 2rem;
        z-index: 2;
        pointer-events: none;
    }

    .donation-feed-container::before {
        top: 0;
    }

    .donation-feed-container::after {
        bottom: 0;
    }

.donation-feed-track {
    display: flex;
    flex-direction: column;
    animation: feedScrollUp var(--feed-duration, 45s) linear infinite;
}

    .donation-feed-container:hover .donation-feed-track {
        animation-play-state: paused;
    }

.donation-feed-item {
    padding: 0.625rem 1.25rem;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.feed-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.feed-donor {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: var(--leading-normal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.feed-amount {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 700;
    line-height: var(--leading-normal);
    flex-shrink: 0;
}

.feed-message {
    display: block;
    font-family: var(--font-family);
    font-size: var(--font-xs);
    font-style: italic;
    line-height: var(--leading-normal);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes feedScrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Static feed: items fit without scrolling — no animation, no fade gradients */
.donation-feed-static .donation-feed-container::before,
.donation-feed-static .donation-feed-container::after {
    display: none;
}

/* =============================================================================
   DONATION FORM CONTAINER
   ========================================================================== */

.donation-form-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.donation-form-card {
    padding: 2.5rem;
}

    .donation-form-card h3 {
        font-family: var(--font-family);
        font-size: var(--font-xl);
        font-weight: 700;
        line-height: var(--leading-tight);
        margin: 0 0 0.5rem 0;
        letter-spacing: -0.02em;
    }

.form-subtitle {
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 500;
    line-height: var(--leading-normal);
    margin: 0 0 2rem 0;
}

/* =============================================================================
   FORM SECTIONS
   ========================================================================== */

.form-section {
    margin-bottom: 2rem;
}

.section-label {
    display: block;
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 600;
    line-height: var(--leading-normal);
    margin-bottom: 0.75rem;
}

/* =============================================================================
   AMOUNT BUTTONS
   ========================================================================== */

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.amount-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.25s ease;
}

    .amount-btn .amount {
        font-size: var(--font-md);
        font-weight: 700;
        line-height: var(--leading-tight);
    }

    .amount-btn .amount-label {
        font-size: var(--font-sm);
        font-weight: 500;
        line-height: var(--leading-normal);
        margin-top: 0.25rem;
    }

    .amount-btn:hover,
    .amount-btn:focus {
        transform: translateY(-2px);
    }

    .amount-btn.active {
        transform: scale(1.02);
    }

/* =============================================================================
   CUSTOM AMOUNT INPUT
   ========================================================================== */

.custom-amount-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-family);
    font-size: var(--font-lg);
    font-weight: 700;
    line-height: var(--leading-tight);
    pointer-events: none;
}

.custom-amount-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-md);
    font-weight: 600;
    line-height: var(--leading-normal);
    transition: all 0.2s ease;
}

    .custom-amount-input:focus {
        outline: none;
    }

/* =============================================================================
   FORM INPUTS
   ========================================================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row,
.form-section > .form-group {
    margin-bottom: 1rem;
}

    .form-section > .form-group:last-child,
    .form-section > .form-row:last-child {
        margin-bottom: 0;
    }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
    transition: all 0.2s ease;
}

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
    }

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.field-error {
    font-family: var(--font-family);
    font-size: var(--font-xs);
    font-weight: 500;
    line-height: var(--leading-normal);
    margin-top: 0.375rem;
    display: none;
}

    .field-error:not(:empty) {
        display: block;
    }

/* =============================================================================
   PAYMENT METHOD TABS
   ========================================================================== */

.payment-method-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Shared base for all payment tabs — consistent card-like appearance */
.payment-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 1rem;
    border: 2px solid;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
}

/* Card tab icon */
.payment-tab svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* Card tab text */
.payment-tab span {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-left: 0.375rem;
}

/* Wallet tab images */
.payment-tab img {
    height: 33px;
    display: block;
    object-fit: contain;
}

/* Shared donate button container — uniform size for all wallet providers */
.apple-pay-sdk-container,
.google-pay-sdk-container {
    margin-top: 1rem;
    padding: 16px;
    text-align: center;
}

/* Google Pay SDK button — constrain fill-mode to match Apple Pay size */
.google-pay-sdk-container > div {
    width: 320px;
    max-width: 100%;
    height: 52px;
    margin: 0 auto;
}

/* Apple Pay SDK button — constrain to match Google Pay size */
.apple-pay-sdk-container apple-pay-button {
    --apple-pay-button-width: 320px;
    --apple-pay-button-height: 52px;
    --apple-pay-button-border-radius: 8px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* (Wallet tab base styles consolidated above with .payment-tab-gpay/apay/paypal/venmo) */

/* PayPal/Venmo SDK button containers */
.paypal-sdk-container {
    margin-top: 1rem;
    padding: 16px;
    text-align: center;
}

/* PayPal/Venmo SDK donate buttons — constrain to uniform size */
.wallet-sdk-button {
    width: 320px;
    max-width: 100%;
    height: 52px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================================================
   CARD PAYMENT FIELDS
   ========================================================================== */

.card-fields-container {
    margin-top: 1rem;
}

.card-field-group {
    margin-bottom: 1rem;
}

.card-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-field-row .card-field-group {
    margin-bottom: 0;
}

.card-field-label {
    display: block;
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: var(--leading-normal);
    margin-bottom: 0.5rem;
}

.card-input {
    width: 100%;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
    transition: all 0.2s ease;
}

    .card-input:focus {
        outline: none;
    }

/* =============================================================================
   COVER FEES SECTION
   ========================================================================== */

.cover-fees-section {
    margin: 1.5rem 0;
}

.cover-fees-card {
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.cover-fees-label {
    margin: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

    .cover-fees-label input[type="checkbox"] {
        margin-top: 0.25rem;
        width: 20px;
        height: 20px;
        cursor: pointer;
        flex-shrink: 0;
    }

.cover-fees-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

    .cover-fees-text strong {
        font-family: var(--font-family);
        font-size: var(--font-base);
        font-weight: 600;
        line-height: var(--leading-normal);
        display: block;
    }

.cover-fees-description {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 400;
    line-height: var(--leading-relaxed);
    display: block;
}

#feeDescription {
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Fee Breakdown
   -------------------------------------------------------------------------- */

.fee-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-family: var(--font-family);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
}

    .fee-row.fee-total {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        font-size: var(--font-md);
    }

/* =============================================================================
   CHECKBOX LABELS
   ========================================================================== */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-family);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
    margin-bottom: 0.75rem;
    cursor: pointer;
}

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

/* =============================================================================
   DONATE BUTTON
   ========================================================================== */

.btn-donate {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-md);
    font-weight: 700;
    line-height: var(--leading-normal);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

    .btn-donate:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .btn-donate:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .btn-donate svg {
        flex-shrink: 0;
    }

/* =============================================================================
   SECURE NOTICE
   ========================================================================== */

.secure-notice {
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-xs);
    font-weight: 500;
    line-height: var(--leading-normal);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .secure-notice svg {
        flex-shrink: 0;
    }

/* =============================================================================
   SECURE FOOTER (card logos, Authorize.Net branding)
   ========================================================================== */

.secure-footer {
    text-align: center;
    padding: 1.25rem 0 0.5rem;
    font-family: var(--font-family);
}

.secure-footer-title {
    font-size: var(--font-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.secure-footer-badges {
    font-size: var(--font-xs);
    margin-bottom: 0.75rem;
}

.card-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-logo {
    border-radius: 4px;
}

.powered-by {
    font-size: var(--font-xs);
}

/* =============================================================================
   PLATFORM BRANDING
   ========================================================================== */

.platform-branding {
    text-align: center;
    padding: 0.625rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    border-top-width: 1px;
    border-top-style: solid;
    margin-top: 1rem;
}

.platform-branding-text {
    font-family: var(--font-family);
    font-size: var(--font-xs);
}

.platform-branding-link {
    font-size: var(--font-xs);
    text-decoration: none;
}

    .platform-branding-link:hover {
        text-decoration: underline;
    }

.platform-branding-divider {
    font-size: var(--font-xs);
}

.platform-branding-logo {
    max-height: 18px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.platform-branding-name {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* =============================================================================
   SUCCESS MODAL
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .modal[style*="display: flex"] {
        opacity: 1;
    }

/* ─── Processing Overlay ─── */
.donation-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.donation-processing-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.processing-spinner-container {
    text-align: center;
}

.processing-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary, #2563eb);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

.processing-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.success-modal {
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal h2 {
    font-family: var(--font-family);
    font-size: var(--font-xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.success-modal > p {
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 400;
    line-height: var(--leading-relaxed);
    margin: 0 0 1.5rem 0;
}

.success-details {
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    gap: 1rem;
}

.detail-label {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 500;
    line-height: var(--leading-normal);
    white-space: nowrap;
    flex-shrink: 0;
}

.detail-value {
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: var(--leading-normal);
    text-align: right;
    flex: 1;
    word-wrap: break-word;
}

    .detail-value.transaction-id {
        font-family: 'Courier New', monospace;
        font-size: var(--font-xs);
        word-break: break-all;
    }

.success-note {
    font-family: var(--font-family);
    font-size: var(--font-xs);
    font-weight: 400;
    line-height: var(--leading-normal);
    margin: 0 0 1.5rem 0;
}

.btn-primary {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 600;
    line-height: var(--leading-normal);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-primary:hover {
        transform: translateY(-1px);
    }

/* =============================================================================
   ANIMATIONS
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* =============================================================================
   STAGGERED ENTRANCE ANIMATION
   Header slides from left, sidebar cards from left, form from right.
   Triggered when wrapper receives .loaded class (window.load).
   ========================================================================== */

.donation-wrapper.loaded .donation-header.fade-in {
    animation: cardFromLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.donation-wrapper.loaded .donation-marquee.fade-in {
    animation: cardFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.donation-wrapper.loaded .advocate-card.fade-in {
    animation: cardFromLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.donation-wrapper.loaded .progress-card.fade-in {
    animation: cardFromLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.donation-wrapper.loaded .donation-form-container.fade-in {
    animation: cardFromRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes cardFromLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cardFromRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
