/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: url("../img/back.jpg") no-repeat center/cover fixed;
    color: #222;
    text-align: center;
}

/* HEADER */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* LOGO */
.logo {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    display: block;
}

/* MENU (UNIFICADO - corrigido) */
.menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* CONTAINER (corrigido) */
.container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 20px;
}

/* TÍTULO */
.titulo {
    color: white;
    background: linear-gradient(135deg, #001f3f, #4169e1);
    padding: 20px 40px;
    border-radius: 14px;
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* TEXTO */
.conteudo {
    max-width: 750px;
    background: #f5f7fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.conteudo p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* BOTÃO BASE */
.botao {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* VARIAÇÕES */
.botao--primario {
    background: linear-gradient(135deg, #001f3f, #4169e1);
    color: white;
}

.botao--secundario {
    background: linear-gradient(135deg, #002244, #3a6ff7);
    color: white;
}

/* Criado para combinar com o novo botão do menu */
.botao--terciario {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
}

.botao--neutro {
    background: linear-gradient(135deg, #dcdcdc, #bfbfbf);
    color: #222;
}

/* HOVER */
.botao:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

/* 🔥 CLIQUE GLOBAL (ADICIONADO) */
.botao:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* FORM MODERNO */
.formulario.moderno {
    width: 100%;
    max-width: 360px;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* TÍTULO FORM */
.form-titulo {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
}

/* CAMPO */
.campo.moderno {
    position: relative;
    margin-bottom: 18px;
}

/* INPUT */
.campo.moderno input {
    width: 100%;
    padding: 12px 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
    font-size: 15px;
    transition: 0.3s;
}

/* LABEL */
.campo.moderno label {
    position: absolute;
    left: 10px;
    top: 12px;
    color: #777;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s;
}

/* ANIMAÇÃO LABEL */
.campo.moderno input:focus+label,
.campo.moderno input:valid+label {
    top: -8px;
    font-size: 12px;
    color: #4169e1;
}

/* LINHA ATIVA */
.campo.moderno input:focus {
    border-bottom: 2px solid #4169e1;
}

/* BOTÃO FORM */
.formulario.moderno .botao {
    width: 100%;
    margin-top: 10px;
    border: none;
}

/* BOTÃO AÇÃO */
.botao--acao {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: white;
    background: linear-gradient(135deg, #3f3f46, #27272a);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* hover */
.botao--acao:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #52525b, #3f3f46);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* clique */
.botao--acao:active {
    transform: scale(0.98);
}

/* LOADING */
.spinner,
.loading-text {
    display: none;
}

/* ATIVAR LOADING */
.botao--acao.loading .spinner,
.botao--acao.loading .loading-text {
    display: inline-block;
}

.botao--acao.loading .texto {
    display: none;
}

/* SPINNER */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* SISTEMA DE AVALIAÇÃO POR ESTRELAS (ADICIONADO) */
.avaliacao-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.label-avaliacao {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.estrelas {
    display: flex;
    gap: 4px;
}

.estrela {
    font-size: 24px;
    color: #ccc;
    /* Cor cinza padrão para apagada */
    transition: color 0.2s ease;
}

.estrela.marcada {
    color: #ffcc00;
    /* Cor amarela dourada para preenchida */
}

.nota-texto {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .titulo {
        font-size: 24px;
        padding: 15px;
    }

    .menu {
        flex-direction: column;
    }
}