/* ========================================
   BOTÃO FLUTUANTE WHATSAPP
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.whatsapp-float__button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float__button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__button i {
    font-size: 32px;
    color: #fff;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

/* ========================================
   MODAL WHATSAPP
   ======================================== */

.whatsapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.whatsapp-modal.active {
    display: flex;
}

.whatsapp-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.whatsapp-modal__content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-modal__close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.whatsapp-modal__close i {
    font-size: 14px;
    color: #666;
}

.whatsapp-modal__header {
    text-align: center;
    margin-bottom: 30px;
}

.whatsapp-modal__header i {
    font-size: 56px;
    color: #25D366;
    margin-bottom: 15px;
}

.whatsapp-modal__header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.whatsapp-modal__header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ========================================
   FORMULÁRIO MODAL
   ======================================== */

.whatsapp-modal__form .form-group {
    margin-bottom: 16px;
}

.whatsapp-modal__form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Kumbh Sans', sans-serif;
}

.whatsapp-modal__form input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.whatsapp-modal__form input::placeholder {
    color: #999;
}

.whatsapp-modal__submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    font-family: 'Kumbh Sans', sans-serif;
}

.whatsapp-modal__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-modal__submit:active {
    transform: translateY(0);
}

.whatsapp-modal__submit i {
    font-size: 20px;
}

.whatsapp-modal__submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Feedback do formulário WhatsApp */
#whatsapp-form-feedback {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

#whatsapp-form-feedback.form-feedback--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#whatsapp-form-feedback.form-feedback--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float__button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float__button i {
        font-size: 28px;
    }
    
    .whatsapp-modal__content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .whatsapp-modal__header h3 {
        font-size: 20px;
    }
}