/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    height: 350px;
    background: linear-gradient(135deg, #1B5E3A 0%, #2E8B57 50%, #3DA96E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 20px;
}

.page-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.page-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== FORM SECTION ===== */
.pengaduan-form-section {
    padding: 60px 0;
    background: #f5f9f7;
}

.form-info-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.form-info-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2px;
}

.form-info-box p {
    margin: 0;
    line-height: 1.7;
    color: #2c2c2c;
}

/* ===== ALERTS ===== */
.alert {
    padding: 20px 25px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== STEP FORM ===== */
.form-step {
    display: none;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.form-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.step-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* ===== FORM GRID ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.small {
    grid-column: span 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    padding: 10px;
    background: #f8f9fa;
}

.file-upload small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.85rem;
}

/* ===== STEP NAVIGATION ===== */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== STEP INDICATORS ===== */
.step-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #888;
    transition: all 0.3s ease;
}

.step-indicator span {
    width: 26px;
    height: 26px;
    background: #e0e0e0;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.step-indicator.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #e8f5e9;
}

.step-indicator.active span {
    background: var(--primary-color);
    color: #fff;
}

.step-indicator.completed {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.step-indicator.completed span {
    background: var(--primary-color);
    color: #fff;
}

/* ===== STATUS PAGE ===== */
.status-search-section {
    padding: 60px 0;
    background: #f5f9f7;
}

.status-search-box {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.status-search-box h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.status-search-box > p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

.search-input-group button {
    white-space: nowrap;
}

/* ===== STATUS RESULT ===== */
.status-result {
    margin-top: 30px;
}

.status-timeline {
    position: relative;
    padding-left: 30px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #e0e0e0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 3px solid #fff;
}

.timeline-item.active {
    border-left-color: var(--primary-color);
    background: #e8f5e9;
}

.timeline-item.active::before {
    background: var(--primary-color);
}

.timeline-item.completed::before {
    background: var(--primary-color);
}

.timeline-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.timeline-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.timeline-item .timeline-date {
    font-size: 0.8rem;
    color: #999;
}

/* Status badges */
.status-badge-large {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
}

.status-masuk { background: #fff3cd; color: #856404; }
.status-diverifikasi { background: #cce5ff; color: #004085; }
.status-diproses { background: #d4edda; color: #155724; }
.status-selesai { background: #d1ecf1; color: #0c5460; }
.status-ditolak { background: #f8d7da; color: #721c24; }

/* ===== STATISTIK PUBLIK ===== */
.statistik-section {
    padding: 60px 0;
    background: #f5f9f7;
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stats-summary-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.stats-summary-card:hover {
    transform: translateY(-5px);
}

.stats-summary-card .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: #fff;
}

.stats-icon.bg-primary { background: var(--primary-color); }
.stats-icon.bg-warning { background: #f39c12; }
.stats-icon.bg-info { background: #3498db; }
.stats-icon.bg-success { background: #27ae60; }

.stats-summary-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stats-summary-card .stats-label {
    color: #666;
    font-size: 0.9rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.chart-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.chart-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #1a1a1a;
}

.chart-box canvas {
    max-height: 300px;
}

/* ===== SUCCESS POPUP MODAL ===== */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-overlay.show {
    opacity: 1;
}

.success-modal {
    background: #fff;
    border-radius: 20px;
    padding: 45px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay.show .success-modal {
    transform: scale(1) translateY(0);
}

.success-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.success-icon i {
    font-size: 2.5rem;
    color: #fff;
    animation: checkBounce 0.6s ease 0.3s both;
}

.success-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.2);
    z-index: 1;
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.success-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-kode-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px dashed #27ae60;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.success-kode-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}

.success-kode {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1B5E3A;
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
}

.btn-copy:hover {
    background: #219a52;
    transform: scale(1.05);
}

.btn-copy.copied {
    background: #1B5E3A;
}

.success-note {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.success-note i {
    color: #f39c12;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.success-actions .btn-primary {
    background: linear-gradient(135deg, #1B5E3A, #2E8B57);
    color: #fff;
    border: none;
}

.success-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 58, 0.3);
}

.success-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.success-actions .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-hero {
        height: 280px;
    }

    .page-hero-content h1 {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.small {
        grid-column: span 1;
    }

    .form-step {
        padding: 25px 20px;
    }

    .step-indicators {
        flex-direction: column;
        align-items: center;
    }

    .search-input-group {
        flex-direction: column;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .status-search-box {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .page-hero-content h1 {
        font-size: 1.6rem;
    }

    .step-nav {
        flex-direction: column;
        gap: 10px;
    }

    .step-nav .btn {
        width: 100%;
        justify-content: center;
    }

    .success-modal {
        padding: 30px 20px;
    }

    .success-title {
        font-size: 1.3rem;
    }

    .success-kode {
        font-size: 1.1rem;
    }
}
