* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #e8f4f0;
    --bg-card: #ffffff;
    --bg-input: #f8f9fa;
    --bg-input-focus: #ffffff;
    --text-primary: #2c3e35;
    --text-secondary: #5a6c62;
    --text-muted: #8a9a90;
    --accent-green: #0a7e4f;
    --accent-green-hover: #096840;
    --accent-light-green: #d4ede3;
    --border-color: #d1ddd6;
    --border-focus: #0a7e4f;
    --shadow: 0 4px 20px rgba(10, 126, 79, 0.08);
    --shadow-hover: 0 8px 30px rgba(10, 126, 79, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.header {
    background: linear-gradient(135deg, var(--accent-green) 0%, #0d9960 100%);
    color: white;
    padding: 48px 40px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header p {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 400;
}

.btn-teste {
    position: fixed;
    top: 24px;
    left: 24px;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transition: all 0.2s ease;
    z-index: 999;
}

.btn-teste:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-teste.ativo {
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 2px 16px rgba(40, 167, 69, 0.6); }
}

.badge-teste {
    position: fixed;
    top: 70px;
    left: 24px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    z-index: 999;
    display: none;
}

.badge-teste.ativo {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.content {
    padding: 40px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.subtitle-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    margin-top: -8px;
    line-height: 1.5;
}

.tipo-selecao {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.tipo-btn {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tipo-btn:hover {
    background: var(--bg-input-focus);
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(10, 126, 79, 0.1);
    transform: translateY(-2px);
}

.tipo-btn.selected {
    background: var(--accent-light-green);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.tipo-icon {
    font-size: 28px;
    display: block;
}

.tipo-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.tipo-btn.selected .tipo-text {
    color: var(--accent-green);
}

.formulario {
    display: none;
}

.formulario.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-primary);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(10, 126, 79, 0.08);
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.checkbox-group:hover {
    border-color: var(--accent-green);
    background: var(--bg-input-focus);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    accent-color: var(--accent-green);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.btn-submit {
    background: var(--accent-green);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(10, 126, 79, 0.2);
}

.btn-submit:hover {
    background: var(--accent-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 126, 79, 0.3);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-nova-denuncia {
    background: transparent;
    color: var(--accent-green);
    padding: 14px 32px;
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 12px;
}

.btn-nova-denuncia:hover {
    background: var(--accent-light-green);
    transform: translateY(-1px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.modal h2 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.modal-note {
    font-size: 13px;
    color: var(--text-secondary);
}

.protocolo {
    background: var(--accent-green);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(10, 126, 79, 0.2);
}

.btn-close {
    background: var(--accent-green);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: var(--accent-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 126, 79, 0.3);
}

.loading {
    display: none;
    text-align: center;
    margin: 24px 0;
}

.loading.active {
    display: block;
}

.loading p {
    color: var(--text-secondary);
    font-size: 14px;
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.opcional {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
}

.success-section {
    display: none;
    text-align: center;
    padding: 32px 0;
}

.success-section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.success-section h2 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

.success-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.success-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .content {
        padding: 24px;
    }

    .header {
        padding: 32px 24px;
    }

    .header h1 {
        font-size: 24px;
    }

    .tipo-selecao {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .btn-teste, .badge-teste {
        font-size: 11px;
        padding: 8px 14px;
    }

    .modal-content {
        padding: 32px 24px;
    }
}