What Is a Culpable Mental State in Arizona? (13-105)
Staring at a charging document in Arizona and stuck on a word like ‘knowingly’ or ‘recklessly’? A.R.S. § 13-105 defines four culpable mental states, and for most crimes the state must prove one beyond a reasonable doubt or the charge fails. Here is what each level really means.
As Seen On

Recognized By
Featured Answer
What is a culpable mental state in Arizona?
A culpable mental state is the level of intent Arizona requires the state to prove for a crime. A.R.S. 13-105 defines four: intentionally, knowingly, recklessly, and criminal negligence. For most charges the required mental state is an element, and if the state cannot prove it, the charge fails.

If you searched “culpable mental state Arizona,” you are probably trying to understand a word in a charging document that does not sound like everyday English: intentionally, knowingly, recklessly, or with criminal negligence. That word is not filler. It is the mental element the prosecutor has to prove beyond a reasonable doubt, and it is often the difference between a serious felony and a much lesser charge, or between a conviction and an acquittal. This guide breaks all four levels down in plain language, with everyday examples, and shows why the mental state is so often where cases are actually won and lost. For the bigger picture on how charges are built and defended, see our Arizona criminal defense overview.
A culpable mental state, sometimes called criminal intent or the mens rea, is the state of mind the law requires a person to have had at the time of the act in order to be guilty of a crime. Arizona does not punish results in a vacuum. For most offenses, it punishes a result or conduct combined with a specific blameworthy frame of mind. The same physical act, say, causing another person’s death, can be first degree murder, second degree murder, manslaughter, or negligent homicide depending almost entirely on what the state can prove was going on in your head.
Arizona defines its mental states in one place: A.R.S. 13-105(10). That single subsection lists all four levels the entire criminal code draws from, ranked from most blameworthy to least. When you read almost any Arizona criminal statute, you will see one of these four words baked into the definition of the offense, and that word tells you exactly what the prosecutor has signed up to prove.
The four culpable mental states under A.R.S. 13-105
The four levels are ordered by how culpable they are. “Intentionally” is the most blameworthy because you were actually trying to bring about the result. “Criminal negligence” is the least blameworthy because you were not even aware of the risk you should have seen. Proving a higher level automatically satisfies any lower one, so if the state can prove you acted intentionally, it has also proven you acted knowingly, recklessly, and with criminal negligence. The table below lays out the statutory definition of each, in the language of A.R.S. 13-105, next to a plain example.
The four culpable mental states compared
Source: A.R.S. 13-105(10)(a)-(d), from most culpable to least
| Mental state | What the law requires | Everyday example |
|---|---|---|
| Intentionally | Your objective is to cause that result or to engage in that conduct. You want it to happen. | Aiming a firearm at someone and pulling the trigger to kill them. The death is the goal. |
| Knowingly | You are aware, or believe, that your conduct is of that nature or that the circumstance exists. You may not want the result, but you know what you are doing. | Firing a gun into a room you know is occupied. You may not aim at anyone, but you know bullets are going into people’s space. |
| Recklessly | You are aware of, and consciously disregard, a substantial and unjustifiable risk that the result will occur. You saw the danger and blew past it. | Street racing through a red light in traffic. You know someone could be killed and you gun it anyway. |
| Criminal negligence | You fail to perceive a substantial and unjustifiable risk that the result will occur. You did not see the danger, but a reasonable person would have. | Leaving a loaded handgun on a coffee table where a small child finds it. You did not notice the risk you should have. |
Definitions are paraphrased from the statute for readability. For the exact statutory language, including the “gross deviation from the standard of conduct” qualifier attached to recklessly and criminal negligence, read A.R.S. 13-105(10) directly.
The four states in plain English, with examples
The gap between these levels is smaller than it looks on paper, and that is exactly where cases are fought. The dividing line between the two most dangerous-sounding levels, recklessly and criminal negligence, is a single word: awareness.
Recklessly means you were aware of a substantial risk and consciously chose to ignore it. You saw the danger and drove into it anyway. Criminal negligence means you were not aware of the risk at all, but a reasonable person in your shoes would have been. The conduct can look identical from the outside. What separates them is whether the state can prove you actually registered the danger. That one distinction routinely moves a case up or down an entire charge, which is why the next section matters so much.
The line between intentionally and knowingly works the same way. Intentionally means the result was your objective, your goal. Knowingly means you were aware your conduct was practically certain to cause it, even if the result itself was not what you were after. A person who fires into a crowd to scare people, without wanting to hit anyone, may not have acted intentionally as to an injury, but a jury can readily find they acted knowingly. Prosecutors often charge at the intentional level and fall back to knowing, so understanding the difference is not academic.
Why the mental state is the make-or-break element
Because the mental state is a separate element, changing it changes the crime, even when every physical fact stays the same. The clearest example in Arizona law is the line between manslaughter and negligent homicide. Both involve one person causing another’s death. The only difference is the mental state.
A.R.S. 13-1103 defines manslaughter to include recklessly causing the death of another person, and it is a class 2 felony. A.R.S. 13-1102 defines negligent homicide as causing a death with criminal negligence, and it is a class 4 felony. Same death, same conduct. If the state can prove you were aware of the risk, it is reckless manslaughter, a class 2. If it can only prove you failed to perceive the risk, it is negligent homicide, a class 4, with dramatically lower exposure. The entire distance between those two charges is whether a prosecutor can put awareness in your mind. We break this exact comparison down further in our guide on manslaughter versus negligent homicide in Arizona.
The same dynamic runs through the assault statutes, where whether an injury was caused intentionally, knowingly, or recklessly helps sort simple assault from aggravated assault and sets the felony class. Our comparison of assault versus aggravated assault shows how the required mental state, alongside the alleged harm, drives the charge. Across the code, if you shift the provable mental state down one level, you frequently shift the entire charge and its sentence with it.
How the state proves you had the required mental state
No one can read your mind, and prosecutors know it. Except in the rare case where someone confesses their intent, the state proves a mental state through circumstantial evidence and asks the jury to infer what you were thinking from what you did. Arizona jury instructions expressly allow this: intent and knowledge can be inferred from conduct and surrounding circumstances. In practice, the state builds the inference from things like these.
- Your words and messages. Texts, social media posts, recorded jail calls, and statements to police are mined for anything that suggests a goal or awareness of risk.
- Your conduct before and after. Planning, buying tools, lying in wait, fleeing, hiding evidence, or cleaning up are all offered as proof you knew what you were doing.
- The nature of the act itself. Firing multiple rounds, aiming at a vital area, or driving at extreme speed is used to argue the result was intended or, at minimum, known to be likely.
- The obviousness of the risk. For reckless or negligent charges, the state argues the danger was so plain that you either saw it (reckless) or clearly should have (criminal negligence).
Every one of these is an inference, not a fact. The prosecutor is not proving what was in your mind. They are proving facts and inviting the jury to fill in the mental state. That gap between the proven facts and the assumed intent is exactly where a defense goes to work.
How attacking the mental-state element wins cases
Because the mental state is an element the state must prove beyond a reasonable doubt, it is also a target. You do not always have to dispute that an act happened to beat or reduce a charge. You can concede the act and contest the intent. A few of the most common approaches:
- Argue the wrong level. If the state charged an intentional crime but the evidence only supports recklessness or negligence, the defense pushes the jury toward the lesser mental state and, with it, a lesser included offense that carries far less exposure.
- Accident and mistake. A genuine accident negates intent and knowledge. If a result truly was not your objective and you were not aware you were practically certain to cause it, the higher mental states do not fit.
- Attack the inference. Every innocent explanation for the conduct the state points to, the text taken out of context, the flight born of panic rather than guilt, weakens the leap from fact to intent.
- Mental state and capacity. In narrow circumstances, evidence about a defendant’s mental condition bears on whether they could form the required intent. That is a distinct and demanding area of law we cover in our overview of the insanity defense in Arizona.
None of this guarantees an outcome, and every case turns on its own facts. But it explains why an experienced defense lawyer often spends as much time on what you were thinking as on what you did. Reasonable doubt about the mental state is reasonable doubt about the charge.
What if the statute lists no mental state?
Sometimes a statute describes conduct without naming intentionally, knowingly, recklessly, or criminal negligence. Arizona has a default rule for that. Under A.R.S. 13-202(B), when a statute defining an offense does not expressly prescribe a culpable mental state, no mental state is required and the offense is one of strict liability, unless the conduct the statute describes necessarily involves a culpable mental state. In other words, a silent statute does not automatically get intentionally, knowingly, or recklessly read into it; the question is whether the prohibited conduct itself necessarily involves a mental state. This is why the mental state matters even when the charging document does not spell it out, and why it is worth having a lawyer read the specific statute you are charged under to pin down exactly what the state has to prove.
A small set of offenses, many traffic and regulatory violations, are genuine strict-liability offenses where no mental state is required at all. But for the serious criminal charges people worry about, felonies and most misdemeanors, a culpable mental state is almost always in play. Identifying it is the first thing a defense should do, because it defines the target.
Award-Winning Criminal Defense Law Firm
When you are looking for the best Phoenix criminal defense lawyers, these are the independently verified credentials that matter, earned by Founding Attorney Michael Tamou and a full team of attorneys, including former prosecutors.
Client reviews
What our clients say
I highly recommend Michael Tamou! He recently handled my GCE application, and I couldn't be more grateful for his help. From the very beginning, Michael was incredibly professional, knowledgeable, and thorough in making sure everything was completed perfectly. What stood out the most was his compassion—legal processes can be highly stressful, but he treated me with genuine care, kept me informed, and made me feel completely supported throughout. If you need a dedicated and skilled attorney who truly cares about his clients, look no further than Michael Tamou.
DMDan MillerGoogle review · Oct 2026Michael Tamou is an exceptional attorney! Facing a case that could affect my future was incredibly stressful, but from our first conversation, he provided honest guidance, reassurance, and a clear plan. He immediately got to work, personally reviewing the evidence and reports, filing the necessary motions, and keeping me informed throughout the process. His expertise, persistence, and genuine care gave me confidence that my case was in capable hands. I’m incredibly grateful that Michael achieved the outcome I had hoped and prayed for: my case was dismissed. I highly recommend him to anyone seeking a skilled, dedicated, and caring attorney.
TJTammy JohnsonGoogle review · Sep 2026I had a great experience working with Michael. From the beginning, they were professional, knowledgeable, and responsive. They took the time to explain everything clearly, kept me informed throughout the process, and always had my best interests in mind. Their dedication and attention to detail gave me confidence during a stressful time, and they achieved a positive outcome for my case. I truly appreciate their hard work and would highly recommend them to anyone looking for an experienced and trustworthy attorney. Thank so much Tamou Law Group.
AAAlejandra ArevaloGoogle review · Aug 2026This is a great group of attorneys that work together!! There’s no other law firm I’d use for any situation. They put the time and effort into helping out any way they can. Mike and Kristie were both amazing in handling my situation and being transparent during the whole process.
TTJ2KGoogle review · Nov 2026I can’t thank Tamou Law Group enough for helping me with my case. They truly went above and beyond, and I’m incredibly grateful for their hard work, dedication, and support. Having a team in your corner that cares makes all the difference during a stressful time. Five stars don’t feel like enough! I highly recommend them to anyone looking for a law firm that will go the extra mile. Thank you for everything!
EGEvan GibraelGoogle review · Oct 2026I cannot recommend Ms. Jacie Cotterell highly enough. From start to finish, she was absolutely amazing throughout the entire process. She was professional, knowledgeable, and always took the time to answer my questions and explain everything clearly, which gave me a lot of peace of mind during a stressful situation. What stood out most was how genuinely caring and dedicated she was. I always felt like she had my best interests at heart, and her communication was excellent every step of the way. She made a difficult experience much easier to navigate and was always patient, supportive, and reassuring. I am incredibly grateful for all of her hard work and guidance. If you’re looking for someone who is compassionate, trustworthy, and truly committed to helping her clients, I wholeheartedly recommend Ms. Jacie Cotterell. Thank you again for everything, wyou made a lasting positive impact, and I truly appreciate all that you did.
BPBlaze PeralesGoogle review · Aug 2026Michael is hands down the best in the business. The day I called him he explained everything about my daughter’s situation and took the time to research the charges. He then gave me a price and gave me a chance to think it through before hiring him and two weeks later we retained his services. Michael went to work at that point with his team and brought results that no one else could do. My daughter now has a second chance to get her life on track over a few costly mistakes that could have landed her in prison and with a felony record but Michael did not allow that to happen. If you need solid representation that fights for you then hire Michael.
RHrob hardeeGoogle review · Aug 2026Kristie & Mike didn’t just see me as another client but as a person in need of help. The level of professionalism & communication going through my whole case made me feel at peace. Amazing lawyers & 10/10 would recommend!
DNDanny NguyenGoogle review · Oct 2026We {Carrie & Ted S.} are very pleased that we chose Mike Tamou Law Group to represent a criminal case that was against our granddaughter. The case against her was for two different ordeals, and in both situations - the cases were handled above & beyond what we expected. Because of Mike's quickness and professionalism, both situations were resolved in an expedited manor with positive results that we were extremely pleased with. Our granddaughter is also extremely pleased with the results. We would recommend {Mike} Tamou Law Group to anybody that is seeking legal advice in a criminal situation.
TSTed SchroederGoogle review · Jul 2026I had an aggravated DUI case class 4 felony. With an extensive criminal record of 7 prior felonies. Mr. Tamou did an outstanding job on my case, he got me the least possible amount of time. He got the prosecutor not to allege any of my priers. I did just 4 months with a probation tail. Other lawyers I spoke with prior to retaining M. Tamou, told me the best they could get, would be a few years in prison, due to my extensive criminal history. Michael said he would fight for me and he delivered. He has relationships with the prosecutors and judges and is a great negotiator. Also he was great with communicating with me throughout the process. Always returned my calls and text messages and kept me informed. I highly recommend him.
PGPaul GonzalezGoogle review · May 2026I had a great experience with Tamou Law! Michael was very helpful. He took the time to explain everything in a way that was easy for me to understand, which made the entire process feel much less overwhelming. He was patient, professional, and always made sure I felt informed and comfortable with each step. I truly appreciated his communication and support throughout! HIGHLY RECOMMEND!
SSandraGoogle review · Apr 2026Michael is truly amazing. I am so happy that I chose him to help me with my legal situation. He is completely trustworthy. Michael was completely transparent and honest throughout the entire process and offered support to me like I was his own family member. He was patient and understanding and prompt in responding to any of my inquiries during my waiting period. His explanations were clear and logical, and I felt beyond comfortable with him. I really appreciate him and the staff in his practice, and I highly recommend him for anyone's legal needs!! Thank you, Michael! You're really the best. I appreciate you!
RLRochelle LeeGoogle review · Feb 2026Our family went through the worst time of our lives! It was wonderful to have Michael on our side fighting for us and giving us the advice we needed to take the right steps. Case Dismissed! Thank you for your hard work, dedication, and support.
RERussell EllisGoogle review · Aug 2026He's the Greatest lawyer we could have ever asked for he put his heart into helping us and we came out with exactly what we wanted! I highly recommend him!
JOJose OrtizGoogle review · Oct 2026⭐️⭐️⭐️⭐️⭐️ I cannot thank Mike Tamou enough for what he did for my family. My son was facing serious charges that could have changed the course of his life forever. From the very beginning, Mr. Tamou treated us with compassion, respect, and honesty. He took the time to explain every step of the process, always making sure we understood what was happening and what to expect. His professionalism and dedication were unmatched. He worked tirelessly on my son’s case, exploring every possible option and fighting for the best outcome. Because of Mike’s skill, expertise, and determination, my son was saved from going to jail and now has the opportunity to move forward and rebuild his life. I am forever grateful for his hard work and would highly recommend Mike Tamou to anyone in need of a strong, knowledgeable, and caring defense attorney. He doesn’t just represent his clients—he truly fight for them.
EHErin HernandezGoogle review · 2025Michael did an amazing job helping my loved one with his case. He was the first call I made and I knew right then how much he truly cared for his clients. I highly recommend Tamou Law to anyone who reads this review. Michael worked extremely hard for us and exceeded my expectations of the outcome. He is compassionate, very knowledgeable, experienced, respected and very fair. He always took the time to take my calls and to listen to questions that we had. He works hard for his clients and is the kind of guy you want on your side. Thanks again Michael. You were a pleasure to work with.
LBLaurie BryantGoogle review · 2024Great experience from start to finish. Professional, responsive, and made a stressful situation much easier. I felt confident the whole time and really appreciated Michael’s support. Highly recommend!
SMShivraj MannGoogle review · Apr 2026Had a situation that Michael helped me through with the best possible outcome. Very responsive and actually cares about his clients.
CJCaleb JohnsonGoogle review · Aug 2026My son was an idiot and was in serious trouble. He was facing prison time. Fortunately, we were referred to Tamou Law Group by trusted friends and we are beyond grateful that we listened. From the onset, Michael helped to put our family at ease. We discussed the charges where Mike provided insight that helped adjust our expectations. Sure enough, it played out nearly exactly like Mike predicted. Mike put a strong case together – which resulted with no jail time! If you find yourself in need of legal representation, you should hire Michael Timou!
AHArmando HernandezGoogle review · 2025I can’t recommend Tamou law group enough. From day one, Micheal took the time to really listen, explained my options in a way that actually made sense, and built a strong strategy that put my mind at ease. The entire team was professional, responsive and genuinely caring throughout the whole process. They fought tirelessly and delivered a result that far exceeded my expectations. If you need a law firm you can trust completely, this is it. Thank you!
BKBryan KingGoogle review · Dec 2025
Why Tamou Law Group for Criminal Defense
Every criminal case in Arizona is decided by what the State can prove, and the State proves less when the defense starts early. We get into cases before charges are filed whenever we can, and we build them on evidence rather than argument.
Results across the spectrum
Our published results include armed robbery and sexual assault cases dismissed, reckless driving dismissed, diversion on drug and theft charges, probation with no jail on aggravated DUI, and a second-degree murder charge reduced. Every case is different, and these show how we fight.
Former prosecutors and law enforcement officers
Our team includes former prosecutors and law enforcement officers, so we know how the State builds a case and where it breaks down. Michael Tamou handled roughly 500 cases a year at the public defender’s office before founding the firm.
Recognized, and available
Michael Tamou is recognized by the National Trial Lawyers Top 100 and Top 40 Under 40, Super Lawyers Southwest and Elite Lawyer 2026. We answer 24/7 from our Phoenix and Scottsdale offices, and we appear in Maricopa, Pima and Pinal County courts.
Published results in this area
| Case | Charges | Outcome |
|---|---|---|
| State v. D.O. | Armed robbery and aggravated assault (A.R.S. 13-1904, 13-1204) | Dismissed |
| State v. W.N. | Sexual assault and sexual abuse (13-1406, 13-1404) | Case dismissed |
| State v. C.K. | Reckless driving and racing (28-693, 28-708) | Case dismissed |
| State v. N.K. | Possession of narcotic drugs (13-3408, 13-3415) | Diversion |
| State v. L.S. | Aggravated DUI (28-1383) | Probation, no jail |
| State v. F.N. | Second-degree murder (13-1104) | Reduced charge |
Anonymized outcomes from our case results page. Every case is different; past results do not guarantee a future outcome.
Frequently Asked Questions
What are the four culpable mental states in Arizona?
Arizona recognizes four culpable mental states under A.R.S. 13-105(10), ranked from most to least blameworthy: intentionally, knowingly, recklessly, and criminal negligence. Almost every criminal statute builds one of these four words into the definition of the offense, and that word is what the prosecutor must prove beyond a reasonable doubt.
What is the difference between recklessly and criminal negligence?
The difference is awareness. Recklessly means you were aware of a substantial and unjustifiable risk and consciously disregarded it. Criminal negligence means you failed to perceive that risk at all, though a reasonable person would have. The conduct can look identical; what separates the two is whether the state can prove you actually recognized the danger.
What is the difference between intentionally and knowingly?
Intentionally means the result was your objective, what you were trying to make happen. Knowingly means you were aware your conduct was of that nature or practically certain to cause the result, even if the result itself was not your goal. Someone can act knowingly without acting intentionally, which is why prosecutors often charge both.
Is criminal intent the same as a culpable mental state in Arizona?
Yes, in everyday terms. “Criminal intent” and “mens rea” are common names for what Arizona statutes call the culpable mental state. Arizona breaks that concept into four specific, defined levels under A.R.S. 13-105 rather than one general idea of intent, so the precise level charged matters a great deal.
Does the prosecutor really have to prove what I was thinking?
Yes. For most crimes the culpable mental state is an element the state must prove beyond a reasonable doubt, just like the act itself. Because no one can read minds, prosecutors prove it with circumstantial evidence, your words, your conduct, and the nature of the act, and ask the jury to infer your state of mind from those facts.
How does the mental state change a homicide charge?
Dramatically. Recklessly causing a death is manslaughter, a class 2 felony under A.R.S. 13-1103. Causing the same death with criminal negligence is negligent homicide, a class 4 felony under A.R.S. 13-1102. Same act and same result, but the provable mental state alone separates two very different charges and sentences.
Can attacking the mental state get my charge reduced or dismissed?
It can. If the evidence only supports a lower mental state than the one charged, the defense can push toward a lesser included offense. Genuine accident or mistake can negate intent entirely. Reasonable doubt about the required mental state is reasonable doubt about the charge, so it is often a central line of defense.
What happens if a statute does not list a mental state?
Arizona has a default rule. Under A.R.S. 13-202(B), if a statute does not expressly set a culpable mental state, the offense is one of strict liability unless the conduct it describes necessarily involves a culpable mental state. Most serious offenses name a mental state in the statute itself, even when the charging document does not spell it out. A small set of regulatory offenses are true strict-liability crimes with no mental state.
Should I explain to police that I did not mean to do it?
No. Telling a detective you “did not mean it” or “knew it was risky” can hand the state the exact awareness a reckless or knowing charge requires. Statements about your state of mind are routinely used to supply the mental-state element. Politely decline to discuss it and ask for a lawyer before saying anything.
Does a mental illness affect the required mental state?
In narrow circumstances it can bear on whether a person was capable of forming the required intent, and Arizona recognizes a separate, demanding insanity defense with its own legal standard. This is a specialized area with strict rules and deadlines, so it should be evaluated by a defense attorney familiar with how Arizona handles mental-state and capacity evidence.
Two Arizona Offices, One Team
We serve all of Maricopa County and the surrounding area, with free, confidential consultations 24/7 by phone and in-person meetings at either office by appointment.
Case Results Disclaimer: The results described on this page are based on specific facts and circumstances and do not guarantee or predict a similar outcome in any future case. Every case is different. Past results do not guarantee future results. No attorney-client relationship is formed by viewing this page or submitting a contact form until a written fee agreement has been signed. Tamou Law Group, PLLC is licensed to practice law in the State of Arizona. This website is for informational purposes only and does not constitute legal advice.
(function() {
function customizeConsultForm() {
var form = document.querySelector('#consult-form');
if (!form) return false;
var fields = form.querySelectorAll('.gfield');
var emailField = null;
var didWork = false;
fields.forEach(function(field) {
var label = field.querySelector('.gfield_label, label');
if (!label) return;
var labelText = (label.textContent || '').trim().toLowerCase();
if (labelText.indexOf('best way to reply') !== -1 || labelText.indexOf('preferred contact') !== -1) {
field.classList.add('tlg-hide-field');
field.querySelectorAll('input').forEach(function(input) {
input.checked = false;
input.removeAttribute('required');
});
didWork = true;
}
if (labelText.indexOf('email') !== -1) {
emailField = field;
field.classList.add('tlg-email-required');
field.querySelectorAll('input[type="email"], input[type="text"]').forEach(function(input) {
input.setAttribute('required', 'required');
input.setAttribute('aria-required', 'true');
});
didWork = true;
}
});
var gform = form.tagName === 'FORM' ? form : (form.querySelector('form') || form.closest('form'));
if (!gform) gform = document.querySelector('#consult-form form, form[id^="gform_"]');
if (gform && !gform.dataset.tlgSourceBound) {
gform.dataset.tlgSourceBound = '1';
var pageUrl = window.location.href;
var pageTitle = document.title || 'Phoenix White Collar Defense Lawyers';
var pagePath = window.location.pathname;
var sourceTag = '[Source: ' + pageTitle.replace(/\s*[,|].*$/, '') + ' | ' + pagePath + ']';
['source_page', 'page_url', 'lander_url'].forEach(function(name) {
var h = document.createElement('input');
h.type = 'hidden';
h.name = name;
h.value = pageUrl;
gform.appendChild(h);
});
var hp = document.createElement('input');
hp.type = 'hidden';
hp.name = 'source_path';
hp.value = pagePath;
gform.appendChild(hp);
function findMessageField() {
var match = null;
form.querySelectorAll('.gfield').forEach(function(field) {
var label = field.querySelector('.gfield_label, label');
if (!label) return;
var t = (label.textContent || '').trim().toLowerCase();
if (t.indexOf('message') !== -1 || t.indexOf('comment') !== -1 || t.indexOf('detail') !== -1 || t.indexOf('describe') !== -1 || t.indexOf('tell us') !== -1 || t.indexOf('your story') !== -1) {
match = field.querySelector('textarea, input[type="text"]');
}
});
if (!match) match = form.querySelector('textarea');
return match;
}
function prependSource() {
var textarea = findMessageField();
if (textarea && textarea.value.indexOf('[Source:') === -1) {
textarea.value = sourceTag + '\n\n' + (textarea.value || '');
}
}
gform.addEventListener('submit', prependSource, true);
var submitBtns = gform.querySelectorAll('input[type="submit"], button[type="submit"], .gform_button');
submitBtns.forEach(function(btn) {
btn.addEventListener('click', function() {
setTimeout(prependSource, 0);
prependSource();
}, true);
});
}
var submitBtn = form.querySelector('input[type="submit"], button[type="submit"]');
if (submitBtn && emailField && !submitBtn.dataset.tlgBound) {
submitBtn.dataset.tlgBound = '1';
submitBtn.addEventListener('click', function(e) {
var emailInput = emailField.querySelector('input[type="email"], input[type="text"]');
if (emailInput && !emailInput.value.trim()) {
e.preventDefault();
emailInput.focus();
emailInput.style.borderColor = '#c62828';
emailInput.style.boxShadow = '0 0 0 3px rgba(198,40,40,.15)';
}
});
}
return didWork;
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', customizeConsultForm);
} else {
customizeConsultForm();
}
var attempts = 0;
var interval = setInterval(function() {
attempts++;
var done = customizeConsultForm();
if (done || attempts > 10) clearInterval(interval);
}, 500);
})();







