/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #20ba5a);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: translateY(-1px) scale(1.02);
}

/* Modal CRM Styles */
.crm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(17, 25, 40, 0.8);
    backdrop-filter: blur(6px);
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.crm-modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 0;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(17, 25, 40, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}

.crm-modal-header {
    background: linear-gradient(135deg, #25D366, #20ba5a);
    color: white;
    padding: 24px 28px;
    text-align: center;
    position: relative;
}

.crm-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.crm-form {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.form-group input {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.btn-cancel,
.btn-submit {
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-family: inherit;
}

.btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, #25D366, #20ba5a);
    color: white;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.25);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .crm-modal {
        padding: 15px;
    }

    .crm-modal-content {
        max-width: 100%;
        margin: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .crm-modal-header {
        padding: 20px 24px;
    }

    .crm-modal-header h3 {
        font-size: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .crm-modal {
        padding: 10px;
    }

    .crm-modal-content {
        border-radius: 12px;
    }

    .crm-modal-header {
        padding: 18px 20px;
    }

    .crm-modal-header h3 {
        font-size: 18px;
    }

    .crm-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}
