
/* UVVS Foundation - Professional Donation Page CSS */
:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #F59E0B;
    --accent-color: #10B981;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.donation-page {
    background-color: #F3F4F6;
    font-family: var(--font-body);
}

/* Hero Section with Glassmorphism */
.donation-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    color: white;
    padding: 8rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.donation-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 55%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.donation-hero h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.donation-hero p {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Trust Indicators - Floating Cards */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.trust-badge i {
    color: #93c5fd;
}

/* Donation Wrapper - Overlapping the Hero */
.donation-wrapper {
    margin-top: -6rem;
    position: relative;
    z-index: 10;
    padding-bottom: 6rem;
}

/* Card Styling - Premium Feel */
.donation-card, .bank-details-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.form-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    color: var(--primary-color);
}

/* Amount Grid - Premium Toggles */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-radio {
    display: none;
}

.amount-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.amount-label:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.amount-radio:checked + .amount-label {
    border-color: var(--primary-color);
    background: rgba(14, 165, 233, 0.06);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18);
}

.amount-radio:checked + .amount-label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    color: var(--primary-color);
}

/* Custom Amount Input */
.custom-amount-group {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 20px;
    top: 38px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.25rem;
}

.custom-amount-input {
    padding-left: 45px !important;
    height: 55px;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: #F8FAFC;
    transition: all 0.3s ease;
}

.custom-amount-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

/* Form Inputs */
.form-floating > .form-control {
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.form-floating > .form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

/* Payment panels (right side) */
.pay-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pay-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.copy-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.form-floating > label {
    color: var(--text-light);
}

/* Info Sidebar Styles */
.bank-details-card {
    background: #0F172A;
    color: white;
    border: none;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-label {
    color: #94A3B8;
    font-size: 0.9rem;
}

.bank-value {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    color: #F8FAFC;
}

/* Impact Showcase */
.impact-showcase {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: #F8FAFC;
    transition: transform 0.3s ease;
}

.impact-item:hover {
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.impact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .donation-hero h1 {
        font-size: 2.5rem;
    }
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .donation-wrapper {
        margin-top: -3rem;
    }
}

/* Donation Form Container */
.donation-wrapper {
    margin-top: -5rem;
    position: relative;
    z-index: 10;
    padding-bottom: 5rem;
}

.donation-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    color: var(--primary-color);
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.amount-radio {
    display: none;
}

.amount-label {
    display: block;
    text-align: center;
    padding: 1rem;
    background: #F1F5F9;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.amount-label:hover {
    background: #E2E8F0;
}

.amount-radio:checked + .amount-label {
    background: #FFF1F2;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.custom-amount-group {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-light);
}

.custom-amount-input {
    padding-left: 2.5rem !important;
}

/* Impact Items */
.impact-showcase {
    background: #FFF1F2;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.impact-item:last-child {
    margin-bottom: 0;
}

.impact-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Bank Details Table */
.bank-details-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: white;
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-label {
    color: #94A3B8;
    font-size: 0.9rem;
}

.bank-value {
    font-weight: 600;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .donation-hero {
        padding: 6rem 0 4rem;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .donation-hero h1 {
        font-size: 2.5rem;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-card {
        padding: 1.5rem;
    }
}

/* ===== Payment Sidebar (QR + Bank) - Professional UI ===== */
.donation-sidebar {
    position: sticky;
    top: 92px;
    align-self: flex-start;
}

@media (max-width: 991.98px) {
    .donation-sidebar {
        position: static;
        top: auto;
    }
}

.payment-card {
    overflow: visible;
}

.payment-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.2px;
}

.payment-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 2px;
}

.payment-merged-card {
    padding: 2.25rem;
}

.payment-section {
    margin-top: 14px;
}

.payment-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pay-section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.payment-divider {
    margin: 18px 0;
    opacity: 0.08;
}

.qr-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 14px 0 12px;
}

.upi-qr-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.10);
}

.upi-id-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 10px;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 12px 12px;
}

.upi-id-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.upi-id-value {
    font-weight: 800;
    color: var(--text-dark);
    overflow-wrap: anywhere;
}

.btn-copy {
    border-radius: 12px;
    font-weight: 800;
}

.btn-copy:disabled {
    opacity: 0.6;
}

.bank-empty {
    background: #F8FAFC;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 16px;
    padding: 14px;
}

.bank-kv {
    margin-top: 10px;
}

.bank-kv-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 12px;
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    margin-bottom: 10px;
}

.bank-kv-row-last {
    margin-bottom: 0;
}

.bank-kv-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.bank-kv-value {
    color: var(--text-dark);
    font-weight: 800;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .payment-merged-card {
        padding: 1.5rem;
    }

    .upi-qr-img {
        max-width: 280px;
    }

    .upi-id-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }
    .bank-kv-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .bank-kv-row .btn {
        width: 100%;
    }
}
