/**
 * Estilos principais - Padrão gov.br
 */

/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores oficiais gov.br */
    --azul-gov: #1351B4;
    --azul-escuro: #0C2A5C;
    --amarelo-gov: #FFF8D6;
    --amarelo-borda: #F2C94C;
    --cinza-claro: #F8F8F8;
    --cinza-borda: #E5E5E5;
    --cinza-texto: #666;
    --verde-gov: #00A859;
    --branco: #FFFFFF;
    --preto: #1A1A1A;
    
    /* Espaçamentos padrão gov.br */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
    
    /* Fontes */
    --font-family: 'Rawline', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--preto);
    background-color: var(--branco);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ============================================
   HEADER GOV.BR
   ============================================ */

.gov-header {
    background: var(--branco);
    border-bottom: 1px solid var(--cinza-borda);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60px;
}

/* Logo gov.br */
.logo-gov {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--azul-gov);
}

.logo-gov .logo-text {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-gov .gov {
    color: var(--azul-gov);
}

.logo-gov .br {
    color: #FFC72C;
    margin-left: 2px;
}

/* Menu de navegação */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-menu a {
    color: var(--azul-gov);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--azul-escuro);
    text-decoration: underline;
}

/* Utilitários do header */
.header-utils {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.lang-selector,
.theme-toggle,
.grid-menu {
    display: flex;
    align-items: center;
    color: var(--azul-gov);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    font-size: 14px;
    transition: opacity 0.2s;
}

.lang-selector:hover,
.theme-toggle:hover,
.grid-menu:hover {
    opacity: 0.7;
}

/* Barra de busca */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--cinza-claro);
    border-radius: 4px;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin: 0 var(--spacing-md);
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    padding: var(--spacing-xs);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--cinza-texto);
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--azul-gov);
    padding: var(--spacing-xs);
}

/* Botão Entrar */
.btn-entrar {
    background: var(--azul-gov);
    color: var(--branco);
    border: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: background 0.2s;
}

.btn-entrar:hover {
    background: var(--azul-escuro);
}

/* Menu hamburguer (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--azul-gov);
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Barra de busca principal */
.search-section {
    background: var(--branco);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--cinza-borda);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--cinza-claro);
    border-radius: 8px;
    padding: var(--spacing-sm) var(--spacing-md);
}

.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: var(--spacing-xs);
    outline: none;
}

.search-container button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--azul-gov);
    padding: var(--spacing-xs);
}

/* ============================================
   SISTEMA DE PÁGINAS
   ============================================ */

.page {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

.page.active {
    display: flex;
}

.page-content {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    padding-top: var(--spacing-md); /* Reduzido para mobile */
}

/* Barra de progresso */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cinza-claro);
    z-index: 1001;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--azul-gov), var(--verde-gov));
    transition: width 0.3s ease;
    width: 0%;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

.page-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--preto);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-title:first-child {
    margin-top: 0;
}

.page-subtitle {
    font-size: 15px;
    color: var(--cinza-texto);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

.personalized-name {
    color: var(--azul-gov);
    font-weight: 600;
}

.welcome-message {
    background: var(--cinza-claro);
    border-left: 4px solid var(--azul-gov);
    border-radius: 6px;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--preto);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid var(--cinza-borda);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: var(--branco);
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-gov);
    box-shadow: 0 0 0 4px rgba(19, 81, 180, 0.08);
}

.form-group input::placeholder {
    color: #999;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: var(--cinza-texto);
    margin-top: 6px;
    font-weight: 400;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 44px;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: 52px;
    -webkit-tap-highlight-color: rgba(19, 81, 180, 0.2);
    touch-action: manipulation; /* Melhora responsividade em mobile */
}

.btn-primary {
    background: var(--azul-gov);
    color: var(--branco);
    margin-top: var(--spacing-xl);
    font-weight: 700;
}

/* CTA melhorado para página de processo */
.process-page .btn-primary,
.payment-page .btn-primary {
    height: 48px;
    padding: 0 32px;
    font-size: 18px;
    font-weight: 700;
}

.btn-primary:hover {
    background: #0f4194;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--azul-gov);
    border: 1.5px solid var(--azul-gov);
    margin-top: var(--spacing-sm);
    font-weight: 600;
}

/* Melhorar espaçamento entre cards */
.process-cards .process-card {
    margin-bottom: 24px;
}

.process-cards .process-card:last-child {
    margin-bottom: 0;
}

.btn-secondary:hover {
    background: rgba(19, 81, 180, 0.05);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.nav-buttons .btn {
    margin-top: 0;
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid var(--branco);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   VALIDAÇÃO E CHECKLIST (PREMIUM)
   ============================================ */

.validation-page {
    background: #F7F9FC;
}

.validation-page .page-content {
    max-width: 720px;
    background: transparent;
}

.validation-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.validation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8F5E9;
    border-radius: 50%;
    animation: pulseCheck 2s ease-in-out infinite;
}

.validation-icon svg {
    width: 36px;
    height: 36px;
    color: var(--verde-gov);
    animation: scaleIn 0.5s ease-out 0.3s both;
}

.validation-header-title {
    font-size: 22px;
    font-weight: 700;
    color: #1B1B1B;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.validation-header-subtitle {
    font-size: 15px;
    color: #6A6A6A;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.validation-container {
    background: var(--branco);
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--cinza-borda);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* Barra lateral indicadora */
.validation-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--azul-gov);
    transform: scaleY(0);
    transform-origin: top;
    animation: growBar 1.2s ease-out 0.4s forwards;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    font-size: 15px;
    color: #1B1B1B;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    border-bottom: 1px solid #F0F0F0;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item.checked {
    opacity: 1;
    transform: translateX(0);
}

.checklist-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--cinza-borda);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: var(--branco);
}

.checklist-item.checked .checklist-check {
    background: var(--verde-gov);
    border-color: var(--verde-gov);
    transform: scale(1.1);
    animation: checkPop 0.4s ease-out;
}

.checklist-check svg {
    width: 14px;
    height: 14px;
    color: var(--branco);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.checklist-item.checked .checklist-check svg {
    opacity: 1;
    transform: scale(1);
    animation: checkMark 0.4s ease-out 0.1s both;
}

.checklist-content {
    flex: 1;
}

.checklist-title {
    font-size: 16px;
    font-weight: 600;
    color: #1B1B1B;
    margin-bottom: 4px;
    line-height: 1.4;
}

.checklist-description {
    font-size: 14px;
    color: #6A6A6A;
    line-height: 1.6;
}

.validation-success {
    background: #E8F5E9;
    border-left: 4px solid var(--verde-gov);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    font-size: 16px;
    line-height: 1.7;
    color: #1B1B1B;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.validation-success.show {
    opacity: 1;
    transform: translateY(0);
    animation: slideUpSuccess 0.5s ease-out;
}

.validation-success .highlight {
    color: var(--azul-gov);
    font-weight: 600;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseCheck {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes checkPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes checkMark {
    from {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideUpSuccess {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PROCESSO DE HABILITAÇÃO
   ============================================ */

.process-page .page-content {
    max-width: 720px;
}

.process-page .page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--preto);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    margin-top: var(--spacing-md);
}

.process-page .page-title .personalized-name {
    color: var(--azul-gov);
    font-weight: 600;
}

.process-page .page-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    font-weight: 400;
}

.process-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    position: relative;
}

/* Linha conectora vertical (timeline) */
.process-cards::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E7F0FA;
    z-index: 0;
}

.process-card {
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-left: 60px;
}

.process-card.animate {
    animation: slideInCard 0.5s ease-out forwards;
}

.process-card:hover {
    border-color: var(--azul-gov);
    box-shadow: 0 4px 12px rgba(19, 81, 180, 0.15);
    transform: translateY(-2px);
}

.process-card-number {
    position: absolute;
    left: -60px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--azul-gov);
    color: var(--branco);
    border-radius: 50%;
    font-weight: 700;
    font-size: 20px;
    border: 4px solid var(--branco);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.process-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--preto);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.process-card-description {
    font-size: 15px;
    color: #6A6A6A;
    line-height: 1.8;
    font-weight: 400;
}

@keyframes slideInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo para timeline */
@media (max-width: 768px) {
    .process-cards::before {
        left: 20px;
    }
    
    .process-card {
        margin-left: 50px;
        padding: 16px;
    }
    
    .process-card-number {
        left: -50px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .process-card-title {
        font-size: 16px;
    }
    
    .process-card-description {
        font-size: 14px;
    }
}

/* ============================================
   CARDS E SEÇÕES
   ============================================ */

.info-card {
    background: var(--cinza-claro);
    border-radius: 8px;
    padding: var(--spacing-lg) var(--spacing-md);
    border: 1px solid var(--cinza-borda);
}

.info-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.info-list li {
    padding: var(--spacing-sm) 0;
    padding-left: 40px;
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    color: var(--preto);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--azul-gov);
    font-weight: 700;
    font-size: 20px;
}

.benefits-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.benefits-list li {
    padding: 24px 24px 24px 64px;
    margin-bottom: var(--spacing-sm);
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: 8px;
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    color: var(--preto);
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefits-list li:hover {
    border-color: var(--azul-gov);
    box-shadow: 0 2px 8px rgba(19, 81, 180, 0.1);
    transform: translateY(-2px);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 24px;
    color: var(--azul-gov);
    font-weight: 700;
    font-size: 22px;
}

.benefits-list li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--azul-gov);
    font-size: 16px;
}

/* ============================================
   PÁGINA 6 - AVISOS OFICIAIS (PREMIUM)
   ============================================ */

.warning-page {
    background: #F7F9FC;
}

.warning-page .page-content {
    max-width: 720px;
    background: transparent;
}

.warning-page .page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1B1B1B;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.35s ease-out forwards;
}

.warning-page .page-subtitle {
    font-size: 15px;
    color: #6A6A6A;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.35s ease-out 0.15s forwards;
}

.warning-page .page-subtitle .highlight {
    color: var(--azul-gov);
    font-weight: 600;
}

.warning-box {
    background: #FFF9E6;
    border-left: 4px solid #FFB800;
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: scale(0.98);
    animation: scaleInWarning 0.4s ease-out 0.3s forwards;
}

.warning-box p {
    font-size: 15px;
    line-height: 1.8;
    color: #1B1B1B;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.warning-box p.animate {
    opacity: 1;
    transform: translateY(0);
}

.warning-box p strong {
    font-weight: 700;
    color: #1B1B1B;
}

.warning-box p.highlight-important {
    background: rgba(255, 184, 0, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    margin: var(--spacing-md) 0;
    border-left: 3px solid #FFB800;
}

/* Animações específicas para warning page */
@keyframes scaleInWarning {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Botões com hover melhorado */
.warning-page .btn-primary:hover,
.warning-page .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.warning-page .nav-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease-out 0.6s forwards;
}

.price-box {
    background: var(--azul-gov);
    color: var(--branco);
    border-radius: 8px;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.price-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.price-note {
    font-size: 13px;
    opacity: 0.85;
}

/* ============================================
   RODAPÉ
   ============================================ */

.footer-gov {
    background-color: var(--azul-escuro);
    color: var(--branco);
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
}

.footer-links a {
    color: var(--branco);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.page-footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* ============================================
   PÁGINA INTRODUÇÃO
   ============================================ */

.intro-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.intro-page .page-content {
    max-width: 600px;
    margin: 0 auto;
    justify-content: center;
}

.intro-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--azul-gov);
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-page p {
    font-size: 18px;
    color: var(--cinza-texto);
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 480px;
}

.payment-page .page-content {
    text-align: center;
}

.lock-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   MELHORIAS DE HOVER GOV.BR
   ============================================ */

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 81, 180, 0.25);
}

.btn-secondary:hover {
    background: rgba(19, 81, 180, 0.08);
    transform: translateY(-1px);
}

.checklist-item:hover {
    background: #FAFBFC;
    border-radius: 8px;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* ============================================
   RESPONSIVIDADE MOBILE - CONSOLIDADA
   ============================================ */

@media (max-width: 768px) {
    /* ============================================
       HEADER - MÁXIMO 15% DA ALTURA DA TELA
       ============================================ */
    .gov-header {
        max-height: 15vh; /* Máximo 15% da altura da tela */
        min-height: 50px;
        overflow: hidden;
    }
    
    .header-top {
        padding: 6px 12px;
        min-height: 50px;
        max-height: 50px;
        height: 50px;
    }
    
    .logo-gov {
        font-size: 16px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--branco);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--cinza-borda);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-utils {
        gap: 4px;
    }
    
    /* Esconder elementos desnecessários em mobile */
    .lang-selector,
    .theme-toggle,
    .grid-menu,
    .btn-entrar,
    .search-bar {
        display: none;
    }
    
    .search-section {
        padding: var(--spacing-sm);
    }
    
    /* ============================================
       CONTEÚDO - COMEÇA IMEDIATAMENTE ABAIXO DO HEADER
       ============================================ */
    .page-content {
        width: 95%;
        max-width: 600px;
        padding: 12px 15px 15px 15px; /* Padding top reduzido */
        margin: 0 auto;
        padding-top: 12px; /* Conteúdo começa imediatamente abaixo do header */
    }
    
    /* ============================================
       REDUZIR ESPAÇAMENTOS VERTICAIS
       ============================================ */
    .page-title {
        font-size: 22px;
        margin-bottom: 6px;
        margin-top: 0;
        line-height: 1.2;
    }
    
    .page-subtitle {
        font-size: 14px;
        margin-bottom: var(--spacing-sm);
        line-height: 1.4;
    }
    
    .form-group {
        margin-bottom: var(--spacing-sm);
    }
    
    .welcome-message {
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing-sm);
        font-size: 14px;
    }
    
    /* ============================================
       BOTÕES OTIMIZADOS PARA TOQUE
       ============================================ */
    .btn {
        min-height: 52px;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .btn-primary {
        margin-top: var(--spacing-sm);
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
        margin-top: var(--spacing-sm);
    }
    
    /* ============================================
       PÁGINAS ESPECÍFICAS DO FUNIL
       ============================================ */
    .validation-page .page-content,
    .process-page .page-content,
    .warning-page .page-content,
    .payment-page .page-content {
        width: 95%;
        padding: 12px 15px 15px 15px;
    }
    
    .validation-header {
        margin-bottom: var(--spacing-sm);
    }
    
    .validation-header-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .validation-header-subtitle {
        font-size: 14px;
    }
    
    .process-page .page-title {
        font-size: 22px;
        margin-bottom: 6px;
        margin-top: 0;
    }
    
    .process-page .page-subtitle {
        font-size: 14px;
        margin-bottom: var(--spacing-sm);
    }
    
    .process-cards {
        margin-top: var(--spacing-sm);
    }
    
    .process-card {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .warning-page .page-title {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .warning-page .page-subtitle {
        font-size: 14px;
        margin-bottom: var(--spacing-sm);
    }
    
    .warning-box {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) 0;
    }
    
    .price-box {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) 0;
    }
}

@media (max-width: 480px) {
    /* ============================================
       HEADER - AINDA MAIS COMPACTO
       ============================================ */
    .gov-header {
        max-height: 12vh; /* Reduzido para telas muito pequenas */
        min-height: 45px;
    }
    
    .header-top {
        padding: 4px 10px;
        min-height: 45px;
        max-height: 45px;
        height: 45px;
    }
    
    .logo-gov {
        font-size: 14px;
    }
    
    /* ============================================
       CONTEÚDO - MÁXIMA LARGURA E PADDING MÍNIMO
       ============================================ */
    .page-content {
        width: 98%;
        padding: 10px 12px 12px 12px; /* Padding top ainda menor */
    }
    
    .validation-page .page-content,
    .process-page .page-content,
    .warning-page .page-content,
    .payment-page .page-content {
        width: 98%;
        padding: 10px 12px 12px 12px;
    }
    
    /* ============================================
       TIPOGRAFIA REDUZIDA
       ============================================ */
    .page-title {
        font-size: 20px;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .page-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    /* ============================================
       INPUTS E BOTÕES
       ============================================ */
    input[type="date"],
    input[type="tel"],
    input[type="email"],
    input[type="text"],
    select {
        font-size: 16px;
        padding: 12px 14px;
        min-height: 48px;
    }
    
    .btn {
        min-height: 50px;
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* ============================================
       PÁGINAS ESPECÍFICAS - ESPAÇAMENTOS REDUZIDOS
       ============================================ */
    .validation-header {
        margin-bottom: var(--spacing-sm);
    }
    
    .validation-header-title {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .validation-header-subtitle {
        font-size: 12px;
    }
    
    .validation-container {
        padding: var(--spacing-xs);
    }
    
    .checklist-item {
        padding: 8px 0;
    }
    
    .checklist-title {
        font-size: 14px;
    }
    
    .checklist-description {
        font-size: 12px;
    }
    
    .process-page .page-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .process-page .page-subtitle {
        font-size: 13px;
        margin-bottom: var(--spacing-sm);
    }
    
    .process-cards {
        margin-top: var(--spacing-sm);
    }
    
    .process-card {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .process-card-title {
        font-size: 14px;
    }
    
    .warning-page .page-title {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .warning-page .page-subtitle {
        font-size: 13px;
        margin-bottom: var(--spacing-sm);
    }
    
    .warning-box {
        padding: var(--spacing-xs);
        margin: var(--spacing-sm) 0;
    }
    
    .warning-box p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .price-box {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) 0;
    }
    
    .price-value {
        font-size: 26px;
    }
    
    /* ============================================
       ESPAÇAMENTOS GERAIS REDUZIDOS
       ============================================ */
    .form-group {
        margin-bottom: 10px;
    }
    
    .nav-buttons {
        margin-top: var(--spacing-xs);
        gap: 8px;
    }
    
    .welcome-message {
        margin-bottom: var(--spacing-sm);
        padding: 10px;
        font-size: 13px;
    }
    
    /* ============================================
       PREVENIR OVERFLOW
       ============================================ */
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}
