Monsoon Season DUI in Arizona: What Should Drivers Know?
Stopped for DUI during a monsoon storm? Wet-road corrections mimic impairment cues, and field sobriety tests were never validated on flooded, uneven pavement. Under A.R.S. § 28-1381 the state still must prove impairment, and storm conditions are real defense evidence.
As Seen On

Recognized By
Featured Answer
Why Does Monsoon Driving Look Like Impaired Driving?
Monsoon season DUI stops in Arizona often begin with storm-caused driving — a hydroplane correction, hard braking at a flooded dip, weaving around debris — that officers read as impairment cues. Under ARS 28-1381(A)(1), Arizona can charge DUI for impairment “to the slightest degree,” even below 0.08, so how the stop unfolds in bad weather matters.

Arizona’s monsoon runs from mid-June through the end of September, and every Valley driver knows what it looks like: a wall of dust, thirty minutes of sideways rain, flooded dips, and debris across the lanes. What fewer drivers know is that the exact maneuvers safe drivers make in those conditions — correcting a hydroplane, braking hard at standing water, slowing far below the limit — overlap almost perfectly with the driving cues police are trained to treat as signs of a drunk driver.
This article covers the monsoon-specific problem: how storm driving generates DUI stops, why field sobriety tests administered on wet pavement are vulnerable to challenge, how a weather crash turns into a DUI investigation, and what to do if you are pulled over mid-storm in Maricopa County.
Because the visual cue lists officers use to spot impaired drivers were never designed to account for weather. Officers are trained on standardized lists of driving behaviors associated with impairment — weaving within a lane, drifting, swerving, erratic braking, driving significantly below the speed limit, stopping too far back or too abruptly. On a dry night, those cues have some screening value. In a monsoon cell, ordinary prudent driving produces nearly all of them:
- Hydroplane corrections read as swerving. When tires lose contact with flooded pavement, the correct recovery — easing off the accelerator and steering through the slide — looks from behind like a drunk driver jerking the wheel.
- Sudden braking at flooded dips reads as erratic braking. Standing water appears with almost no warning at night. Braking hard for it is what an alert driver does.
- Steering around debris reads as weaving. Palm fronds, trash cans, and downed branches force lane deviations that mirror the classic “weaving” cue.
- Cautious speed reads as the slow-driving cue. Driving well under the limit in low visibility is defensive driving — and it is also on the impairment cue list.
- Delayed responses read as inattention. Rain-scattered glare and wiper lag slow every driver’s reactions to signals and lane markings.
What Does ARS 28-1381 Require the State to Prove?
Arizona’s basic DUI statute, ARS 28-1381, gives prosecutors two main theories, and the difference matters enormously in a storm case.
The (A)(2) “per se” theory requires proof that your alcohol concentration was 0.08 or more within two hours of driving. It rises or falls on the chemical test — the breath or blood number — and on whether that test was properly obtained and analyzed.
The (A)(1) “impaired to the slightest degree” theory requires no number at all. It requires proof that you were impaired by alcohol or drugs, even slightly, while driving. That case is built from exactly two kinds of evidence: your driving behavior and your roadside performance. In a monsoon stop, both are contaminated by weather. The statute even builds in presumptions under subsection (G): below 0.05, you are presumed not under the influence; between 0.05 and 0.08, no presumption applies either way, and the state must lean on driving and field evidence — the very evidence the storm degrades.
A first conviction is a class 1 misdemeanor. The full penalty structure, court process, and license consequences are covered in our complete guide to a first-offense DUI in Arizona; the storm-specific stakes are summarized below.
Are Field Sobriety Tests Reliable on Wet Pavement?
The three standardized field sobriety tests — horizontal gaze nystagmus, walk-and-turn, and one-leg stand — were validated under controlled conditions, and officer training materials themselves contemplate a reasonably dry, hard, level, non-slippery surface for the balance tests. A freeway shoulder during an active monsoon cell is close to the opposite of that environment:
- Walk-and-turn demands heel-to-toe steps on an imaginary or painted line. Painted lines are at their slickest when wet, the shoulder is often crowned or rutted for drainage, and gusting wind pushes anyone off a straight line.
- One-leg stand requires balancing on one foot for roughly thirty seconds — in the rain, in the wind, in wet shoes, on pavement sheeted with runoff, with traffic spray hitting you.
- Horizontal gaze nystagmus requires the subject to track a stimulus with their eyes while rain hits their face, emergency lights strobe off wet surfaces, and passing headlights refract through the water — conditions that make clean administration and observation difficult.
Every “clue” an officer records on a wet-pavement balance test — stepping off the line, using arms for balance, putting the foot down — is also exactly what a sober person does on a slick, uneven surface in the wind. Defense attorneys handling these cases in Arizona courts routinely pull the body-camera and dash-camera footage to document the surface, the rain, the wind, the footwear, and the lighting, then challenge whether the tests were administered in anything resembling the conditions they were validated under.
Can a Storm Accident Turn Into a DUI Investigation?
Yes, and this is one of the most common monsoon-season paths to a DUI charge. Hydroplaning on flooded pavement, sliding into a curb or median, or rear-ending a car that braked for standing water are classic storm crashes that happen to stone-sober drivers every summer. But when officers respond to any collision, they evaluate every driver for impairment — and the crash itself gets treated as evidence of impaired driving, even when the road conditions fully explain it.
If the responding officer claims to observe odor of alcohol, watery eyes (in the rain), or unsteady balance (on wet pavement), the crash investigation becomes a DUI investigation: questioning at the scene, field sobriety tests on storm-soaked ground, and a breath or blood draw aimed at the two-hour window in ARS 28-1381(A)(2). Storm crashes also frequently involve injuries and hospital transport, which is where blood evidence enters the case — how those samples are obtained, stored, and analyzed is its own battleground, covered in our guide to challenging a DUI blood test in Arizona.
A DUI charge attached to a collision is also charged and negotiated differently than a simple stop, particularly if anyone was hurt. If your storm crash produced a DUI arrest, see our guide to DUI accident charges in Arizona for how the collision changes the case.
What Happens If a Monsoon Season DUI Stop in Arizona Ends in Conviction?
The storm may explain the stop, but it does not soften the sentence. A conviction under ARS 28-1381 carries the same mandatory minimums whether the stop happened on a dry February night or in a July downpour.
Penalties and Sentencing
A.R.S. 28-1381 · driving under the influence · class 1 misdemeanor
Why Is DUI Enforcement Heavier During Monsoon Season?
Monsoon season overlaps almost exactly with Arizona’s summer enforcement calendar. The Fourth of July, summer weekends, and Labor Day are periods when multi-agency DUI task forces and saturation patrols are commonly deployed across Maricopa County, putting far more DUI-focused officers on the road at precisely the time storms are generating erratic-looking driving from sober motorists. An officer assigned to a DUI saturation patrol is actively hunting for the cue list — and a monsoon cell hands out those cues to everyone on the road.
Arizona also permits sobriety checkpoints, and holiday-weekend checkpoints during the summer are a recurring feature of Valley enforcement. Your rights at a checkpoint — what you must provide, what you can decline, and how checkpoint procedure gets challenged — are covered in our guide to Arizona DUI checkpoints.
What Should You Do If You Are Stopped During a Monsoon Storm?
The first sentence of the answer: pull over safely, be polite, provide your documents, and say as little as possible about where you were and what you drank. In more detail:
- Get fully off the roadway and turn on your hazards. Visibility is terrible for the officer too; a safe stop location protects everyone and starts the encounter calmly.
- Provide license, registration, and insurance. You are required to identify yourself. You are not required to answer questions about drinking, where you came from, or where you are going.
- Do not argue the driving on the roadside. “I hydroplaned” is a fact your lawyer can prove later with weather data and video; volunteering explanations mid-stop rarely helps and often fills the report with quotes.
- You may decline field sobriety tests. Roadside agility tests and the handheld portable breath test are voluntary in Arizona. Declining politely denies the state its most weather-corrupted evidence.
- The post-arrest chemical test is different. Under Arizona’s implied consent law, ARS 28-1321, refusing the blood or breath test after arrest triggers a 12-month license suspension (two years for a second refusal within 84 months), and officers can seek a warrant for blood anyway. Decisions at this stage have consequences either way — ask to speak to a lawyer.
- Note the conditions. As soon as you can, write down the time, location, rain intensity, standing water, wind, and exactly where any tests were performed. Weather records and your notes become defense evidence.
The Experts We Bring to the Table
A monsoon-season DUI turns on weather, roadway, and machine evidence. We bring the specialists who test all three.
FST-Reliability Experts
Field Sobriety Tests
Explain how rain-slicked pavement, wind, uneven shoulders, and poor lighting undermine walk-and-turn and one-leg-stand results scored in a storm.
Toxicologists
BAC & Absorption
Independently review the breath or blood evidence and testify about rising-BAC timelines and the physiological assumptions behind the numbers.
Accident Reconstruction Specialists
Hydroplaning & Causation
Analyze speed, water depth, and roadway drainage to show a crash or swerve was a road hazard response, not impaired driving.
Weather-Data Analysts
Storm Records
Pull rainfall, dust-storm, and visibility records for the exact time and location of the stop to document the conditions officers faced.
Dashcam & Bodycam Forensics
The Stop on Video
Recover and scrutinize video of the stop to test whether the “erratic driving” was weather avoidance and whether the tests were administered fairly.
Breath & Blood Test Challengers
Machine & Lab Audits
Audit calibration logs, maintenance records, and sample handling for the device and lab work behind the state’s test result.
How Tamou Law Group Defends Monsoon-Season DUI Charges
A storm-stop DUI is attacked at every layer. We start with the stop itself: pulling dash and body camera footage, obtaining weather data for the exact time and location, and challenging whether driving that every sober motorist was also doing amounted to reasonable suspicion. Next comes the roadside evidence: documenting the surface, wind, rain, lighting, and footwear conditions under which any field sobriety tests were administered, and moving to exclude or discredit “clues” produced by wet pavement rather than impairment.
On the chemical side, we litigate the blood or breath evidence — the two-hour window, the draw procedure, storage, and lab analysis — because in a below-0.08 or marginal case, the (A)(1) theory collapses if the storm explains the driving and the wet pavement explains the tests. Our team includes former prosecutors and law enforcement officers who have built these cases from the other side, and we defend every stage from the roadside to a jury trial through our Phoenix DUI defense practice. Call 623-321-4699 for a confidential consultation about your specific situation.
Award-Winning Criminal Defense Law Firm
When you are looking for the best Phoenix DUI lawyers, these are the independently verified credentials that matter, earned by Founding Attorney Michael Tamou and a full team of attorneys, including former prosecutors, public defenders, and law enforcement.
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 DUI Charges
A DUI case in Arizona is decided by the stop, the test and the deadlines, not by the arrest report. We handle it as a science case and a procedure case at the same time, from the first MVD deadline through trial.
DUI-specific credentials
Michael Tamou is a member of the National College for DUI Defense and the DUI Defense Lawyers Association, the two national organizations devoted to breath, blood and field-sobriety science. That training is what lets us cross-examine a gas chromatography result instead of accepting it.
Both sides of the courtroom
Our team includes former prosecutors and law enforcement officers who have built DUI cases for the State. They know what a DUI unit has to document, what it skips when it is busy, and where a case breaks when the paperwork does not match the body camera.
Volume that matters
Michael handled roughly 500 cases a year at the public defender’s office, against the 50 to 60 a typical attorney sees. A DUI defense built on that volume knows which plea offers are policy and which are negotiable in Maricopa County courts.
Published results in this area
| Case | Charges | Outcome |
|---|---|---|
| State v. U.P. | DUI and Extreme DUI (A.R.S. 28-1381, 28-1382) | Reduced charge |
| State v. M.C. | Extreme DUI and driving on a suspended license (28-1382, 28-3473) | Probation, no jail |
| State v. L.S. | Aggravated DUI and suspended license (28-1383, 28-3473) | Probation, no jail |
| State v. L.N. | Aggravated DUI and unlawful flight (28-1383, 28-622.01) | Probation, no jail |
| State v. C.W. | DUI and leaving the scene of an accident (28-1381, 28-661) | Reduced charge |
Anonymized outcomes from our case results page. Every case is different; past results do not guarantee a future outcome.
Frequently Asked Questions
Can weather-caused driving alone justify a DUI stop in Arizona?
Officers need reasonable suspicion of a violation to stop you, and they often cite weaving, drifting, or erratic braking. When a storm fully explains that driving, the defense can move to suppress the stop — if the stop falls, everything gathered afterward typically falls with it.
What does “impaired to the slightest degree” mean under ARS 28-1381?
ARS 28-1381(A)(1) makes it unlawful to drive while impaired by alcohol or drugs even to the slightest degree, with no minimum alcohol concentration required. These cases are built on driving behavior and field sobriety performance — the two categories of evidence a monsoon storm most directly contaminates.
Can I be charged with DUI in Arizona if I blow under 0.08?
Yes. The 0.08 threshold applies to the (A)(2) per se charge, but the (A)(1) impairment charge has no number. Below 0.05, the statute presumes you were not under the influence; between 0.05 and 0.08 there is no presumption, and the state must rely on driving and roadside evidence.
Do I have to take field sobriety tests during a monsoon storm?
No. Field sobriety tests are voluntary in Arizona and carry no license penalty for declining. The balance tests were validated under controlled conditions, not on wet, uneven pavement in wind and rain, and declining them politely denies the state its most weather-corrupted evidence.
What happens if I refuse the breath or blood test after a DUI arrest?
Under Arizona’s implied consent law, ARS 28-1321, refusing the post-arrest chemical test triggers a 12-month license suspension, or two years for a second refusal within 84 months, and officers can still obtain a warrant for a blood draw. That is different from the voluntary roadside tests.
Does hydroplaning into a crash mean I will be charged with DUI?
Not automatically, but officers responding to any collision evaluate drivers for impairment, and a crash is often treated as an impairment cue even when flooded pavement explains it. If the officer claims to smell alcohol or observe unsteadiness, the crash investigation becomes a DUI investigation.
Are DUI checkpoints and saturation patrols legal in Arizona?
Yes. Arizona permits sobriety checkpoints that follow proper procedures, and multi-agency task forces and saturation patrols are commonly deployed around summer holidays such as the Fourth of July and Labor Day — the same weeks monsoon storms are producing erratic-looking driving from sober motorists.
What are the penalties for a first-offense DUI under ARS 28-1381?
A first offense is a class 1 misdemeanor carrying at least 10 consecutive days in jail — with all but one day suspendable on completion of court-ordered screening or treatment — a fine of at least $250, two $500 assessments, an ignition interlock requirement, and traffic survival school.
What is the two-hour rule in ARS 28-1381(A)(2)?
The per se charge requires proof your alcohol concentration was 0.08 or more within two hours of driving or actual physical control. Storm crashes with delayed response times, hospital transports, and late blood draws can push testing toward or past that window, creating retrograde-analysis disputes the defense can attack.
Should I explain to the officer that the storm caused my driving?
Keep it brief and do not volunteer details about drinking or your evening. Roadside explanations rarely talk an officer out of an arrest and often end up quoted in the report. Weather records, video, and your own notes prove the storm later, through counsel, far more effectively.
Can a monsoon-season DUI charge be beaten?
No outcome is ever guaranteed, but storm cases give the defense unusual leverage: the stop can be challenged as weather-explained driving, wet-pavement field tests can be discredited, and marginal chemical results can be litigated. How those challenges apply depends entirely on the facts and video in your case.
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);
})();







