/* --- Importação da Fonte Gilroy --- */
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* --- Variáveis Globais e Reset Básico --- */
:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #12141d;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1; /* Cinza bem mais claro para melhor contraste */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    /* Brand Colors */
    --brand-blue: #0056b3;
    --brand-light: #60a5fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at top right, #1e293b, #0a0b10 60%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* --- Estrutura e Cabeçalho --- */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 55px;
    width: auto;
    opacity: 1;
}

.site-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulse Glow 8s infinite alternate;
}

@keyframes Glow {
    from {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.site-footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    z-index: 1;
}

/* --- Estilos Base do Quiz --- */
.quiz-wrapper {
    width: 100%;
    max-width: 650px;
}

.quiz-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-intro h1 {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-wrap: balance;
}

.quiz-intro p {
    font-size: clamp(0.9rem, 3vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 320px;
    margin: auto;
    line-height: 1.4;
}

.quiz-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.quiz-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

/* --- Estilos Novos para o Quiz Multi-etapas --- */
.progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    height: 4px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 10px;
}

.question-card {
    text-align: center;
}

.question-card p {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
    line-height: 1.3;
    text-wrap: balance;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
}

.answer-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: scale(1.02);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

/* Campos de Texto gerados pelo JS no Quiz */
.form-input {
    width: 100%;
    padding: 0.9rem;
    font-size: 0.95rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    font-family: inherit;
    margin-bottom: 0.75rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Botão de Próximo / Enviar */
.cta-button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.4);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6);
    filter: brightness(1.1);
}

.cta-button:active {
    transform: translateY(0);
}

/* Tela de Agradecimento */
.result-card {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 0 auto;
}

.result-icon {
    width: 4rem;
    height: 4rem;
    color: var(--accent-cyan);
    margin: 0 auto 1.25rem;
}

.result-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.result-text {
    font-size: 1.05rem;
    color: #f1f5f9; /* Branco gelo para leitura perfeita */
    line-height: 1.6;
    opacity: 1 !important;
}

/* Responsividade */
@media (min-width: 768px) {
    .site-header {
        padding: 1.5rem 0;
    }

    .logo {
        height: 50px;
    }

    .site-main {
        padding: 4rem 1rem;
    }

    .quiz-intro {
        margin-bottom: 2.5rem;
    }

    .quiz-intro h1 {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }

    .quiz-intro p {
        font-size: 1.2rem;
        max-width: 450px;
    }

    .quiz-box {
        padding: 2.5rem;
    }

    .question-card p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .answer-btn {
        min-height: 65px;
        padding: 18px 24px;
        font-size: 1.1rem;
    }
}