/* Reset e Variáveis CSS - Compatível com Tailwind */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Integração com Tailwind - Classes customizadas que complementam */

/* Layout Principal */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* Header */
.header-main {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.header-main h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.header-main .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Google Ads - Top Banner */
.ads-banner-top {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.ads-banner-top .ads-placeholder {
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
    padding: 20px;
}

/* Container Principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.container header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.container header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.container header .subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 400;
}

main {
    padding: 50px 40px;
}

/* Formulário */
.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input[type="number"]::placeholder {
    color: var(--text-light);
}

.checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-item label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.9375rem;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Prova Salva Buttons */
.prova-salva-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.prova-salva-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ano Badges */
.ano-badge {
    border: none;
    outline: none;
    user-select: none;
}

.ano-badge-todos {
    border: none;
    outline: none;
    user-select: none;
    cursor: pointer;
}

/* Actions Container */
.actions {
    margin-top: 3rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.015));
}

.actions-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Botões de Navegação - Design Elegante e Moderno */
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 2.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    height: 52px;
    line-height: 1;
    white-space: nowrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-nav:hover::after {
    left: 100%;
}

.btn-nav svg {
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.btn-nav span {
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Botão Primário - Próxima (VERDE) */
.btn-nav-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4),
                0 4px 8px rgba(16, 185, 129, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 190px;
    position: relative;
    z-index: 1;
    order: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-nav-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5),
                0 6px 12px rgba(16, 185, 129, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-nav-primary:hover::before {
    opacity: 1;
}

.btn-nav-primary:hover svg {
    transform: translateX(2px);
}

.btn-nav-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Botão Secundário - Anterior (AZUL) */
.btn-nav-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4),
                0 4px 8px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 190px;
    position: relative;
    z-index: 1;
    order: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-nav-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5),
                0 6px 12px rgba(59, 130, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-nav-secondary:hover::before {
    opacity: 1;
}

.btn-nav-secondary:hover svg {
    transform: translateX(-3px);
}

.btn-nav-secondary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Botão Sucesso - Finalizar */
.btn-nav-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4),
                0 4px 8px rgba(16, 185, 129, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 210px;
    position: relative;
    z-index: 1;
    order: 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-success::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-nav-success:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5),
                0 6px 12px rgba(16, 185, 129, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-nav-success:hover::before {
    opacity: 1;
}

.btn-nav-success:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Botão Cancelar - Estilo igual ao primário mas com cor cinza */
/* Botão Cancelar - Estilo igual ao primário mas com cor VERMELHA */
.btn-nav-cancel {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4),
                0 4px 8px rgba(239, 68, 68, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 190px;
    position: relative;
    z-index: 1;
    order: 4;
    margin-left: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.btn-nav-cancel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-nav-cancel:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5),
                0 6px 12px rgba(239, 68, 68, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-nav-cancel:hover::before {
    opacity: 1;
}

.btn-nav-cancel:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-nav:disabled,
.btn-nav[style*="display: none"] {
    display: none !important;
}

/* Responsivo para botões de navegação */
@media (max-width: 768px) {
    .actions {
        padding: 2.5rem 0;
    }
    
    .actions-container {
        flex-direction: column;
        width: 100%;
        gap: 0.875rem;
        padding: 0 1.5rem;
    }
    
    .btn-nav {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }
    
    .btn-nav-link {
        margin-left: 0;
        order: 5;
    }
}

@media (max-width: 640px) {
    .actions {
        padding: 2rem 0;
    }
    
    .actions-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .btn-nav {
        padding: 0 1.75rem;
        font-size: 0.9375rem;
        height: 48px;
    }
}

/* Botões */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.0625rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-light);
    transform: translateY(-1px);
}

/* Layout de Prova com Sidebar */
.prova-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.prova-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.prova-container header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.prova-container header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.prova-container header .subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

.prova-container main {
    padding: 40px;
}

/* Instruções estáticas da prova (conteúdo para crawlers/AdSense) */
.prova-instructions {
    padding: 0 40px 24px;
    max-width: 900px;
    margin: 0 auto;
}
.prova-instructions-intro {
    font-size: 0.9375rem;
    color: var(--text-secondary, #4b5563);
    line-height: 1.5;
    margin: 0;
}

/* Google Ads - Sidebar */
.ads-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ads-unit {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.ads-unit .ads-placeholder {
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
    padding: 20px;
}

.ads-unit.ads-square {
    min-height: 250px;
}

.ads-unit.ads-banner {
    min-height: 100px;
}

/* Timer */
#timerContainer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#timerCircle {
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

/* Navegação de Questões */
.questao-navegacao {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.progresso {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.progresso #questaoAtual {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 4px;
}

/* Questões */
.questao {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    display: none;
}

.questao.questao-ativa {
    display: block;
}

.questao:last-child {
    border-bottom: none;
}

.questao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.questao-header > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.questao-numero {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.questao-ano {
    background: var(--bg-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.questao-contexto {
    margin-bottom: 24px;
    line-height: 1.75;
    font-size: 1.0625rem;
    color: var(--text-primary);
}

.questao-contexto img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.questao-intro {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.alternativas {
    margin-top: 24px;
}

.alternativa {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
}

.alternativa:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.alternativa input[type="radio"] {
    margin-right: 14px;
    margin-top: 4px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.alternativa label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 1rem;
}

.alternativa-letra {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.0625rem;
}

/* Actions Container - já definido acima */

/* Resultado Final */
.resultado-final {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
}

.resultado-final h2 {
    margin-bottom: 32px;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.estatisticas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-value.acertos {
    color: #34d399;
}

.stat-value.erros {
    color: #f87171;
}

.stat-value.percentual {
    font-size: 3rem;
    color: #fbbf24;
}

.resultado-actions {
    margin-top: 40px;
    text-align: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.resultado-actions .btn-primary,
.resultado-actions .btn-secondary {
    min-width: 200px;
    padding: 16px 32px;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.resultado-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.resultado-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.resposta-correta {
    background: #d1fae5 !important;
    border-color: var(--success-color) !important;
    position: relative;
}

.resposta-correta::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.resposta-incorreta {
    background: #fee2e2 !important;
    border-color: var(--error-color) !important;
    position: relative;
}

.resposta-incorreta::after {
    content: '✗';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--error-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Feedback de questão (modo estudo) */
.feedback-questao {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.badge-estudo {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.btn-google-ia {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-google-ia:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #5a95f5 0%, #4ab863 50%, #fcc415 100%);
}

.btn-google-ia:active {
    transform: translateY(0);
}

.btn-google-ia svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.btn-google-ia span {
    white-space: nowrap;
}

.btn-google-ia-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-google-ia-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #5a95f5 0%, #4ab863 50%, #fcc415 100%);
}

.btn-google-ia-feedback:active {
    transform: translateY(0);
}

.btn-google-ia-feedback svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Google Ads - Entre Questões */
.ads-between-questions {
    margin: 40px 0;
    min-height: 100px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.ads-between-questions .ads-placeholder {
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
    padding: 20px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .prova-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ads-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-main h1 {
        font-size: 2rem;
    }
    
    .header-main .subtitle {
        font-size: 1rem;
    }
    
    .container, .prova-container {
        margin: 10px;
        border-radius: var(--radius-lg);
    }
    
    .container header, .prova-container header {
        padding: 32px 24px;
    }
    
    .container header h1, .prova-container header h1 {
        font-size: 1.875rem;
    }
    
    main, .prova-container main {
        padding: 32px 24px;
    }
    
    .checkboxes {
        grid-template-columns: 1fr;
    }
    
    .questao-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .questao-numero {
        font-size: 1.5rem;
    }
    
    .resultado-final {
        padding: 32px 24px;
    }
    
    .resultado-final h2 {
        font-size: 1.75rem;
    }
    
    .estatisticas {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px 12px;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-value.percentual {
        font-size: 2.25rem;
    }
    
    .resultado-actions {
        flex-direction: column;
    }
    
    .resultado-actions .btn-primary,
    .resultado-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-main {
        padding: 40px 0;
    }
    
    .header-main h1 {
        font-size: 1.75rem;
    }
    
    .estatisticas {
        grid-template-columns: 1fr;
    }
}

/* Clean Portal Styles - Mobile First */
.container-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Steps Progress */
.steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-item.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.step-item.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-item.completed .step-label {
    color: var(--success-color);
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    max-width: 100px;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: var(--success-color);
}

.step-item.completed + .step-line {
    background: var(--success-color);
}

/* Step Content */
.step-content {
    min-height: 400px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-step-next,
.btn-step-back {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-step-next {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.btn-step-next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.btn-step-back {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-step-back:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mode Cards */
.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.mode-card {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    background: white;
}

.mode-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mode-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mode-card-content {
    text-align: center;
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.mode-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.mode-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Time Cards */
.time-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.time-card {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    background: white;
}

.time-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.time-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.time-card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.time-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

.time-card-content {
    text-align: center;
}

.time-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.time-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.time-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Language Cards */
.language-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.language-card {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
    background: white;
}

.language-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.language-card.selected,
.language-card:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Update language card selection on change */
.language-card input:checked ~ .language-card-content,
.language-card:has(input:checked) .language-card-content {
    /* Visual feedback already handled by parent */
}

.language-card-content {
    text-align: center;
}

.language-flag {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.language-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.language-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Hidden radio inputs */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Toggle Container */
.toggle-container {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.toggle-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.toggle-option {
    flex: 1;
    max-width: 250px;
    padding: 20px 24px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.toggle-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.toggle-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.toggle-icon {
    font-size: 1.75rem;
}

.toggle-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-subtext {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.toggle-option.active .toggle-text {
    color: var(--primary-color);
}

.toggle-divider {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 8px;
    flex-shrink: 0;
}

/* Custom Config Header */
.custom-config-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
}

.custom-config-icon {
    font-size: 1.25rem;
}

.custom-config-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Prova Salva Selected Info */
.prova-salva-selected-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--success-color);
    border-radius: 10px;
}

.prova-salva-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.prova-salva-info-content {
    flex: 1;
}

.prova-salva-info-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.prova-salva-info-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Prova Salva Prompt */
.prova-salva-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    text-align: center;
    justify-content: center;
}

.prova-salva-prompt-icon {
    font-size: 1.5rem;
}

.prova-salva-prompt-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Prova Salva Detalhes */
.prova-info-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.materia-badge {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-color);
}

.alert-info {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filtros-aplicados {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filtro-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.filtro-item:last-child {
    border-bottom: none;
}

.filtro-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
}

.filtro-value {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.filtro-anos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ano-badge-small {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Review Page Styles */
.review-section {
    margin-bottom: 32px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
}

.review-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
    flex: 1;
    padding-left: 16px;
}

.review-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.review-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.btn-review-back {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-review-back:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-review-submit {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-review-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .review-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .review-value {
        text-align: left;
        padding-left: 0;
    }
    
    .review-buttons {
        flex-direction: column;
    }
    
    .btn-review-back,
    .btn-review-submit {
        width: 100%;
    }
}

.portal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.portal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.portal-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.como-funciona-section {
    margin-bottom: 2rem;
    padding: 0 0 1.5rem;
    max-width: 720px;
}
.como-funciona-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.5rem;
}
.como-funciona-text {
    font-size: 0.9375rem;
    color: var(--text-secondary, #4b5563);
    line-height: 1.55;
    margin: 0;
}

.form-section-clean {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* Desktop Horizontal Layout */
@media (min-width: 1024px) {
    .container-portal {
        max-width: 1400px;
        padding: 40px;
    }
    
    .portal-header {
        margin-bottom: 32px;
        padding-top: 0;
    }
    
    .portal-title {
        font-size: 2.5rem;
    }
    
    .portal-subtitle {
        font-size: 1rem;
    }
    
    .form-section-clean {
        padding: 32px 40px;
    }
    
    /* Two column layout for form groups */
    .form-group-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }
    
    /* Provas Salvas in horizontal grid */
    .provas-salvas-container .grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    /* Modo de Prova and Tempo side by side */
    .form-group.modo-tempo-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    /* Anos filter - more columns */
    #anosContainer {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    /* Checkboxes in grid on desktop */
    .checkboxes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Filtro de idioma side by side */
    .form-group:has([name="idioma"]) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.alert-clean {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.alert-error-clean {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Smaller buttons */
.prova-salva-btn {
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
    border-radius: 8px !important;
}

.ano-badge {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    border-radius: 6px !important;
    margin: 4px !important;
}

.ano-badge-todos {
    padding: 8px 16px !important;
    font-size: 0.8125rem !important;
    border-radius: 8px !important;
}

.btn-submit-clean {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-submit-clean:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.btn-submit-clean:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit-clean:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner-icon {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Inputs smaller and cleaner */
input[type="number"],
input[type="text"] {
    padding: 10px 12px !important;
    font-size: 0.9375rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
}

input[type="radio"],
input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
}

/* Radio and checkbox labels */
.space-y-3 > div {
    padding: 8px 0;
}

.space-y-2 > div {
    padding: 6px 0;
}

/* Checkboxes container */
.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkboxes label {
    font-size: 0.875rem;
    font-weight: 400;
}

/* Smaller form text */
.text-xs {
    font-size: 0.75rem !important;
    margin-top: 6px;
}

/* Cleaner prova salva buttons */
.prova-salva-btn {
    text-align: left;
    transition: all 0.2s ease;
}

.prova-salva-btn:hover {
    transform: translateY(-1px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container-portal {
        padding: 16px;
    }
    
    .portal-title {
        font-size: 1.75rem;
    }
    
    .portal-subtitle {
        font-size: 0.875rem;
    }
    
    .form-section-clean {
        padding: 20px;
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .prova-salva-btn {
        padding: 12px 14px !important;
        font-size: 0.8125rem !important;
        min-height: auto !important;
    }
    
    .ano-badge {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .btn-submit-clean {
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
    
    /* Toggle mobile */
    .toggle-options {
        flex-direction: column;
    }
    
    .toggle-option {
        max-width: 100%;
    }
    
    /* Steps mobile */
    .steps-progress {
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-line {
        max-width: 30px;
        margin: 0 5px;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-description {
        font-size: 0.875rem;
    }
    
    /* Cards mobile */
    .mode-cards,
    .time-cards {
        grid-template-columns: 1fr;
    }
    
    .language-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .language-card {
        padding: 12px;
    }
    
    .language-flag {
        font-size: 1.5rem;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-step-next,
    .btn-step-back {
        width: 100%;
    }
    
    /* Stack checkboxes better on mobile */
    .checkboxes {
        gap: 10px;
    }
    
    /* Better spacing for radio groups */
    .space-y-3 {
        gap: 8px;
    }
    
    .space-y-2 {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .portal-title {
        font-size: 1.5rem;
    }
    
    .form-section-clean {
        padding: 16px;
    }
    
    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

.badge-estudo {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.btn-google-ia {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-google-ia:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #5a95f5 0%, #4ab863 50%, #fcc415 100%);
}

.btn-google-ia:active {
    transform: translateY(0);
}

.btn-google-ia svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.btn-google-ia span {
    white-space: nowrap;
}

.btn-google-ia-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-google-ia-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #5a95f5 0%, #4ab863 50%, #fcc415 100%);
}

.btn-google-ia-feedback:active {
    transform: translateY(0);
}

.btn-google-ia-feedback svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Seção de Apresentação - Design Moderno e Elegante (substituído pelo novo design abaixo) */

/* Seção de Apresentação - Design Moderno e Elegante */
.apresentacao-section {
    margin: 3rem 0 4rem;
    padding: 0;
}

.apresentacao-hero {
    background: white;
    border-radius: 32px;
    padding: 4rem 3rem;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Removidos efeitos de glow para fundo branco */

@keyframes float-glow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, 20px) scale(1.1);
        opacity: 0.8;
    }
}

.apresentacao-logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    width: 100%;
    z-index: 2;
}

.apresentacao-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    animation: float-logo 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.apresentacao-logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    width: 100%;
    z-index: 2;
}

.apresentacao-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    animation: float-logo 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.apresentacao-icon-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto 2rem;
    text-align: center;
    width: 100%;
}

.apresentacao-icon {
    font-size: 5rem;
    display: inline-block;
    animation: float-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.apresentacao-title {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.apresentacao-text {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 0;
    text-align: center;
    color: var(--text-secondary);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.apresentacao-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.feature-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.feature-icon-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.feature-icon-2 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.feature-icon-3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    animation: bounce-icon 2.5s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-icon {
    animation-delay: 0s;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 0.6s;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsivo para seção de apresentação */
@media (max-width: 768px) {
    .apresentacao-hero {
        padding: 3rem 2rem;
        border-radius: 24px;
        margin-bottom: 2rem;
    }
    
    .apresentacao-logo {
        max-width: 320px;
    }
    
    .apresentacao-icon {
        font-size: 4rem;
    }
    
    .icon-glow {
        width: 100px;
        height: 100px;
    }
    
    .apresentacao-title {
        font-size: 2rem;
    }
    
    .apresentacao-text {
        font-size: 1.1rem;
    }
    
    .apresentacao-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .apresentacao-hero {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .apresentacao-logo {
        max-width: 320px;
    }
    
    .apresentacao-icon {
        font-size: 3.5rem;
    }
    
    .apresentacao-title {
        font-size: 1.75rem;
    }
    
    .apresentacao-text {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.75rem 1.25rem;
    }
}
