/* ==========================================================================
   UNICEF-STYLE HIGH-TRUST DONATION POPUP MODAL STYLES
   ========================================================================== */

.unicef-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.unicef-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.unicef-modal-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    max-width: 960px;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .unicef-modal-card {
    background: #111827;
    color: #f9fafb;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Close button */
.unicef-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unicef-modal-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: rotate(90deg);
}

/* Grid Layout: Left impact, Right engine */
.unicef-modal-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow-y: auto;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .unicef-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= LEFT COLUMN: IMPACT SHOWCASE ================= */
.unicef-col-impact {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .unicef-col-impact {
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.unicef-impact-media {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #000;
}

.unicef-impact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.6s ease;
}

.unicef-impact-media:hover .unicef-impact-img {
    transform: scale(1.04);
}

.unicef-media-badge {
    position: absolute;
    bottom: 14px;
    left: 16px;
    background: rgba(14, 116, 144, 0.95);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.unicef-impact-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.unicef-brand-emblem {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.emblem-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.emblem-name {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0284c7;
}

[data-theme="dark"] .emblem-name {
    color: #38bdf8;
}

.unicef-impact-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 10px 0;
}

[data-theme="dark"] .unicef-impact-title {
    color: #f1f5f9;
}

.unicef-impact-lead {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 8px 0;
}

[data-theme="dark"] .unicef-impact-lead {
    color: #cbd5e1;
}

.unicef-impact-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 18px 0;
}

[data-theme="dark"] .unicef-impact-desc {
    color: #94a3b8;
}

.unicef-impact-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
}

[data-theme="dark"] .unicef-impact-trust {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
}

[data-theme="dark"] .trust-item {
    color: #4ade80;
}

.unicef-impact-links {
    font-size: 11px;
    color: #94a3b8;
    margin-top: auto;
}

.unicef-impact-links a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.unicef-impact-links a:hover {
    text-decoration: underline;
}

.unicef-faq-drawer {
    margin-top: 10px;
    padding: 10px 12px;
    background: #e0f2fe;
    border-radius: 8px;
    font-size: 12px;
    color: #0369a1;
    line-height: 1.4;
}

[data-theme="dark"] .unicef-faq-drawer {
    background: rgba(2, 132, 199, 0.15);
    color: #7dd3fc;
}

/* ================= RIGHT COLUMN: INTERACTIVE ENGINE ================= */
.unicef-col-engine {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.unicef-secure-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.secure-badge {
    font-size: 15px;
}

/* Frequency switcher */
.unicef-freq-switch {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .unicef-freq-switch {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.freq-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .freq-btn {
    color: #94a3b8;
}

.freq-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

[data-theme="dark"] .freq-btn.active {
    background: #0284c7;
    color: #ffffff;
}

.freq-heart {
    color: #e11d48;
}

/* Amount presets grid */
.unicef-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.amount-btn {
    padding: 14px 10px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .amount-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.amount-btn:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

[data-theme="dark"] .amount-btn:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.amount-btn.active {
    border-color: #0284c7;
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.3);
}

[data-theme="dark"] .amount-btn.active {
    border-color: #38bdf8;
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
}

/* Custom amount */
.unicef-custom-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 14px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

[data-theme="dark"] .unicef-custom-amount-wrapper {
    background: #1e293b;
    border-color: #334155;
}

.unicef-custom-amount-wrapper:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.currency-prefix {
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
}

.currency-suffix {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.unicef-custom-amount-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    color: inherit;
    outline: none;
}

/* Dedicate checkbox */
.unicef-dedicate-box {
    margin-bottom: 20px;
}

.dedicate-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

[data-theme="dark"] .dedicate-label {
    color: #cbd5e1;
}

.dedicate-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #0284c7;
    cursor: pointer;
}

.dedication-expand {
    margin-top: 10px;
}

.dedication-expand input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    box-sizing: border-box;
    background: #ffffff;
    color: inherit;
}

[data-theme="dark"] .dedication-expand input {
    background: #1e293b;
    border-color: #334155;
}

/* Express checkout */
.unicef-express-checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-express-gpay {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.btn-express-gpay:hover {
    opacity: 0.9;
}

.btn-express-paypal {
    background: #ffc439;
    color: #003087;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.btn-express-paypal:hover {
    opacity: 0.9;
}

/* Primary Donate CTA */
.unicef-primary-donate-btn {
    width: 100%;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}

.unicef-primary-donate-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

.unicef-primary-donate-btn:active {
    transform: translateY(0);
}

/* Cards supported */
.unicef-cards-supported {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    color: #94a3b8;
    margin-top: 14px;
}

.unicef-cards-supported span:last-child {
    font-size: 11px;
    font-weight: 600;
}

/* ================= STEP 2: CHECKOUT SCREEN ================= */
.unicef-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.unicef-back-step-btn {
    background: none;
    border: none;
    color: #0284c7;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.step-summary-badge {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

[data-theme="dark"] .step-summary-badge {
    background: #1e293b;
    color: #f8fafc;
}

/* Method tabs */
.checkout-method-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.method-tab {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .method-tab {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.method-tab.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Donor form */
.donor-field-group {
    margin-bottom: 14px;
}

.donor-field-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
}

[data-theme="dark"] .donor-field-group label {
    color: #cbd5e1;
}

.donor-field-group .required {
    color: #ef4444;
}

.donor-field-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    background: #ffffff;
    color: inherit;
    transition: border-color 0.2s ease;
}

[data-theme="dark"] .donor-field-group input {
    background: #1e293b;
    border-color: #334155;
}

.donor-field-group input:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.donor-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-brand-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 16px;
}

.card-input-wrapper input {
    padding-left: 42px !important;
}

/* Method panes */
.paypal-info-card, .bank-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

[data-theme="dark"] .paypal-info-card, [data-theme="dark"] .bank-info-card {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.paypal-lg {
    font-size: 32px;
    color: #003087;
    margin-bottom: 8px;
    display: block;
}

.paypal-email-target {
    margin-top: 10px;
    padding: 8px 12px;
    background: #eff6ff;
    border-radius: 6px;
    color: #1d4ed8;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 12px;
}

[data-theme="dark"] .bank-detail-row {
    border-color: rgba(255, 255, 255, 0.08);
}

.unicef-submit-payment-btn {
    width: 100%;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    margin-top: 10px;
    transition: all 0.2s ease;
}

.unicef-submit-payment-btn:hover {
    background: #15803d;
}

/* ================= STEP 3: OFFICIAL TAX RECEIPT ================= */
.receipt-success-card {
    text-align: center;
    padding: 10px 0;
}

.success-checkmark-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.15);
}

.receipt-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

[data-theme="dark"] .receipt-title {
    color: #f8fafc;
}

.receipt-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.official-tax-receipt-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    margin-bottom: 18px;
}

[data-theme="dark"] .official-tax-receipt-box {
    background: #1e293b;
    border-color: #334155;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
}

[data-theme="dark"] .receipt-row {
    color: #cbd5e1;
}

.receipt-row .text-highlight {
    color: #0284c7;
    font-size: 15px;
}

.receipt-divider {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 12px 0;
}

.receipt-tax-notice {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: flex;
    gap: 8px;
}

.receipt-actions {
    display: flex;
    gap: 10px;
}

.btn-print-receipt {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

[data-theme="dark"] .btn-print-receipt {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.btn-finish-modal {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #0284c7;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Floating Quick Donate Badge */
.unicef-floating-donate-trigger {
    position: fixed;
    bottom: 26px;
    left: 26px;
    z-index: 99998;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.unicef-floating-donate-trigger:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.55);
}

@media (max-width: 768px) {
    .unicef-floating-donate-trigger {
        bottom: 20px;
        left: 16px;
        padding: 9px 16px;
        font-size: 12.5px;
        border-radius: 25px;
        box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
    }
}

@media (max-width: 480px) {
    .unicef-floating-donate-trigger {
        bottom: 18px;
        left: 12px;
        padding: 8px 13px;
        font-size: 11.5px;
        gap: 5px;
    }
    .unicef-floating-donate-trigger span {
        font-size: 11.5px;
    }
}

.floating-heart-icon {
    color: #f43f5e;
    animation: heartPulse 1.8s infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* Animations */
.animate-modal-pop {
    animation: unicefModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes unicefModalPop {
    0% { opacity: 0; transform: scale(0.92) translateY(12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}