/* --- GERAL --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    -webkit-tap-highlight-color: transparent; /* Remove highlight de toque */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.logo {
    width: 200px;
    margin-bottom: 2rem;
}
.logo.small {
    width: 150px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem; /* 44.8px */
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 3rem;
}

h2.sub-header {
    font-size: 1.5rem; /* 24px */
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}
h2.sub-header strong {
    color: #007A53; /* vale-green */
    font-weight: 600;
}

/* --- CONTROLE DE TELAS --- */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}
.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BOTÕES DE ESCOLHA (Refeição / Usuário) --- */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
}
/* Em telas maiores (tablet paisagem / desktop) */
@media (min-width: 768px) {
    .choice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .choice-grid.user-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.choice-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: none;
    border-radius: 1rem; /* 16px */
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.choice-button:hover,
.choice-button:focus {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    outline: none;
}
.choice-button:focus {
    box-shadow: 0 0 0 4px rgba(0, 122, 83, 0.4); /* Foco no verde vale */
}

.choice-button .emoji {
    font-size: 5rem; /* 80px */
    margin-bottom: 1rem;
    line-height: 1;
}

.choice-button span {
    font-size: 1.75rem; /* 28px */
    font-weight: 600;
    color: #333;
}

/* --- BOTÕES DE AVALIAÇÃO (Emoji) --- */
.rating-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
}

.rating-button {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-button .emoji {
    font-size: 4rem; /* 64px */
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.rating-button span {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #4a5568;
}

.rating-button:hover,
.rating-button:focus {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
    outline: none;
}
.rating-button:focus {
    box-shadow: 0 0 0 4px rgba(0, 122, 83, 0.4);
}

/* Cores específicas de avaliação */
.rating-button[data-value="Péssimo"] { border-color: #fecaca; background-color: #fef2f2; }
.rating-button[data-value="Péssimo"] span { color: #b91c1c; }
.rating-button[data-value="Regular"] { border-color: #fde68a; background-color: #fffbeb; }
.rating-button[data-value="Regular"] span { color: #b45309; }
.rating-button[data-value="Bom"] { border-color: #bfdbfe; background-color: #eff6ff; }
.rating-button[data-value="Bom"] span { color: #2563eb; }
.rating-button[data-value="Excelente"] { border-color: #a7f3d0; background-color: #f0fdf4; }
.rating-button[data-value="Excelente"] span { color: #047857; }


/* --- BOTÃO DE VOLTAR --- */
.back-button {
    background: none;
    border: none;
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 3rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.back-button:hover {
    color: #2d3748;
}

/* --- TELA DE AGRADECIMENTO --- */
.thank-you-body {
    background-color: #007A53; /* vale-green */
}
.thank-you-container {
    color: #ffffff;
    animation: fadeIn 0.5s ease;
}
.thank-you-container h1 {
    font-size: 4rem; /* 64px */
    color: #ffffff;
    margin-bottom: 1rem;
}
.thank-you-container p {
    font-size: 1.75rem; /* 28px */
    opacity: 0.9;
}
.logo-footer {
    width: 180px;
    margin-top: 4rem;
    opacity: 0.9;
}

.check-animation {
    width: 120px;
    height: 120px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: pulseCheck 1s ease-in-out;
}
.check-icon {
    width: 80px;
    height: 80px;
    color: #007A53; /* vale-green */
}

@keyframes pulseCheck {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
