/* ============================================================
   RESPONSIVIDADE - PÁGINA DE OFERTAS CBA 2026 (FINAL)
   ============================================================ */

/* ============================================================
   RESPONSIVIDADE - PÁGINA DE OFERTAS CBA 2026
   ============================================================ */

/* 1. RESET E CONFIGURAÇÕES GLOBAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

:root {
    --primary: #1a365d;
    --secondary: #27ae60;
    --accent: #f39c12;
    --light: #f8f9fa;
    --dark: #2d3436;
    --transition: all 0.3s ease;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* BLOQUEIO DE ROLAGEM (Menu Aberto) */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
    position: fixed !important;
    top: 0;
    left: 0;
}

/* --- AJUSTES PARA TELAS ATÉ 992px --- */
@media screen and (max-width: 992px) {

    /* 2. NAVBAR */
    .navbar {
        background-color: transparent;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 3000;
        height: 70px;
        display: flex;
        align-items: center;
        transition: background-color 0.4s ease;
    }

    .navbar.rolagem {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    }

    .navbar.rolagem .logo-texto { color: #1a365d; }
    .navbar.rolagem .menu-toggle .bar { background-color: #1a365d; }

    .navbar-container {
        width: 100%;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img { height: 35px; }
    .logo-texto { font-size: 0.85rem; color: #fff; line-height: 1.2; }
    .logo-texto span { display: block; font-size: 0.55rem; }

    /* 3. MENU FULL SCREEN */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
        cursor: pointer;
        z-index: 3100;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
        transition: 0.3s;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #003366;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: 0.5s ease-in-out;
        z-index: 2500;
    }

    .nav-links.active { right: 0; }
    .nav-links a { color: #fff; text-decoration: none; display: block; padding: 15px; text-align: center; font-size: 1.5rem; }
    .btn-oferta { background-color: #FFCC00 !important; color: #003366 !important; border-radius: 50px; margin: 10px; font-weight: bold; }

    /* 4. HERO OFERTAS */
    .ofertas-hero {
        min-height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 80px 20px 40px 20px;
        text-align: center;
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?q=80&w=1600');
        background-size: cover;
        background-position: center;
    }

    .hero-content h1 { font-size: 1.8rem; color: #fff; margin-bottom: 15px; }

    /* 5. FORMULÁRIO E SOLUÇÃO DO VAZAMENTO DO SELECT */
    .portal-engajamento, 
    .form-estilizado, 
    .secao-extra {
        width: 100% !important;
        max-width: 100% !important;
        padding: 70px 10px !important; /* Ajustado para remover o buraco de 90px */
        overflow: hidden !important;
    }

    .input-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    /* ESTILO DOS BOTÕES DE VALOR */
    .opcoes-valores {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 15px 0;
        justify-content: center;
    }

    .btn-valor {
        flex: 1;
        min-width: 75px;
        border: 2px solid var(--primary);
        padding: 12px 5px;
        border-radius: 8px;
        text-align: center;
        font-weight: bold;
        color: var(--primary);
        background: #fff;
        cursor: pointer;
    }

    /* Esconde o radio mas mantém funcional */
    .btn-valor input { display: none; }

    /* Quando selecionado (utilizando :has para CSS moderno) */
    .btn-valor:has(input:checked) {
        background: var(--primary);
        color: #fff;
    }

    #valor-customizado {
        width: 100% !important;
        margin-top: 10px !important;
        border: 2px solid var(--primary) !important;
        display: none; /* Controlado pelo JS */
    }

    /* DROPDOWN ANTI-VAZAMENTO */
    .select-estilizado {
        width: 100% !important;
        max-width: 100% !important;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #fff;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a365d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 15px;
        text-overflow: ellipsis;
        padding: 10px !important;
        font-size: 0.7rem !important;
    }

    /* 6. CARDS DE ENVOLVIMENTO */
    .escolha-envolvimento {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .opcao-card {
        width: calc(33.33% - 10px);
        min-width: 90px;
    }

    .card-content h4 { font-size: 0.75rem; color: #1a365d; }

    /* 7. DADOS BANCÁRIOS E CONTATOS */
    .dados-bancarios {
        padding: 15px;
        background: #fff;
        border: 1px dashed #1a365d;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .banco-item span {
        word-break: break-all;
        font-size: 1.1rem;
        color: #d35400;
        font-weight: bold;
    }

    .upload-area {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .canais-contato {
        display: flex;
        flex-direction: column;
        align-content: center;
    }

    .contato-card {
        width: 100%;
        flex-direction: row;
        text-align: left;
    }


    /* 8. FOOTER */
    .footer-container { flex-direction: column; gap: 40px; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }

    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    #mobile-menu.is-active .bar { background-color: #fff !important; }
}

@media screen and (max-width: 480px) {
    .opcao-card { width: 100%; }
    .hero-content h1 { font-size: 1.5rem !important; }
}