/* ========================================
   DONATION PAGE STYLES
   ======================================== */

/* Header */
.page-header {
    padding: 5.5rem 0 4.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #00509e 50%, #003d82 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before,
.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.08) 0%, transparent 36%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 36%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.page-header::after {
    background: linear-gradient(120deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.5;
}

.page-header h1 {
    font-size: 2.7rem;
    font-weight: 800;
}

.page-header p {
    font-size: 1.05rem;
    max-width: 760px;
    margin: 0.5rem auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.header-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* River divider */
.river-divider {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    margin-top: -2px;
}

.river-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.river-path {
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 6px rgba(30, 144, 255, 0.35));
    stroke-dasharray: 18 10;
    animation: riverFlow 9s linear infinite;
}

.river-fill {
    opacity: 1;
}

@keyframes riverFlow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -400;
    }
}

/* Impact section */
.impact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #e8f0fa 0%, #f5f7fa 100%);
}

.section-head {
    margin-bottom: 2.5rem;
}

.section-subtitle {
    color: var(--color-text-light);
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 4px solid #1E90FF;
    height: 100%;
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.stat-label {
    color: var(--color-text-dark);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.stat-note {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.impact-panel {
    margin-top: 3rem;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.panel-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.panel-visual .big-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.panel-visual p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Donate main */
.donate-main {
    padding: 4rem 0;
    background: var(--gradient-light);
}

.donate-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.donate-impact h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}

.impact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.impact-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: #1E90FF;
}

.impact-number {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

.impact-text {
    color: var(--color-text-light);
    font-size: 0.96rem;
    line-height: 1.5;
}

.donation-story {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.donation-story h3 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text-dark);
}

.donation-story p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.donation-story ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.donation-story li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: 0.7rem;
}

.donation-story li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Form */
.donate-form-section {
    position: sticky;
    top: 100px;
}

.donation-form {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.donation-form h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1.8rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.form-control,
.form-check-input {
    border: 2px solid #e5ecf5;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 0.95rem;
    border: 2px solid #e5ecf5;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.amount-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.amount-btn.active {
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(30, 144, 255, 0.3);
}

.custom-amount {
    margin-top: 0.75rem;
}

.custom-amount label {
    margin-bottom: 0.35rem;
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

.input-group-text {
    background: var(--color-light-bg);
    border: 2px solid #e5ecf5;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-weight: 700;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.donation-type-options,
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-label {
    margin: 0;
    color: var(--color-text-dark);
    cursor: pointer;
}

.donation-summary {
    background: var(--color-light-bg);
    border-radius: 10px;
    padding: 1.3rem;
    margin: 1.6rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-light);
    margin-bottom: 0.55rem;
    font-weight: 600;
}

.summary-row.total {
    border-top: 2px solid #e5ecf5;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    color: var(--color-text-dark);
    font-weight: 800;
}

#totalAmount {
    color: var(--color-primary);
}

#donateBtn {
    padding: 1.05rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 24px rgba(30, 144, 255, 0.35);
    transition: all 0.25s ease;
}

#donateBtn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(30, 144, 255, 0.5);
}

#donateBtn:active {
    transform: translateY(0);
}

.trust-badges {
    margin-top: 1.2rem;
    text-align: center;
}

.trust-badges p {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin: 0;
}

/* Testimonials */
.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fa 100%);
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--color-primary);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--color-text-dark);
    line-height: 1.7;
    flex: 1;
}

.testimonial-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-footer .name {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.testimonial-footer .role {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin: 0;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #00509e 50%, #003d82 100%);
    padding: 4rem 0;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 45%), radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.4rem;
    font-weight: 800;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .donate-wrapper {
        grid-template-columns: 1fr;
    }

    .donate-form-section {
        position: static;
    }

    .impact-panel {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 4.5rem 0 3.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .impact-section {
        padding: 4rem 0;
    }

    .donate-main {
        padding: 3rem 0;
    }

    .donation-form {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .amount-buttons {
        grid-template-columns: 1fr;
    }

    .donation-form {
        padding: 1.25rem;
    }

    .impact-card {
        padding: 1.2rem;
    }
}