/* Importando uma fonte moderna do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Variáveis de Cor para fácil customização */
:root {
    --primary-color: #3d5af1;
    --secondary-color: #00bfa5;
    --background-color: #f0f2f5;
    --text-color: #555;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Estilos Gerais */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* LAYOUT DA PÁGINA DE AVALIAÇÃO */
.evaluation-page {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.video-container {
    display: none;
}

.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha ao topo para o scroll funcionar bem */
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Adiciona scroll vertical se o conteúdo for maior que a tela */
}

.form-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* LAYOUT PARA TELAS LARGAS (LANDSCAPE / 16:9) */
@media (min-width: 992px) or (orientation: landscape) {
    .evaluation-page {
        flex-direction: row-reverse;
    }
    .video-container {
        display: block;
        flex: 1.2;
    }
    .video-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
    .form-container {
        flex: 1;
    }
}

/* Estilização do Formulário */
.form-card h2 {
    margin-top: 0;
    font-weight: 700;
    color: #333;
}
.form-card p {
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 25px;
    text-align: left;
}
label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
}

/* --- CORREÇÃO APLICADA AQUI --- */
/* Adicionado input[type="email"] para que o campo de e-mail tenha o mesmo estilo */
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 90, 241, 0.2);
}

/* --- MELHORIA ADICIONAL --- */
/* Estilo para garantir que o texto de placeholder seja consistente */
::placeholder {
    color: #999;
    opacity: 1; /* Firefox */
}

/* Botão de Envio */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- ESTILOS DA HOMEPAGE (index.php) --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: 60px 20px;
    box-sizing: border-box;
    color: white;
    background: linear-gradient(135deg, rgba(61, 90, 241, 0.85), rgba(0, 191, 165, 0.85)), url('https://images.unsplash.com/photo-1554755229-ca4470e47202?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
}
.hero-content { max-width: 800px; }
.brand-name { font-size: 2.5rem; font-weight: 700; margin: 0; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.tagline { font-size: 1.5rem; font-weight: 600; margin: 10px 0 20px; text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
.description { font-size: 1.1rem; font-weight: 300; max-width: 600px; margin: 0 auto 40px auto; }
.cta-button { display: inline-block; padding: 15px 35px; background-color: white; color: var(--primary-color); text-decoration: none; font-weight: 700; font-size: 1.1rem; border-radius: 50px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.features { padding: 80px 20px; background-color: #ffffff; }
.features-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.feature-item { background-color: #fff; padding: 30px; text-align: center; border-radius: var(--border-radius); box-shadow: var(--shadow); flex: 1; min-width: 280px; max-width: 350px; transition: transform 0.3s ease; }
.feature-item:hover { transform: translateY(-10px); }
.feature-item svg { color: var(--primary-color); margin-bottom: 15px; }
.feature-item h3 { margin-top: 0; font-size: 1.4rem; color: #333; }
.site-footer { background-color: #2c3e50; color: rgba(255, 255, 255, 0.7); text-align: center; padding: 40px 20px; }
.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (min-width: 768px) {
    .brand-name { font-size: 3.5rem; }
    .tagline { font-size: 2rem; }
}
/* --- ESTILOS CORRIGIDOS PARA ESCALA NPS 0-10 --- */
.nps-scale {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.nps-scale input[type="radio"] { display: none; }
.nps-scale label {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 32px;
    max-width: 40px;
    aspect-ratio: 1 / 1;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}
.nps-scale input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(61, 90, 241, 0.5);
}
.nps-scale label:hover {
    background-color: #e9ecef;
    border-color: var(--primary-color);
    transform: scale(1.1);
}
.nps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    padding: 0 5px;
}
/* Adicione ou modifique estes estilos no final do seu arquivo style-modern.css */

/* --- ESTILOS DA ESCALA NPS COM CORES --- */
/* Detratores */
.nps-scale .nps-rate-0, .nps-scale .nps-rate-1, .nps-scale .nps-rate-2, .nps-scale .nps-rate-3, .nps-scale .nps-rate-4, .nps-scale .nps-rate-5, .nps-scale .nps-rate-6 {
    background-color: #fbe9e7; border-color: #ffab91;
}
.nps-scale input[type="radio"]:checked + .nps-rate-0, .nps-scale input[type="radio"]:checked + .nps-rate-1, .nps-scale input[type="radio"]:checked + .nps-rate-2, .nps-scale input[type="radio"]:checked + .nps-rate-3, .nps-scale input[type="radio"]:checked + .nps-rate-4, .nps-scale input[type="radio"]:checked + .nps-rate-5, .nps-scale input[type="radio"]:checked + .nps-rate-6 {
    background-color: #e74c3c; border-color: #e74c3c; color: white;
}

/* Neutros */
.nps-scale .nps-rate-7, .nps-scale .nps-rate-8 {
    background-color: #fff8e1; border-color: #ffe082;
}
.nps-scale input[type="radio"]:checked + .nps-rate-7, .nps-scale input[type="radio"]:checked + .nps-rate-8 {
    background-color: #f39c12; border-color: #f39c12; color: white;
}

/* Promotores */
.nps-scale .nps-rate-9, .nps-scale .nps-rate-10 {
    background-color: #e8f5e9; border-color: #a5d6a7;
}
.nps-scale input[type="radio"]:checked + .nps-rate-9, .nps-scale input[type="radio"]:checked + .nps-rate-10 {
    background-color: #2ecc71; border-color: #2ecc71; color: white;
}


/* --- ESTILOS PARA SELEÇÃO DE ATENDENTE --- */
.atendente-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}
.atendente-option input[type="radio"] {
    display: none;
}
.atendente-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}
.atendente-option label img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.atendente-option label span {
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
}
.atendente-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: rgba(61, 90, 241, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(61, 90, 241, 0.15);
}
.atendente-option label:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- NOVOS ESTILOS PARA ESTRELAS INTERATIVAS (VERSÃO ROBUSTA) --- */
/* --- ESTILOS FINAIS PARA ESTRELAS INTERATIVAS --- */
.star-rating-input {
    display: flex;
    justify-content: center;
}

.star-rating-input .star-icon {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: transform 0.2s;
    -webkit-text-fill-color: initial;
    background: none;
    padding: 0 2px;
}

.star-rating-input:hover .star-icon {
    transform: scale(1.1);
}

.star-rating-input .star-icon.is-full {
    color: inherit; /* Herda a cor definida pelo JS */
}

.star-rating-input .star-icon.is-half {
    background: linear-gradient(90deg, currentColor 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-step {
    display: none; /* Esconde todas as etapas por padrão */
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block; /* Mostra apenas a etapa ativa */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.step-navigation .btn-step {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.step-navigation .btn-prev {
    background-color: #6c757d;
    color: white;
}
.step-navigation .btn-prev:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.step-navigation .btn-next {
    background-color: var(--primary-color);
    color: white;
}
.step-navigation .btn-next:hover {
    background-color: #314de0;
    transform: translateY(-1px);
}

.form-group.has-error select,
.form-group.has-error .nps-scale,
.form-group.has-error .star-rating-input {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 5px;
}