Without knowing the specifics, usually you are not awarded an attorney in this type of a setting because you hold the key to the jail, comply with the courts orders and you will be released.
You need to speak with an attorney right away.
This response is not intended to create an attorney client relationship, nor is it given as legal advice and should not be relied upon as such. Always consult with a licensed attorney regarding the specifics of your particular case.
Incarceration does not necessarily convert a civil contempt into a criminal contempt IF the Court is trying to Compel you to perform an act a prior order required you to perform. However, the Court also has to give you the "keys to your jail cell" also known as a "purge" which allows you to to either avoid, or sometimes be released, by demonstrating you have fulfilled the "purge" provision.
It truly sounds to me as though you really need to be speaking with a Phoenix based attorney. A consultation fee is far less expensive than a forced un-paid vacation at Club Hoosegow.