/* ======================================================= */
/* MKR CONSENTIMENTO - CSS RESPONSIVO & MODERNIZADO (v2.0) */
/* ======================================================= */

/* Reset Básico e Estrutura Principal */
.mkr-consentimento-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.5;
}

.mkr-consentimento-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mkr-consentimento-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

/* Títulos de Seção */
.mkr-consentimento-section {
    margin-bottom: 30px;
}

.mkr-consentimento-section h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.mkr-consentimento-section h4 {
    color: #34495e;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

/* Listas de Tópicos */
.mkr-consentimento-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mkr-consentimento-list li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.mkr-consentimento-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: 900;
}

/* --- Layouts de Colunas --- */
.mkr-pontos-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap; /* Para responsividade */
}

.mkr-pontos-coluna {
    flex: 1;
    min-width: 250px; /* Garante que não colapse muito em telas médias */
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Pontuação e Box de Observações (Mantido) */
.mkr-pontuacao-valor {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

.mkr-observacoes-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    line-height: 1.6;
}

/* --- TERMO E CONSENTIMENTO (Mantido) --- */
.mkr-termo-box {
    background: #f1f8fe;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}
.mkr-termo-box p { margin: 0; font-weight: 500; }


/* --- BOTÕES E ALERTS (Mantido) --- */
.mkr-consentimento-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.mkr-consentimento-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mkr-consentimento-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ========================================= */
/* ✅ NOVOS ESTILOS: AUTOAVALIAÇÃO E CARDS */
/* ========================================= */

/* Container geral para os botões de opção */
.mkr-autoavaliacao-criterios {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Linha de cada critério */
.mkr-autoavaliacao-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    border-bottom: 1px dotted #e0e0e0;
}

.mkr-autoavaliacao-item:last-child {
    border-bottom: none;
}

.mkr-item-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* Estilos dos botões de rádio */
.mkr-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.mkr-radio-group input[type="radio"] {
    /* Esconde o rádio padrão */
    display: none;
}

.mkr-radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #f5f5f5;
    color: #555;
}

/* Cor Vermelha (1-4) */
.mkr-radio-group input[value="1"]:checked + .mkr-radio-label,
.mkr-radio-group input[value="2"]:checked + .mkr-radio-label,
.mkr-radio-group input[value="3"]:checked + .mkr-radio-label,
.mkr-radio-group input[value="4"]:checked + .mkr-radio-label {
    background-color: #e74c3c;
    border-color: #c0392b;
    color: white;
}

/* Cor Amarela (5-7) */
.mkr-radio-group input[value="5"]:checked + .mkr-radio-label,
.mkr-radio-group input[value="6"]:checked + .mkr-radio-label,
.mkr-radio-group input[value="7"]:checked + .mkr-radio-label {
    background-color: #f1c40f;
    border-color: #f39c12;
    color: #333;
}

/* Cor Verde (8-10) */
.mkr-radio-group input[value="8"]:checked + .mkr-radio-label,
.mkr-radio-group input[value="9"]:checked + .mkr-radio-label,
.mkr-radio-group input[value="10"]:checked + .mkr-radio-label {
    background-color: #2ecc71;
    border-color: #27ae60;
    color: white;
}

/* --- Card de Feedback Comparativo --- */
.mkr-comparison-card {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 5px solid #3498db;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mkr-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mkr-card-list {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

/* Cores específicas para o feedback */
.mkr-improvement-plus li::before {
    content: "👍";
    color: #27ae60;
}

.mkr-improvement-minus li::before {
    content: "⚠️";
    color: #e67e22;
}

/* Overrides para list-style */
.mkr-improvement-plus li, .mkr-improvement-minus li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 5px;
}
.mkr-improvement-plus li::before, .mkr-improvement-minus li::before {
    position: absolute;
    left: 0;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .mkr-consentimento-container {
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .mkr-pontos-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .mkr-pontos-coluna {
        min-width: 100%;
    }

    .mkr-comparison-card {
        grid-template-columns: 1fr; /* Stack em telas menores */
    }
    
    .mkr-radio-group {
        justify-content: space-between; /* Distribui melhor os botões */
        gap: 5px;
    }
    
    .mkr-radio-label {
        width: 30px;
        height: 30px;
    }
}

/* Correções para Assinatura Canvas (Mantido do seu estilo anterior) */
/* Contêiner do Canvas e Assinatura */
.mkr-signature-container {
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Canvas da assinatura (garante o tamanho) */
#mkr-signature-canvas {
    width: 100%;
    height: 150px; /* Altura fixa para desenhar */
    cursor: crosshair;
}

/* Estilo do botão de Limpar */
.mkr-clear-btn {
    display: inline-block;
    background: #f1f1f1;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
    /* Ajuste de margem para o novo layout */
    margin-left: 0; 
    margin-top: 5px;
}
.mkr-clear-btn:hover {
    background: #e0e0e0;
}