/**
 * CSS Principal - Versão Light
 * EcoDenuncia Capivari
 */

:root {
    --primary: #1a5d1a;
    --primary-dark: #145214;
    --secondary: #2e7d32;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-500: #737373;
    --gray-700: #404040;
    --gap: 1rem;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar */
.topbar {
    background: var(--primary);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 130px;
}

body {
    padding-top: 150px; /* Espaço para topbar fixo */
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.topbar-logo {
    height: 140px;
    width: auto;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: rgb(255, 255, 255);
    padding: 30px 20px;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 30px;
    border-radius: 20px;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hero p {
    opacity: 0.9;
}

/* Main Shell */
.main-shell {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Card */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Form Section */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Helper */
.helper {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 6px;
}

.char-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-500);
    border: 2px solid var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

/* Form Actions */
.form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* Alert */
.alert {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert.info {
    background: #e0f2fe;
    color: #0369a1;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

/* Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.preview-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Footer */
.footer {
    background: var(--gray-700);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 5px;
}

.footer-sub {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 10px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    display: flex;
    gap: 12px;
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content h3 {
    margin: 20px 0 10px;
    color: var(--primary);
}

.modal-content ul {
    margin-left: 20px;
}

.modal-actions {
    margin-top: 25px;
    text-align: right;
}

/* Resultado */
#resultado {
    margin-top: 20px;
}

#resultado .success-box {
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}

#resultado .success-box h3 {
    color: #065f46;
    margin-bottom: 10px;
}

#resultado .protocolo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
    }
}
