/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    --accent: #e65c00;
    --bg-subtle: #f0f4ff;
    --card-shadow: 0 4px 24px rgba(13, 110, 253, 0.08);
    --card-shadow-hover: 0 8px 32px rgba(13, 110, 253, 0.14);
    --radius: 14px;
    --transition: 0.18s ease;
}

/* ===========================
   Base
   =========================== */
body {
    background-color: var(--bg-subtle);
}

/* ===========================
   Navbar
   =========================== */
.site-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
    padding: 10px 0;
    transition: box-shadow 0.2s ease;
}

.site-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(13, 110, 253, 0.1);
}

.site-navbar-brand {
    font-weight: 700;
    font-size: 1rem;
    color: #1565c0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.brand-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #0d6efd, #1565c0);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.site-nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151 !important;
    padding: 6px 12px !important;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}

.site-nav-link:hover {
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.site-nav-donate {
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #1565c0);
    color: white !important;
    padding: 7px 18px;
    border-radius: 20px;
    text-decoration: none;
    border: none;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.3);
}

.site-nav-donate:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
}

.site-navbar-toggler {
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--transition);
}

.site-navbar-toggler:focus {
    box-shadow: none;
    background: #eff6ff;
}

@media (max-width: 991px) {
    .site-navbar .navbar-collapse {
        background: white;
        border-radius: 10px;
        margin-top: 10px;
        padding: 12px;
        box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
        border: 1px solid rgba(13, 110, 253, 0.08);
    }

    .site-nav-donate {
        display: inline-block;
        margin-top: 6px;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background: linear-gradient(135deg, #1565c0 0%, #0d6efd 60%, #1976d2 100%);
    color: white;
    padding: 72px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--bg-subtle);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-percent {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    color: #ffd54f;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: -2px;
}

/* ===========================
   Section Padding
   =========================== */
.section-padding {
    padding: 32px 0 48px;
}

/* ===========================
   Cards
   =========================== */
.site-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(13, 110, 253, 0.06);
}

/* ===========================
   Trust Badges
   =========================== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 14px 0 20px;
}

.trust-badge {
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 0.81rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(46, 125, 50, 0.18);
}

.trust-badge.deadline {
    background: #fff8e1;
    color: #bf6000;
    border-color: rgba(191, 96, 0, 0.18);
}

.trust-badge.secure {
    background: #e3f2fd;
    color: #1565c0;
    border-color: rgba(21, 101, 192, 0.18);
}

.trust-badge.speed {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: rgba(123, 31, 162, 0.18);
}

/* ===========================
   Counter
   =========================== */
.counter-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #ede7f6 100%);
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 14px 24px;
    text-align: center;
    font-weight: 700;
    color: #1565c0;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.counter-box #counter {
    font-size: 1.25rem;
    color: #0d47a1;
    font-weight: 900;
}

/* ===========================
   Form Labels & Controls
   =========================== */
.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #374151;
    margin-bottom: 5px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d1d5db;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
}

/* ===========================
   Beneficiar Radio Cards
   =========================== */
.beneficiar-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 576px) {
    .beneficiar-cards {
        grid-template-columns: 1fr;
    }
}

.beneficiar-card input[type="radio"] {
    display: none;
}

.beneficiar-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all var(--transition);
    height: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    background: #f9fafb;
    user-select: none;
}

.beneficiar-card label .card-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    display: block;
}

.beneficiar-card input[type="radio"]:checked + label {
    border-color: #0d6efd;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
}

.beneficiar-card label:hover {
    border-color: #93c5fd;
    background: #f0f6ff;
    color: #1d4ed8;
}

/* ===========================
   Signature Pad
   =========================== */
#signaturePad {
    touch-action: none;
    width: 100%;
    display: block;
    border-radius: 8px;
    border: 2px dashed #cbd5e1 !important;
    background: #fafbfc;
    cursor: crosshair;
    transition: border-color var(--transition);
}

#signaturePad:hover,
#signaturePad.active {
    border-color: #93c5fd !important;
    background: #f8fbff;
}

/* ===========================
   Form Check (Checkboxes)
   =========================== */
.form-check {
    padding: 11px 14px 11px 40px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: background var(--transition);
}

.form-check:has(.form-check-input:checked) {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.form-check-label {
    font-size: 0.86rem;
    color: #374151;
    line-height: 1.5;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ===========================
   Submit Button
   =========================== */
#submitDeclaration {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

#submitDeclaration:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
}

#submitDeclaration:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* ===========================
   Accordion
   =========================== */
.accordion-button:not(.collapsed) {
    color: #1d4ed8;
    background-color: #eff6ff;
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-item {
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 4px;
}

.accordion-button {
    font-size: 0.95rem;
}

/* ===========================
   Info Section Blocks
   =========================== */
.info-block {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.06);
    border: 1px solid rgba(13, 110, 253, 0.07);
}

.info-block-title {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

/* Steps */
.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-num {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0d6efd, #1565c0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto 10px;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.28);
}

.step-text {
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.45;
}

.step-arrow {
    color: #bfdbfe;
    font-size: 1.6rem;
    padding-top: 6px;
    flex-shrink: 0;
    line-height: 1;
}

@media (max-width: 576px) {
    .steps-row {
        flex-direction: column;
        gap: 14px;
    }

    .step-arrow {
        display: none;
    }

    .step-item {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 14px;
    }

    .step-num {
        margin: 0;
        flex-shrink: 0;
    }
}

/* Centers */
.centers-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 576px) {
    .centers-row {
        grid-template-columns: 1fr;
    }
}

.center-card {
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
}

.center-icon {
    font-size: 1.9rem;
    display: block;
    margin-bottom: 7px;
}

.center-name {
    font-weight: 700;
    font-size: 0.86rem;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.center-desc {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.4;
}

/* FAQ accordion inside info-block */
.faq-accordion .accordion-item {
    border: none;
    border-radius: 8px !important;
    margin-bottom: 5px;
    background: #f9fafb;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: #f9fafb;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    padding: 12px 16px;
    border-radius: 8px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    filter: opacity(0.5);
}

.faq-accordion .accordion-body {
    font-size: 0.87rem;
    color: #4b5563;
    line-height: 1.6;
    padding: 10px 16px 16px;
    background: white;
    border-top: 1px solid #f3f4f6;
}

/* Download links */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    text-decoration: none;
    color: #0369a1;
    font-size: 0.87rem;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}

.download-link:hover {
    background: #e0f2fe;
    color: #075985;
}

/* Info links row */
.info-links-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-link-btn {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.info-link-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.info-link-btn--donate {
    background: linear-gradient(135deg, #0d6efd, #1565c0);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.25);
}

.info-link-btn--donate:hover {
    background: linear-gradient(135deg, #1d7cf8, #1a6fd3);
    color: white;
    border-color: transparent;
}

/* ===========================
   Footer
   =========================== */
footer {
    background: white;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 767px) {
    .site-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .hero-percent {
        font-size: 3.8rem;
    }

    .hero-section {
        padding: 64px 0 52px;
    }
}
