/* ============================================================
   NGO / Charitable Trust Donation Portal Stylesheet
   Clean, Mobile-First, High-Trust Emerald & Slate Design
   ============================================================ */

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-soft: #ecfdf5;
    --accent: #d97706;
    --accent-soft: #fffbeb;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --radius: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Environment Top Ribbon */
.env-ribbon {
    background: #0f172a;
    color: #f8fafc;
    font-size: 12.5px;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.env-ribbon a {
    color: #34d399;
    font-weight: 700;
    text-decoration: none;
}

/* Site Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}
.brand-logo {
    max-height: 44px;
    width: auto;
}
.brand-title {
    display: block;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.3px;
}
.brand-reg {
    display: block;
    font-size: 11px;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.15s;
}
.nav-links a:not(.btn):hover {
    color: var(--primary);
}
.nav-receipt {
    color: var(--primary-dark) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.18s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.24);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.32);
}
.btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}
.btn-outline {
    background: #fff;
    color: var(--text);
    border-color: #cbd5e1;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-soft);
}
.btn-sm {
    padding: 8px 15px;
    font-size: 13.5px;
    border-radius: 10px;
}
.btn-lg {
    padding: 15px 24px;
    font-size: 16px;
}
.btn-block {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 48px 0 64px;
    background:
        radial-gradient(circle at 10% 10%, rgba(5, 150, 105, 0.09), transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(217, 119, 6, 0.08), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
    align-items: start;
}
.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.trust-pill {
    background: var(--primary-soft);
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}
.hero-copy h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.8px;
    margin: 0 0 16px;
    color: #0f172a;
}
.hero-desc {
    font-size: 16.5px;
    color: var(--text-muted);
    margin: 0 0 28px;
    max-width: 560px;
}
.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.stat-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.stat-item strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
}
.stat-item span {
    font-size: 12.5px;
    color: var(--text-light);
    font-weight: 600;
}
.payment-trust-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}
.pt-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.pt-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pt-badges span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

/* Form Card */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
}
.form-card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.secure-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.form-card-header h2 {
    margin: 0 0 4px;
    font-size: 23px;
    letter-spacing: -0.4px;
}
.form-card-header p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-light);
}

.field {
    margin-bottom: 15px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 11px;
    font-size: 14.5px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Preset Amount Buttons */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.preset-btn {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
}
.preset-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}
.preset-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}
.custom-amount-wrap {
    position: relative;
}
.rupee-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-dark);
}
.custom-amount-wrap input {
    padding-left: 34px;
    font-size: 17px;
    font-weight: 800;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 12px;
    cursor: pointer;
}
.checkbox-line input {
    margin-top: 3px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}
.highlight-80g {
    background: var(--accent-soft);
    border: 1px solid #fde68a;
    padding: 10px 12px;
    border-radius: 10px;
}
.pan-drawer {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 14px;
}
.alert-danger {
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-foot-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-light);
    margin: 12px 0 0;
}
.form-foot-note a {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Sections */
.section {
    padding: 68px 0;
}
.section-muted {
    background: #f1f5f9;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 42px;
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.5px;
}
.section-head p {
    margin: 0;
    color: var(--text-muted);
}

/* Campaigns Grid */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}
.campaign-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.campaign-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.camp-media {
    position: relative;
    height: 180px;
    background: #e2e8f0;
}
.camp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.camp-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.camp-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 0;
}
.camp-cat {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}
.camp-badge-inline {
    font-size: 11px;
    font-weight: 700;
    background: var(--accent-soft);
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 3px 9px;
    border-radius: 999px;
}
.camp-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.camp-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}
.camp-body p {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}
.progress-wrap {
    margin-bottom: 16px;
}
.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #10b981);
    border-radius: 999px;
}
.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}
.progress-stats strong {
    color: var(--text);
    font-size: 15px;
}
.progress-stats small {
    color: var(--text-light);
    margin-left: 4px;
}
.pct-tag {
    font-weight: 800;
    color: var(--primary-dark);
}
.camp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.donor-cnt {
    font-size: 12.5px;
    color: var(--text-light);
    font-weight: 600;
}

/* Donor Wall */
.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.donor-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.donor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.donor-meta {
    flex: 1;
    min-width: 0;
}
.donor-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}
.donor-amt {
    color: var(--primary-dark);
    font-weight: 800;
}
.donor-cause {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}
.donor-msg {
    font-size: 12.5px;
    font-style: italic;
    color: #334155;
    margin-top: 6px;
}
.donor-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
}
.faq-item summary {
    font-weight: 700;
    cursor: pointer;
    font-size: 15.5px;
}
.faq-item p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 14.5px;
}

/* Status & Verify Pages */
.status-page-body {
    min-height: 100vh;
    background: #f1f5f9;
}
.status-wrapper {
    max-width: 620px;
    padding: 44px 20px 64px;
}
.status-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.status-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 16px;
}
.status-icon.ok {
    background: #dcfce7;
    color: #15803d;
}
.status-icon.warn {
    background: #fef3c7;
    color: #b45309;
}
.status-icon.error {
    background: #fee2e2;
    color: #b91c1c;
}
.pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.pill-success { background: #ecfdf5; color: #047857; }
.pill-warning { background: #fffbeb; color: #b45309; }
.pill-danger  { background: #fef2f2; color: #b91c1c; }
.summary-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 22px 0;
    text-align: left;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.summary-row:last-child {
    border-bottom: 0;
}
.summary-row span:first-child {
    color: var(--text-light);
}
.text-emerald {
    color: var(--primary-dark);
    font-size: 16px;
}
.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}

/* Lookup list */
.lookup-list {
    display: grid;
    gap: 12px;
}
.lookup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}
.badge-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
}
.status-paid { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-failed, .status-user_dropped, .status-expired { background: #fee2e2; color: #991b1b; }
.status-refunded { background: #e0e7ff; color: #3730a3; }

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 52px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid #1e293b;
}
.site-footer h3, .site-footer h4 {
    color: #fff;
    margin: 0 0 12px;
}
.site-footer p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #94a3b8;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer li {
    margin-bottom: 8px;
}
.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
}
.site-footer a:hover {
    color: #34d399;
}
.legal-line {
    font-size: 12.5px !important;
    color: #64748b !important;
    margin-top: 12px !important;
}
.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .nav-links a:not(.btn):not(.nav-receipt) {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .preset-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-2, .impact-stats {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 20px;
    }
}
