/* ================================================
   Charity Page V3 — Figma-Exact & Interactive
   ================================================ */

:root {
    --cha-gold: #E8BA00;
    --cha-border: rgba(107, 114, 128, 0.12);
    --cha-text: #111827;
    --cha-muted: #6B7280;
    --cha-bg-soft: rgba(248, 248, 248, 0.4);
}

body,
.charity-wrapper,
.charity-wrapper * {
    font-family: 'Rubik', sans-serif;
}

.charity-wrapper {
    background: #FFFFFF;
    overflow: hidden;
    position: relative;
    padding: 150px 0 100px;
    /* Increased from 120px for navbar clear */
}

.container-90 {
    max-width: 90% !important;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   MAIN DONATION CARD (Frame 8694)
   ══════════════════════════════════════════════════ */
.main-donation-card {
    background: var(--cha-bg-soft);
    border: 1px solid var(--cha-border);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Vertically center content */
    min-height: 500px;
    /* Ensure enough height for illustration centering */
}

.charity-illustration {
    position: absolute;
    max-width: 402px;
    /* Figma Exact Width */
    width: 33%;
    /* Respond to card width */
    height: 85%;
    /* Contain vertically */
    object-fit: contain;
    /* Ensure no cut-off */
    pointer-events: none;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

html[dir="rtl"] .charity-illustration {
    right: 50px;
    left: auto;
}

html[dir="ltr"] .charity-illustration {
    left: 50px;
    right: auto;
}

.charity-header-group {
    text-align: center;
    max-width: 1034px;
    margin-bottom: 60px;
}

.charity-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 57px;
    color: var(--cha-gold);
    margin-bottom: 20px;
}

.charity-subtitle {
    font-size: 32px;
    font-weight: 300;
    line-height: 38px;
    color: var(--cha-muted);
}

/* Donation Form Group */
.donation-form-container {
    width: 345px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 2;
}

.token-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.token-label {
    font-size: 20px;
    font-weight: 400;
    color: var(--cha-text);
    text-align: center;
}

.token-input-wrapper {
    position: relative;
    width: 100%;
}

.token-input {
    width: 100%;
    height: 65px;
    background: #FCFBFB;
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 15px;
    padding: 0 20px;
    font-size: 18px;
    color: var(--cha-text);
    text-align: center;
}

.btn-charity-send {
    width: 100%;
    height: 60px;
    background: linear-gradient(178.83deg, #FFFFFF -36.69%, #E8BA00 99.01%);
    border: 1px solid var(--cha-border);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1), inset 4px 4px 15px rgba(232, 186, 0, 0.3);
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    color: var(--cha-text);
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-charity-send:hover {
    transform: translateY(-2px);
    box-shadow: 1px 6px 15px rgba(0, 0, 0, 0.15), inset 4px 4px 15px rgba(232, 186, 0, 0.4);
}

/* Divider Line */
.charity-divider {
    width: 100%;
    height: 1px;
    background: var(--cha-border);
    margin: 40px 0;
}

/* ══════════════════════════════════════════════════
   INFO CARDS (BOTTOM)
   ══════════════════════════════════════════════════ */
.charity-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--cha-bg-soft);
    border: 1px solid var(--cha-border);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 30px;
    min-height: 296px;
}

.info-card-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--cha-muted);
    margin-bottom: 30px;
}

.info-timeline {
    position: relative;
    padding-left: 30px;
    padding-right: 30px;
}

.info-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 10px;
    width: 1px;
    background: var(--cha-gold);
}

html[dir="rtl"] .info-timeline::before {
    right: 7px;
}

html[dir="ltr"] .info-timeline::before {
    left: 7px;
}

.timeline-bullet {
    position: relative;
    margin-bottom: 25px;
    padding-left: 10px;
    padding-right: 10px;
}

.timeline-bullet::before {
    content: '';
    position: absolute;
    top: 7px;
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 3px solid var(--cha-gold);
    border-radius: 50%;
}

html[dir="rtl"] .timeline-bullet::before {
    right: -31px;
}

html[dir="ltr"] .timeline-bullet::before {
    left: -31px;
}

.timeline-text {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--cha-muted);
}

.info-description-text {
    font-size: 22px;
    font-weight: 300;
    line-height: 28px;
    color: var(--cha-muted);
}

/* ══════════════════════════════════════════════════
   REUSABLE CONFIRMATION MODAL
   ══════════════════════════════════════════════════ */
.modal-charity-content {
    border-radius: 20px;
    border: 1px solid var(--cha-border);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
    overflow: hidden;
    padding: 40px;
}

.modal-charity-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #FFA500;
    font-size: 30px;
}

.modal-charity-title {
    font-size: 24px;
    font-weight: 400;
    color: #FFA500;
    text-align: center;
    margin-bottom: 15px;
}

.modal-charity-text {
    font-size: 18px;
    font-weight: 300;
    color: var(--cha-text);
    text-align: center;
    margin-bottom: 40px;
}

.modal-charity-footer {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-modal-action {
    width: 150px;
    height: 46px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid var(--cha-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-confirm {
    background: linear-gradient(180deg, #FFD700 0%, #E8BA00 100%);
    border: 1px solid #E8BA00;
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(232, 186, 0, 0.3);
}

.btn-confirm:hover {
    background: linear-gradient(180deg, #E8BA00 0%, #C9A200 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(232, 186, 0, 0.4);
}

.btn-cancel {
    background: #FFFFFF;
    border: 1px solid var(--cha-border);
    color: var(--cha-muted) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-cancel:hover {
    background: #F9FAFB;
    color: var(--cha-text) !important;
    transform: translateY(-1px);
}

/* Success Modal with Token */
.success-token-img {
    width: 250px;
    height: 250px;
    margin: -50px auto 20px;
    display: block;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .charity-illustration {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 991px) {
    .charity-info-grid {
        grid-template-columns: 1fr;
    }

    .charity-illustration {
        display: none;
    }

    .charity-title {
        font-size: 36px;
    }

    .charity-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .main-donation-card {
        padding: 40px 20px;
    }

    .donation-form-container {
        width: 100%;
    }
}