/* ============================================================
   Petitions Page Styles
   ============================================================ */

/* Hero */
.petitions-hero {
    padding: 1rem 0;
}
.petitions-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #003366), var(--accent, #0078D4));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.petitions-hero-icon i {
    font-size: 1.75rem;
    color: #fff;
}
.petitions-title {
    color: var(--primary, #003366);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}
.petitions-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Tab Navigation */
.petitions-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    border: none;
}
.petitions-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e4e8;
    border-radius: 12px;
    background: #fff;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.petitions-nav-btn:hover {
    border-color: var(--accent, #0078D4);
    color: var(--accent, #0078D4);
    background: #f0f7ff;
}
.petitions-nav-btn.active {
    border-color: var(--accent, #0078D4);
    background: var(--accent, #0078D4);
    color: #fff;
}
.petitions-nav-btn i {
    font-size: 1.1rem;
}

/* Success Card */
.petition-success-card {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e0e4e8;
    max-width: 560px;
    margin: 0 auto;
}
.success-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d1f7e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.success-icon-wrap i {
    font-size: 2.5rem;
    color: #198754;
}
.petition-success-card h2 {
    color: var(--primary, #003366);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.success-details {
    background: var(--bg-main, #F5F6FA);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
}
.success-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid #e0e4e8;
}
.success-detail-row:last-child { border-bottom: none; }
.success-detail-row.highlight {
    background: #e8f4fd;
    margin: 0 -1.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border-bottom: none;
}
.detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}
.detail-value {
    font-weight: 600;
    color: var(--primary, #003366);
}
.tracking-code {
    font-size: 1.25rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: var(--accent, #0078D4);
}

/* Info Banner */
.petition-info-banner {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #cce4f6;
}
.info-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.info-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.info-step-icon i {
    font-size: 1.25rem;
    color: var(--accent, #0078D4);
}
.info-step-text {
    font-weight: 600;
    color: var(--primary, #003366);
    font-size: 0.85rem;
}

/* Form Card */
.petition-form-card {
    border-radius: 16px;
    border: 1px solid #e0e4e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f2f5;
}
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary, #003366);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-section-title i {
    color: var(--accent, #0078D4);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #c8cfd6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #fafbfc;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent, #0078D4);
    background: #f0f7ff;
}
.upload-zone-content i {
    font-size: 2.5rem;
    color: #adb5bd;
    display: block;
    margin-bottom: 0.5rem;
}
.upload-zone.dragover .upload-zone-content i {
    color: var(--accent, #0078D4);
}
.upload-zone-content p { margin-bottom: 0.25rem; color: #495057; }
.upload-zone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.file-list { display: flex; flex-direction: column; gap: 0.375rem; }
.file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
}
.file-item.file-error { background: #fff5f5; }
.file-name { font-weight: 500; }

/* Submit Button */
.petition-submit-btn {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Track Card */
.petition-track-card {
    border-radius: 16px;
    border: 1px solid #e0e4e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.track-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-main, #F5F6FA);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.track-icon i {
    font-size: 1.5rem;
    color: var(--accent, #0078D4);
}

/* Petition Detail Card */
.petition-detail-card {
    border-radius: 16px;
    border: 1px solid #e0e4e8;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.petition-detail-header {
    background: linear-gradient(135deg, var(--primary, #003366), var(--secondary, #005B96));
    color: #fff;
    padding: 1.25rem 1.5rem;
}
.registration-number {
    font-size: 0.8rem;
    opacity: 0.8;
    font-family: monospace;
    letter-spacing: 1px;
}
.petition-subject {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}
.petition-status-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Status Timeline */
.petition-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    position: relative;
    margin-bottom: 1.5rem;
}
.petition-timeline::before {
    content: '';
    position: absolute;
    top: 2.15rem;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: #e0e4e8;
    z-index: 0;
}
.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e4e8;
    color: #adb5bd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e4e8;
}
.timeline-step.completed .timeline-dot {
    background: #198754;
    color: #fff;
    box-shadow: 0 0 0 2px #198754;
}
.timeline-step.current .timeline-dot {
    background: var(--accent, #0078D4);
    color: #fff;
    box-shadow: 0 0 0 2px var(--accent, #0078D4), 0 0 0 6px rgba(0,120,212,0.15);
    transform: scale(1.1);
}
.timeline-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #adb5bd;
}
.timeline-step.completed .timeline-label { color: #198754; }
.timeline-step.current .timeline-label { color: var(--accent, #0078D4); }

/* Info Grid */
.petition-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-main, #F5F6FA);
    border-radius: 12px;
}
.info-item .info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.info-item .info-value {
    font-weight: 600;
    color: var(--primary, #003366);
    font-size: 0.9rem;
}

/* Petition Content */
.petition-content-text {
    background: #fafbfc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
    border-left: 3px solid var(--accent, #0078D4);
}

/* Response */
.petition-response {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #bbf7d0;
}
.response-header {
    margin-bottom: 0.75rem;
    color: #166534;
    font-size: 0.9rem;
}
.response-body {
    color: #14532d;
    line-height: 1.7;
}

/* Messages */
.message-item {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}
.staff-message {
    background: #f0f7ff;
    border: 1px solid #cce4f6;
}
.message-header {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.message-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

/* Legal Note */
.petition-legal-note {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #664d03;
}

/* Responsive */
@media (max-width: 768px) {
    .petitions-nav {
        flex-direction: column;
    }
    .petitions-nav-btn {
        justify-content: center;
    }
    .petition-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 1rem;
    }
    .petition-timeline::before {
        top: 0;
        bottom: 0;
        left: 1.75rem;
        right: auto;
        width: 3px;
        height: auto;
    }
    .timeline-step {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
        margin-bottom: 1.25rem;
    }
    .timeline-dot {
        flex-shrink: 0;
    }
    .petition-info-grid {
        grid-template-columns: 1fr;
    }
    .success-detail-row {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    .success-detail-row.highlight {
        margin: 0.5rem -1.25rem;
    }
    .petition-submit-btn {
        width: 100%;
        justify-content: center;
    }
}
