/* ==========================================================
   INDEX PAGE STYLES (Donation form)
   Requires: common.css (loaded first)
   ========================================================== */

:root {
            --pm-navy: #0f2b5c;
            --pm-navy-light: #1e3a8a;
            --pm-red: #c53030;
            --pm-red-dark: #9b2c2c;
            --pm-gold: #b7791f;
            --bg-page: #f0f4f8;
            --bg-card: #ffffff;
            --border-color: #cbd5e1;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --success-color: #15803d;
            --danger-color: #b91c1c;
        }

        

        /* ── TOP GOVERNMENT HEADER ──────────────────────── */
        

        

        

        

        

        

        .header-nchl-badge img {
            height: 35px;
            width: auto;
            display: block;
        }

        /* ── MAIN CONTENT AREA ────────────────────────── */
        .main-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
        }

        .donation-card {
            background: var(--bg-card);
            max-width: 640px;
            width: 100%;
            border-radius: 16px;
            border: 1px solid var(--border-color);
            box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            animation: fadeIn 0.4s ease-out;
        }

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

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

        .card-header-banner {
            background: linear-gradient(135deg, #0f2b5c 0%, #1e3a8a 100%);
            color: white;
            padding: 24px;
            text-align: center;
            position: relative;
        }

        .card-header-banner h2 {
            font-size: 21px;
            font-weight: 800;
            letter-spacing: -0.01em;
            margin-bottom: 4px;
        }

        .card-header-banner p {
            font-size: 13px;
            color: #e2e8f0;
            line-height: 1.4;
        }

        .card-body {
            padding: 15px 28px 20px;
        }

        /* ── PAYMENT METHOD SELECTOR (TOP OF FORM) ─────── */
        .payment-method-selector-box {
            margin-bottom: 24px;
        }

        .form-section-title {
            font-size: 11px;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 10px;
            display: block;
        }

        .payment-method-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .method-tab-btn {
            position: relative;
            padding: 14px 10px 13px;
            border: 2px solid #cbd5e1;
            border-radius: 12px;
            background: #f8fafc;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            text-align: center;
        }

        .method-tab-btn:hover {
            border-color: var(--pm-navy);
            background: #ffffff;
            transform: translateY(-1px);
        }

        .method-tab-btn:active {
            transform: translateY(0);
        }

        .method-tab-btn.active {
            border-color: var(--pm-navy);
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.12);
        }

        .method-tab-btn.active::after {
            content: '\f058';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: -7px;
            right: -7px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--pm-navy);
            color: #fff;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
        }

        .method-tab-btn .tab-icon {
            font-size: 22px;
            color: var(--pm-navy);
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .method-tab-btn .tab-icon img {
            height: 22px;
            width: auto;
            display: block;
        }

        .method-tab-btn.active .tab-icon {
            color: var(--pm-red);
        }

        .method-tab-btn .tab-title {
            font-size: 12.5px;
            font-weight: 800;
            color: #0f172a;
            line-height: 1.25;
        }

        .method-tab-btn .tab-subtitle {
            font-size: 9.5px;
            font-weight: 600;
            color: #64748b;
            line-height: 1.3;
        }

        /* Views */
        .payment-option-view {
            display: none;
        }

        .payment-option-view.active {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

        /* ── CURRENCY SELECTOR ──────────────────────────── */
        .currency-toggle-box {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .currency-toggle-box .currency-inline-label {
            font-size: 11px;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .currency-toggle {
            display: flex;
            gap: 18px;
        }

        .currency-option {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13.5px;
            font-weight: 700;
            color: #64748b;
            cursor: pointer;
            user-select: none;
        }

        .currency-option.active {
            color: var(--pm-navy);
        }

        .currency-option input[type="radio"] {
            width: 15px;
            height: 15px;
            accent-color: var(--pm-navy);
            cursor: pointer;
            margin: 0;
        }

        /* ── CARD PAYMENT VIEW (AMOUNT ONLY) ──────────── */
        .amount-input-box {
            position: relative;
            margin-bottom: 12px;
        }

        .currency-tag {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            font-weight: 800;
            color: #64748b;
            pointer-events: none;
            transition: color 0.2s;
        }

        .amount-input-box:focus-within .currency-tag {
            color: var(--pm-navy);
        }

        #donation-amount {
            width: 100%;
            padding: 16px 16px 16px 64px;
            font-size: 26px;
            font-weight: 800;
            font-family: 'Inter', sans-serif;
            background: #f8fafc;
            border: 2px solid #cbd5e1;
            border-radius: 12px;
            color: #0f172a;
            outline: none;
            transition: all 0.2s ease;
        }

        #donation-amount:focus {
            border-color: var(--pm-navy);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(15, 43, 92, 0.12);
        }

        #donation-amount::placeholder {
            color: #94a3b8;
            font-weight: 500;
        }

        .error-message-box {
            font-size: 12px;
            color: var(--danger-color);
            margin-top: 6px;
            display: none;
            align-items: center;
            gap: 6px;
            font-weight: 600;
        }

        .error-message-box.visible {
            display: flex;
        }

        /* ── AMOUNT NOTE ─────────────────────────────────── */
        .amount-note {
            font-size: 11.5px;
            font-style: italic;
            color: #64748b;
            line-height: 1.5;
            margin: 8px 2px 16px;
            display: flex;
            align-items: flex-start;
            gap: 6px;
        }

        .amount-note i {
            font-style: normal;
            color: var(--pm-gold);
            margin-top: 1px;
            flex-shrink: 0;
        }

        /* Preset Buttons */
        .preset-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 22px;
        }

        .preset-pill {
            padding: 10px 4px;
            font-size: 13px;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            color: #334155;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
        }

        .preset-pill:hover {
            background: #e2e8f0;
            border-color: var(--pm-navy);
            color: var(--pm-navy);
        }

        .preset-pill.active {
            background: var(--pm-navy);
            border-color: var(--pm-navy);
            color: white;
            box-shadow: 0 2px 6px rgba(15, 43, 92, 0.25);
        }
		 
        .we-accept-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 14px;
            margin-bottom: 8px;
            padding: 0 2px;
        }
 
        .we-accept-title {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748b;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
 
        .we-accept-title i {
            color: var(--pm-navy);
            font-size: 13px;
        }
 
        .card-mode-info {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            gap: 2px;
            flex-wrap: wrap;
        }
 
        .card-mode-info .card-types {
            display: flex;
            align-items: center;
            gap: 10px;
        }
 
        .card-brand {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 2px 8px;
            height: 32px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
            transition: all 0.2s ease;
        }
 
        .card-brand:hover {
            border-color: #94a3b8;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        }
 
        .card-brand-logo {
            height: 20px;
            width: auto;
            max-width: 54px;
            object-fit: contain;
            display: block;
        }
 
        .card-brand-svg {
            display: block;
            height: 26px;
            width: auto;
        }
 
        .card-mode-info .badge-secure {
            font-size: 11.5px;
            font-weight: 700;
            color: #15803d;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #f0fdf4;
            padding: 5px 10px;
            border-radius: 6px;
            border: 1px solid #bbf7d0;
        }
 
        .card-mode-info {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .card-mode-info .card-types {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .card-brand-svg {
            display: block;
            height: 26px;
            width: auto;
            border-radius: 4px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
        }

        .card-mode-info .badge-secure {
            font-size: 11px;
            font-weight: 700;
            color: #15803d;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Donate CTA */
        .btn-proceed {
            width: 100%;
            padding: 16px;
            font-size: 16px;
            font-weight: 800;
            font-family: 'Inter', sans-serif;
            background: var(--pm-red);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
        }

        .btn-proceed:hover {
            background: var(--pm-red-dark);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(197, 48, 48, 0.4);
        }

        .btn-proceed:disabled {
            background: #94a3b8;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* ── STATIC NEPALQR VIEW (ZOOMED TO FIT) ──────── */
        .qr-display-box {
            background: #ffffff;
            border: 2px solid #cbd5e1;
            border-radius: 14px;
            padding: 20px 16px 16px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .qr-image-wrapper {
            background: #ffffff;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 10px;
            width: 100%;
            max-width: 480px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        }

        /* Side-by-side layout for multiple QR images within one view */
        .qr-image-row {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            justify-content: center;
            width: 100%;
        }

        .qr-image-row .qr-image-col {
            flex: 1 1 260px;
            max-width: 300px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .qr-image-row .qr-image-wrapper {
            max-width: 300px;
        }

        /* When there's only one QR image in the row, let it grow larger */
        .qr-image-row .qr-image-col:only-child {
            flex: 1 1 320px;
            max-width: 400px;
        }

        .qr-image-row .qr-image-col:only-child .qr-image-wrapper {
            max-width: 400px;
        }

        .qr-image-caption {
            margin-top: 8px;
            font-size: 11px;
            font-weight: 700;
            color: #475569;
            text-align: center;
        }

        .qr-image {
            width: 100%;
            max-width: 460px;
            height: auto;
            display: block;
            border-radius: 8px;
        }

        .qr-scan-tag {
            font-size: 13px;
            font-weight: 700;
            color: var(--pm-navy);
            margin-top: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
            background: #f1f5f9;
            padding: 8px 16px;
            border-radius: 20px;
            border: 1px solid #cbd5e1;
        }

        .qr-scan-tag i {
            color: var(--pm-red);
            font-size: 14px;
        }

        /* Official Footer */
        .gov-page-footer {
            text-align: center;
            padding: 20px;
            font-size: 11px;
            color: #64748b;
            border-top: 1px solid #e2e8f0;
            background: #ffffff;
            line-height: 1.6;
        }

        .gov-page-footer strong {
            color: #334155;
        }

        .gov-page-footer a {
            color: var(--pm-navy);
            font-weight: 600;
            text-decoration: underline;
        }

        .gov-page-footer a:hover {
            color: var(--pm-red);
        }

        #integration-status {
            text-align: center;
            padding: 12px 0 0;
            font-size: 12px;
            color: #64748b;
        }

        #integration-status.err {
            color: var(--danger-color);
            font-weight: 600;
        }

        #integration-status.warn {
            color: #d97706;
        }

        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

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

        @media (max-width: 600px) {
            .gov-header {
                padding: 10px 16px;
            }

            .gov-header-inner {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .gov-brand {
                gap: 10px;
            }

            .gov-emblem {
                height: 40px;
            }

            .gov-title-group h1 {
                font-size: 15px;
            }

            .header-nchl-badge {
                padding: 3px 8px;
                height: 30px;
            }

            .header-nchl-badge img {
                height: 18px;
            }

            .preset-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .card-body {
                padding: 16px;
            }

            #donation-amount {
                font-size: 20px;
                padding: 12px 12px 12px 50px;
            }

            .payment-method-tabs {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .method-tab-btn {
                padding: 12px 6px 11px;
            }

            .method-tab-btn .tab-title {
                font-size: 11.5px;
            }

            .method-tab-btn .tab-subtitle {
                display: none;
            }
        }
		.card-payment-note {
    width: 100%;
    box-sizing: border-box;

    margin-top: 14px;
    padding: 12px 14px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    font-size: 13px;
    line-height: 1.5;

    color: #475569;
}


/* =========================================================
   INDIVIDUAL NOTE
   ========================================================= */

.note-item {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    width: 100%;
}


/* Note icon */

.note-item > i {
    flex-shrink: 0;

    margin-top: 3px;

    font-size: 14px;
    line-height: 1;

    color: #64748b;
}


/* Note text */

.note-item > span {
    flex: 1;
    min-width: 0;

    text-align: justify;

    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* Note heading */

.note-item strong {
    color: #334155;
    font-weight: 600;
}


/* =========================================================
   SEPARATOR BETWEEN NOTES
   ========================================================= */

.note-item + .note-item {
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid #e2e8f0;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 768px) {

    .card-payment-note {
        font-size: 13px;
        padding: 11px 12px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .card-types {
        gap: 10px;
    }

    .card-brand-logo {
        width: 64px;
    }

    .card-brand-svg {
        width: 44px;
        height: 30px;
    }

    .badge-secure {
        font-size: 12px;
        margin-top: 8px;
    }

    .card-payment-note {
        margin-top: 12px;
        padding: 10px 11px;

        font-size: 12px;
        line-height: 1.5;

        border-radius: 7px;
    }

    /*
     * Justified text can create large spaces
     * on narrow mobile screens, so use left
     * alignment on mobile.
     */
    .note-item > span {
        text-align: left;
    }

    .note-item {
        gap: 7px;
    }

    .note-item > i {
        font-size: 13px;
    }

    .note-item + .note-item {
        margin-top: 9px;
        padding-top: 9px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .card-payment-note {
        padding: 9px 10px;
        font-size: 11.5px;
    }

    .card-brand-logo {
        width: 60px;
    }

    .card-brand-svg {
        width: 42px;
        height: 28px;
    }

}
/* amount in words css */
.amount-in-words {
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 6px;
    min-height: 16px;
}
