/* =========================================
   Estilos da Pesquisa de Satisfação (NPS)
========================================= */

body {
    font-family: 'Montserrat', sans-serif;
    /* O background agora está definido diretamente no HTML para não ter erro de rota */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 0;
}

/* Animação de entrada */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nps-card {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 40px 30px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    animation: fadeUp 0.6s ease-out forwards;
}

.logo-img {
    max-height: 70px;
    margin-bottom: 25px;
}

h5 {
    color: #2b2b2b;
    font-size: 1.15rem;
    line-height: 1.5;
}

h6 {
    color: #555;
    font-size: 1rem;
}

/* O SEGREDO DO BALÃO DE VALIDAÇÃO NATIVO */
.nps-item, .influence-option {
    position: relative;
}

.nps-item input[type="radio"],
.influence-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    top: 50%;
    left: 50%;
    margin: 0;
    pointer-events: none;
}

/* --- Escala NPS Moderna --- */
.nps-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 25px 0 35px 0;
}

.nps-scale label {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px; 
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #4a4a4a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nps-scale label:hover {
    transform: scale(1.08);
    background-color: #e9ecef;
}

/* Cores Dinâmicas Selecionadas (Notas) */
.nps-scale input[value="0"]:checked + label, .nps-scale input[value="1"]:checked + label,
.nps-scale input[value="2"]:checked + label, .nps-scale input[value="3"]:checked + label,
.nps-scale input[value="4"]:checked + label, .nps-scale input[value="5"]:checked + label,
.nps-scale input[value="6"]:checked + label {
    background-color: #ffe5e5;
    border-color: #ff4d4f;
    color: #ff4d4f;
    transform: scale(1.1);
}

.nps-scale input[value="7"]:checked + label, .nps-scale input[value="8"]:checked + label {
    background-color: #fffbe6;
    border-color: #faad14;
    color: #d48806;
    transform: scale(1.1);
}

.nps-scale input[value="9"]:checked + label, .nps-scale input[value="10"]:checked + label {
    background-color: #f6ffed;
    border-color: #52c41a;
    color: #389e0d;
    transform: scale(1.1);
}

/* --- Motivos (Design em Lista Vertical com Checkbox) --- */
.influence-group {
    display: flex;
    flex-direction: column; 
    gap: 12px; 
    margin-top: 20px;
    margin-bottom: 35px;
    text-align: left; 
}

.influence-option label {
    display: flex; 
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px; 
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
    color: #4b5563;
}

/* Bolinha vazia antes de selecionar */
.influence-option label::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    border: 2px solid #cbd5e1; 
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0; 
}

.influence-option label:hover {
    background-color: #e9ecef;
}

/* Bloco completo após selecionar */
.influence-option input[type="radio"]:checked + label {
    background-color: #e0f2fe;
    border-color: #38bdf8;
    color: #0284c7;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.15);
}

/* Bolinha com ícone de check (SVG inline) após selecionar */
.influence-option input[type="radio"]:checked + label::before {
    background-color: #0284c7; 
    border-color: #0284c7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
}

/* --- Botão Principal --- */
.btn-submit {
    padding: 16px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border: none;
    color: white;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: white;
}

/* Responsividade para Mobile */
@media (max-width: 576px) {
    .nps-card {
        padding: 30px 20px;
    }
    .nps-scale {
        gap: 6px;
    }
    .nps-scale label {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .influence-option label {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}