/* 
 * CBFS Lead Unified Distributor - Estilos principais
 * Version: 1.0.0
 */

/* Estilos gerais para todas as ferramentas */
.cbfs-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cbfs-popup-container {
    background: #fff;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Botão WhatsApp flutuante */
#cbfs-whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
}

#cbfs-wa-icon {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

#cbfs-wa-icon:hover {
    transform: scale(1.1);
}

#cbfs-wa-card {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Formulários de contato */
.cbfs-contact-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cbfs-contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cbfs-form-group {
    margin-bottom: 20px;
}

.cbfs-form-input, .cbfs-form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.cbfs-form-input:focus, .cbfs-form-select:focus {
    border-color: #25d366;
    outline: none;
}

.cbfs-form-button {
    width: 100%;
    padding: 18px;
    background: #000;
    color: #FFD700;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.cbfs-form-button:hover {
    background: #333;
}

.cbfs-form-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Página de evento */
.cbfs-event-page {
    font-family: sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cbfs-event-hero {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #000, #333);
    color: #FFD700;
    padding: 40px 20px;
    border-radius: 15px;
}

.cbfs-event-hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.cbfs-event-form {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cbfs-event-button {
    width: 100%;
    padding: 20px;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.cbfs-event-button:hover {
    background: #fff380;
}

.cbfs-event-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsividade */
@media (max-width: 768px) {
    .cbfs-popup-container {
        max-width: 90%;
    }
    
    #cbfs-whatsapp-button {
        bottom: 15px;
        right: 15px;
    }
    
    #cbfs-wa-icon {
        width: 50px;
        height: 50px;
    }
    
    #cbfs-wa-card {
        width: 280px;
        right: -10px;
    }
    
    .cbfs-contact-page,
    .cbfs-event-page {
        padding: 20px 15px;
    }
}

/* Animações */
@keyframes cbfs-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cbfs-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cbfs-fade-in {
    animation: cbfs-fade-in 0.3s ease-out;
}

.cbfs-slide-up {
    animation: cbfs-slide-up 0.4s ease-out;
}

/* Estados de loading */
.cbfs-loading {
    position: relative;
    pointer-events: none;
}

.cbfs-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: cbfs-spin 0.6s linear infinite;
}

@keyframes cbfs-spin {
    to { transform: rotate(360deg); }
}

/* Mensagens de status */
.cbfs-message {
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
}

.cbfs-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cbfs-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cbfs-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}