/* =========================================
   BASE E RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #333;
}

.is-hidden {
    display: none !important;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom:3rem;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =========================================
   TÍTULOS E MENSAGENS
========================================= */
h2, h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.div_titulo {
    margin: 0 0 20px 0;
    padding: 10px;
    text-align: center;
    background-color: #1a73e8; /* Azul padrão APA */
    color: white;
    font-weight: bold;
    border-radius: 5px;
    letter-spacing: 1px;
}

.msg_erro {
    display: none;
    margin-bottom: 1.5rem;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    background: #f8d7da;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

/* =========================================
   FORMULÁRIOS
========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

input[type="text"],
input[type="email"],
select,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #1a73e8;
    outline: none;
}

/* =========================================
   BOTÕES
========================================= */
.btn {
    padding: 10px 20px;
    background-color: #e9ecef;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
    transition: 0.3s;
}

.btn:hover {
    background-color: #dcdcdc;
}

/* Botão de Ação Principal (Azul) */
.btn-action {
    padding: 12px 20px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-action:hover {
    background: #1557b0;
}

.btn-action:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

/* =========================================
   PAINÉIS DO NOVO DASHBOARD
========================================= */
.dashboard-panel {
    display: none;
    margin-top: 20px;
}

.info-box {
    padding: 15px;
    border-radius: 5px;
    background: #e9ecef;
    margin-bottom: 15px;
    border-left: 4px solid #1a73e8;
}

.info-box p {
    margin-bottom: 5px;
    font-size: 1.05em;
}

.area-participante {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

/* =======================
   Footer
========================== */
.footer {
    text-align: right;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 0.85em;
    background-color: var(--primary-blue);
    margin-top: 1rem;
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
========================================= */
@media (max-width: 768px) {
    .form-group-container {
        flex-direction: column;
        gap: 0;
    }
    .form-group-container .form-group {
        width: 100% !important;
    }
    
    /* Ajuste para o captcha no mobile */
    #img_captcha {
        width: 100%;
        height: auto;
    }
}