
/* ==========================================
   TN DONATION MODAL - GREEN & PINK THEME
   Primary: #1f6b12
   Accent:  #d60052
   ========================================== */

/* 1. HAI NUT CHINH */
.tnd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
}

.tnd-btn {
    border-radius: 30px !important;
    min-height: 52px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: transform .3s ease,
                background .3s ease,
                box-shadow .3s ease;
}

/* Nút Xuất sao kê */
.tnd-statement-btn {
    background: #fff !important;
    color: #d60052 !important;
    border: 1.5px solid #d60052 !important;
    animation: tnd-pink-glow 3s ease-in-out infinite;
}

/* Nút Ủng hộ */
.tnd-donate-btn,
.tnd-orange {
    background: #1f6b12 !important;
    color: #fff !important;
    border: 1.5px solid #1f6b12 !important;
    animation: tnd-green-glow 3s ease-in-out infinite;
}

/* Hiệu ứng hover */
.tnd-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.tnd-statement-btn:hover {
    background: #d60052 !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(214, 0, 82, .22);
}

.tnd-donate-btn:hover {
    background: #18560e !important;
    box-shadow: 0 10px 25px rgba(31, 107, 18, .3);
}

/* Nháy bóng nhẹ - màu xanh */
@keyframes tnd-green-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(31,107,18,.16);
    }
    50% {
        box-shadow: 0 5px 24px rgba(31,107,18,.36);
    }
}

/* Nháy bóng nhẹ - màu hồng */
@keyframes tnd-pink-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(214,0,82,.10);
    }
    50% {
        box-shadow: 0 5px 22px rgba(214,0,82,.28);
    }
}

/* 2. OVERLAY & POPUP */
.tnd-note {
    font-size: 13px;
    color: #777;
}

.tnd-overlay[hidden] {
    display: none !important;
}

.tnd-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.tnd-dialog {
    background: #fff;
    position: relative;
    border-radius: 20px;
    max-width: 1050px;
    width: 100%;
    max-height: 92vh;
    overflow: auto;
    box-shadow: 0 25px 90px rgba(0,0,0,.25);
    isolation: isolate;
}

.tnd-close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 14px;
    border: 0 !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 32px !important;
    padding: 0 10px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
}

.tnd-close:hover {
    color: #d60052 !important;
}

/* 3. POPUP SAO KE */
.tnd-small {
    max-width: 570px;
    text-align: center;
    margin: auto;
    padding: 30px 32px 24px;
}

.tnd-small h2 {
    font-size: 25px;
    margin-bottom: 20px;
}

.tnd-symbol {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    border-radius: 100%;
    background: #fce7ef;
    color: #d60052;
    font-size: 56px;
    margin: 16px auto 28px;
}

.tnd-small p {
    font-size: 16px;
}

.tnd-disclaimer,
.tnd-hint {
    font-size: 12px !important;
    color: #777;
}

.tnd-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #eee;
    margin-top: 22px;
    padding-top: 20px;
}

.tnd-footer button,
.tnd-footer a {
    padding: 10px 24px;
    border-radius: 10px;
    text-transform: none;
    text-decoration: none;
    font-size: 15px;
    margin: 0;
    transition: all .25s ease;
}

.tnd-outline {
    background: #fff !important;
    border: 1px solid #d60052 !important;
    color: #d60052 !important;
}

.tnd-outline:hover {
    background: #fff1f6 !important;
}

/* 4. POPUP UNG HO */
.tnd-donate {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.tnd-form {
    padding: 28px 30px;
}

/* Khu vực QR xanh lá sang */
.tnd-qr-side {
    background: linear-gradient(
        145deg,
        #1f6b12 0%,
        #287e1a 55%,
        #15500c 100%
    );
    color: #fff;
    padding: 30px;
    text-align: center;
}

.tnd-qr-side h2 {
    color: #fff;
}

.tnd-qr-box {
    background: #fff;
    border-radius: 18px;
    max-width: 350px;
    min-height: 300px;
    margin: 25px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #666;
    box-shadow: 0 12px 35px rgba(0,0,0,.14);
}

.tnd-qr-box img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.tnd-qr-placeholder {
    font-size: 15px;
}

.tnd-bank-info {
    text-align: left;
    max-width: 360px;
    margin: auto;
    overflow-wrap: anywhere;
}

.tnd-bank-info p {
    margin-bottom: 7px;
    color: #fff;
}

/* 5. FORM NHAP THONG TIN */
.tnd-form h2,
.tnd-form h3 {
    margin-bottom: 10px;
}

.tnd-form label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

.tnd-form label em {
    color: #d60052;
}

.tnd-form input:not([type=checkbox]),
.tnd-form textarea {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 7px 16px;
    width: 100%;
    margin-top: 5px;margin-bottom: 5px;
    box-shadow: none;
    font-size: 16px;
    transition: border-color .25s,
                box-shadow .25s;
}

.tnd-form input:focus,
.tnd-form textarea:focus {
    border-color: #1f6b12 !important;
    box-shadow: 0 0 0 3px rgba(31,107,18,.10) !important;
    outline: none;
}

.tnd-money {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 12px;
    margin-top: 9px;
    padding-right: 18px;
}

.tnd-money input {
    border: 0 !important;
    margin: 0 !important;
    font-weight: 700;
}

/* 6. CAC MUC TIEN UNG HO */
.tnd-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tnd-presets button {
    background: #f7f7f7;
    color: #333;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 13px;
    margin: 0;
    min-height: 0;
    line-height: 1.4;
    transition: all .25s ease;
}

.tnd-presets button:hover {
    background: #e8f4e5;
    color: #1f6b12;
}

.tnd-presets button.active {
    background: #d60052;
    color: #fff;
    box-shadow: 0 4px 12px rgba(214,0,82,.22);
}

/* 7. CHECKBOX & SUBMIT */
.tnd-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.tnd-check input {
    margin: 0;
}

.tnd-submit {
    width: 100%;
    border-radius: 12px;
    background: #1f6b12;
    color: #fff;
    font-size: 17px;
    text-transform: none;
    box-shadow: 0 5px 18px rgba(31,107,18,.20);
    transition: all .3s ease;
}

.tnd-submit:hover {
    background: #18560e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31,107,18,.30);
}

.tnd-result {
    color: #1f6b12;
    font-size: 13px;
    margin: 12px 0;
}

.tnd-warning {
    color: #8b0035 !important;
    background: #fff0f5;
    padding: 10px;
    border-radius: 8px;
}

.tnd-locked {
    overflow: hidden;
}

/* 8. GIU INPUT HOAT DONG */
.tnd-overlay .tnd-form textarea,
.tnd-overlay .tnd-form input {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    opacity: 1 !important;
}

.tnd-overlay .tnd-form textarea {
    position: relative;
    z-index: 1;
    resize: vertical;
    min-height: 110px;
    cursor: text;
}

/* 9. RESPONSIVE */
@media (max-width: 720px) {
    .tnd-donate {
        grid-template-columns: 1fr;
    }

    .tnd-form,
    .tnd-qr-side {
        padding: 24px 18px;
    }

    .tnd-small {
        padding: 30px 20px;
    }

    .tnd-actions {
        gap: 8px;
    }

    .tnd-btn {
        font-size: 15px !important;
    }
}

/* Hạn chế chuyển động khi cần */
@media (prefers-reduced-motion: reduce) {
    .tnd-btn {
        animation: none !important;
        transition: none !important;
    }
}

.tnd-form #tnd-project-title{background:#eff7f0!important;color:#15562a!important;font-weight:700;cursor:default;border:1px solid #cde4d0!important}

/* SePay sandbox disclosure */
.tnd-test-banner{background:#fff3d6;color:#805500!important;border:1px solid #e9c777;border-radius:10px;padding:10px 12px;font-size:13px!important}
.tnd-test-paid{background:#e7f5e9;color:#135d25!important;border-radius:10px;padding:10px 12px;font-weight:700}
