/* Estilos globais para o projeto */

/* Botão WhatsApp flutuante - estilo comum */
#btn_chat_whatsapp {
    white-space: nowrap;
    overflow: hidden;
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 150px;
    right: 20px;
    background-color: #2563eb;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 1px 1px 2px #888;
    z-index: 99999;
    text-decoration: none;
    transition: width .35s ease-in-out;
}

#btn_chat_whatsapp span {
    font-size: 15px;
    float: left;
    margin-top: 4px;
    margin-left: 30px;
    vertical-align: middle;
    white-space: nowrap;
    display: none;
}

#btn_chat_whatsapp:hover {
    width: 220px;
}

#btn_chat_whatsapp:hover span {
    display: inline;
}

/* Estilos para formulários */
.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Estilos para botões */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Estilos para accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Estilos para Select2 */
.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2563eb;
}

/* Garante que listas do Select2 não herdem ícone de check de outros CSS (ul li::before global) */
.select2-container .select2-results__options > .select2-results__option {
    display: block;
    margin-bottom: 0;
}

.select2-container .select2-results__option::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    flex: none !important;
}

/* Estilos para depoimentos */
.blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
}

/* Estilos para tags */
.tag {
    background-color: #2563eb;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Estilos para ícones */
.icone {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

/* Estilos para formulário de localidade no rodapé */
.form-localidade-rodape {
    font-size: 0.95em;
}

.select-estado-rodape {
    width: 140px;
}

.select-cidade-rodape {
    width: 160px;
}

/* Ajustes mobile para os selects do footer */
@media (max-width: 980px) {
    .form-localidade-rodape {
        width: 100%;
        margin-top: 1rem;
    }
    
    .select-estado-rodape {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    .select-cidade-rodape {
        width: 100% !important;
    }
    
    /* Força os selects a ficarem um abaixo do outro */
    .form-localidade-rodape .d-flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* Força o container dos selects a ter largura total */
    .form-localidade-rodape {
        width: 100% !important;
    }
    
    /* Remove flex-wrap para garantir que fiquem um abaixo do outro */
    .form-localidade-rodape .d-flex.flex-wrap {
        flex-wrap: nowrap !important;
    }
    
    /* Força o container mobile a ter largura total e direção coluna */
    .mobile-selects-container {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Garante que os selects tenham largura total */
    .mobile-selects-container select {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    /* Força o Select2 a ter largura total no mobile */
    .mobile-selects-container .select2-container {
        width: 100% !important;
    }
    
    /* Select padrão do navegador no mobile (sem Select2) */
    @media (max-width: 980px) {
        /* Remove estilos do Select2 para usar select nativo */
        .select2-container {
            display: none !important;
        }
        
        /* Mostra o select nativo */
        select.select2-hidden-accessible {
            display: block !important;
            width: 100% !important;
            height: 38px !important;
            padding: 0.375rem 0.75rem !important;
            font-size: 1rem !important;
            border: 1px solid #ced4da !important;
            border-radius: 0.375rem !important;
        }
    }
}

/* Estilos para ícone do WhatsApp */
.whatsapp-icon {
    margin-top: 15px;
    fill: #fff;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .btn_chat_whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .btn_chat_whatsapp span {
        font-size: 13px;
        margin-top: 18px;
        margin-left: 25px;
    }
    
    .btn_chat_whatsapp:hover {
        width: 180px;
    }
} 