﻿
/* Container & Layout */
.container {
    max-width: 1280px;
    margin: 32px auto 60px;
    padding: 0 20px;
}

/* Hero Banner */
.hero-banner {
    text-align: center;
    margin-bottom: 36px;
}

.tax-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 5px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-banner h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0c0a09;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-banner p {
    color: var(--muted);
    font-size: 15px;
    max-width: 680px;
    margin: 0 auto;
}

/* 2-Column Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Card */
.donation-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.step-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #92400e;
    background: #fffbeb;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

/* Step 1: Cause Selector Grid */
.causes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

@media (max-width: 540px) {
    .causes-grid {
        grid-template-columns: 1fr;
    }
}

.cause-card {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: #fafaf9;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .cause-card:hover {
        border-color: #f59e0b;
        background: #fffdf5;
    }

    .cause-card.active {
        border-color: var(--primary);
        background-color: #fffbeb;
        box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
    }

.cause-icon {
    font-size: 20px;
    line-height: 1;
}

.cause-card strong {
    display: block;
    font-size: 13px;
    color: #1c1917;
    font-weight: 700;
}

.cause-card span {
    display: block;
    font-size: 11px;
    color: #78716c;
}

/* Step 2: Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 500px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.amount-btn {
    padding: 12px 8px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: #fafaf9;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    color: #292524;
    font-family: monospace;
}

    .amount-btn:hover {
        border-color: #d97706;
        background: #fff;
    }

    .amount-btn.active {
        background: linear-gradient(135deg, #d97706, #b45309);
        color: #ffffff;
        border-color: #b45309;
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    }

.custom-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

    .custom-input-wrap span {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: 800;
        color: #78716c;
    }

    .custom-input-wrap input {
        width: 100%;
        padding: 12px 14px 12px 34px;
        border-radius: 12px;
        border: 2px solid #f59e0b;
        background: #fffbeb;
        font-size: 18px;
        font-weight: 800;
        font-family: monospace;
        color: #78350f;
    }

.quick-add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.quick-chip {
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #57534e;
    cursor: pointer;
}

    .quick-chip:hover {
        background: #e7e5e4;
        color: #1c1917;
    }

/* Impact callout */
.impact-callout {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #166534;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Step 3: Donor Form Details */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #44403c;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #d6d3d1;
    font-size: 13px;
    background: #fff;
    transition: border-color 0.2s;
}

    .form-group input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    }

.anonymous-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #57534e;
    margin-bottom: 24px;
    cursor: pointer;
}

/* Step 4: Payment Methods */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.pay-method-btn {
    padding: 12px 6px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fafaf9;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

    .pay-method-btn.active {
        background: #fffbeb;
        border-color: var(--primary);
        color: #78350f;
        box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
    }

.pay-box {
    background: #fafaf9;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
}

.upi-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.qr-preview {
    width: 120px;
    height: 120px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qr-preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.upi-info {
    flex: 1;
    font-size: 12px;
}

.upi-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d6d3d1;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #1c1917;
    margin-top: 6px;
}

.copy-btn {
    background: #f5f5f4;
    border: 1px solid #d6d3d1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .submit-btn:hover {
        background: linear-gradient(135deg, #b45309 0%, #c2410c 100%);
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
    }

.ssl-tag {
    text-align: center;
    font-size: 11px;
    color: #78716c;
    margin-top: 12px;
}

/* Sidebar Styles */
.trust-sidebar {
    background: #1c1917;
    color: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: sticky;
    top: 80px;
}

    .trust-sidebar h3 {
        font-size: 16px;
        font-weight: 800;
        color: #fbbf24;
        margin-bottom: 16px;
        border-bottom: 1px solid #292524;
        padding-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.trust-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #292524;
}

    .trust-row span {
        color: #a8a29e;
    }

    .trust-row strong {
        color: #fff;
        font-family: monospace;
        font-size: 12px;
    }

.tax-benefit-box {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #292524;
    border: 1px solid #44403c;
    font-size: 12px;
    color: #fef3c7;
    line-height: 1.5;
}

    .tax-benefit-box strong {
        color: #f59e0b;
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
    }

.direct-bank-box {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    color: #1c1917;
    border: 1px solid var(--border);
    font-size: 12px;
}

    .direct-bank-box h4 {
        font-size: 13px;
        font-weight: 800;
        color: #92400e;
        margin-bottom: 8px;
    }

/* Processing Overlay */
.processing-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
