Arizona Open Container Law: What Does ARS 4-251 Prohibit?
Cited for an open container? A.R.S. § 4-251 is a class 2 misdemeanor that covers unlocked glove boxes and containers within reach — but not the trunk, and the stop is often really a DUI investigation. Know the exceptions before you pay anything.
As Seen On

Recognized By
Featured Answer
What Does the Arizona Open Container Law (ARS 4-251) Prohibit?
Arizona’s open container law, ARS 4-251, makes it a class 2 misdemeanor to drink alcohol or possess an open container of liquor in the passenger compartment of a vehicle on a public highway — up to 4 months in jail and a $750 fine. The trunk, a locked glove box, and rideshare passengers are excluded.

Most open container charges start small — a half-finished bottle from a party, a passenger’s drink, a to-go cocktail on the floorboard — and get noticed during a stop that was about something else. The charge itself is a misdemeanor. The problem is everything it triggers: the questions, the odor observations, the field sobriety requests. This guide covers exactly what the open container law in Arizona prohibits, where in the vehicle it applies, the statutory exceptions, and how to keep a container violation from becoming something much bigger.
The text of ARS 4-251 creates two separate offenses. It is unlawful for any person to:
- Consume spirituous liquor while operating a motor vehicle, or while within the passenger compartment of a motor vehicle located on any public highway or right-of-way of a public highway; or
- Possess an open container of spirituous liquor within the passenger compartment of a motor vehicle located on any public highway or right-of-way of a public highway.
Both are class 2 misdemeanors. Three details in that language decide real cases. First, “any person” means passengers are covered, not just drivers. Second, the vehicle only needs to be located on a public highway or its right-of-way — a car parked on the street is included, and driving is not required for the possession offense. Third, the location element has a real limit: the statute defines public highway broadly, but genuinely private property — a private lot or driveway — is outside it.
What Counts as an “Open Container” Under ARS 4-251?
The statute defines an open container as any bottle, can, jar, or other receptacle — the definition even names tap-filled beer growlers dispensed under ARS 4-244 — that contains spirituous liquor and that has been opened, has had its seal broken, or has had its contents partially removed.
In practice, that means:
- A recorked or rescrewed bottle of wine is an open container — the seal has been broken.
- A to-go cocktail or sealed growler from a licensed bar or restaurant counts once it is opened, unsealed, or partially consumed — transport it sealed and outside the passenger compartment.
- A factory-sealed six-pack or unopened bottle is not an open container, no matter where it sits in the car.
- The receptacle must actually contain liquor — what a container held, and whether it held anything, is an element the state has to prove.
Where in the Vehicle Does It Matter? Passenger Area vs. Trunk
The offense only happens in the passenger compartment, and the statute defines that term with unusual precision. The passenger compartment is the area designed for the seating of the driver and passengers, and it includes an unlocked glove compartment and any unlocked portable device — think cooler, bag, or case — within the immediate reach of the driver or any passenger. It excludes:
- The trunk;
- A locked glove compartment; and
- The area behind the last upright seat of a vehicle that has no trunk — the cargo area of an SUV, hatchback, or van.
Who Is Exempt? The Rideshare, Taxi, Limo, and Motor Home Exceptions
ARS 4-251(C) lists exactly two exceptions, and both protect passengers only:
- Hired-vehicle passengers — a passenger in a bus, limousine, taxi, or transportation network company vehicle (an Uber or Lyft, as defined in ARS 28-9551) while the vehicle is being used to provide transportation network services; and
- Motor home passengers — a passenger in the living quarters of a motor home as defined in ARS 28-4301.
No exception ever covers the person behind the wheel. A limo driver, a rideshare driver, and the driver of a motor home remain fully subject to the statute — and a rideshare passenger’s protection depends on the vehicle actually being used to provide transportation network services at the time.
How Does an Open Container Stop Become a DUI Investigation?
Here is the sequence defense attorneys see over and over in Maricopa County: a stop for speeding or a lane violation, an officer who sees a bottle or smells alcohol, and then the pivot — “How much have you had tonight?” The container gives the officer articulable facts to extend the stop, request field sobriety tests, and build a DUI case under ARS 28-1381. The open container count is a class 2 misdemeanor; the DUI it seeds carries jail, license suspension, and ignition interlock consequences — our guide to a first-offense DUI in Arizona walks through them.
You can limit the damage in the moment. You must provide license, registration, and insurance — but you are not required to answer drinking questions, and you may politely decline field sobriety tests. Our guide to remaining silent during an Arizona traffic stop covers exactly how to do this without escalating the encounter. And container stops cluster when enforcement does — holiday weekends and storm-season saturation patrols alike; see how monsoon season changes DUI enforcement in Arizona.
What Are the Penalties for an Open Container in Arizona?
A violation of ARS 4-251 is a class 2 misdemeanor. The maximums come from Arizona’s misdemeanor sentencing statutes: up to 4 months in jail under ARS 13-707 and a fine of up to $750 under ARS 13-802, plus surcharges and possible probation. Stand-alone first offenses are commonly resolved without jail — but a conviction is a criminal record, not a traffic ticket.
Open Container Scenarios and Likely Outcome
A.R.S. 4-251 · A.R.S. 13-707 · A.R.S. 13-802
How Do You Fight an Open Container Charge in Arizona?
ARS 4-251 is one of the most element-heavy misdemeanors in the code, and every element is a place the state’s case can fail.
The vehicle was not on a public highway
The statute applies only on a public highway or its right-of-way. A car in a private parking lot, on private land, or in a private driveway is outside the statute’s own location element.
The container was not in the passenger compartment
Trunk, locked glove compartment, or behind the last upright seat of a vehicle without a trunk — the statute excludes all three. Where exactly the container sat, and whether a “portable device” was locked or within anyone’s immediate reach, are factual disputes worth litigating.
The container was not “open” — or was not proven to contain liquor
An intact factory seal defeats the definition. So does a failure of proof about contents: the state must show the receptacle contained spirituous liquor, and an empty can or an untested liquid is not automatic proof.
An exception applies
A rideshare, taxi, limo, or bus passenger — or a passenger in a motor home’s living quarters — is exempt by statute. In rideshare cases, trip records establish whether the vehicle was providing transportation network services at the time.
Whose container was it?
“Possession” is not proximity. When a passenger’s drink produces a charge against the driver — or everyone in the car — the state still has to tie the container to the person charged.
The stop or search was unlawful
If the stop lacked reasonable suspicion, or the container was found in a search that exceeded its lawful scope, suppression can take the case’s only evidence off the table — along with everything the stop produced afterward.
The Experts We Bring When a Container Stop Escalates
A stand-alone container charge rarely needs an expert. But when the stop produces a DUI or a contested search, the case becomes technical — and these are the specialists we retain.
Stop-Video Forensics Analysts
Bodycam & Dashcam
Obtain and timeline every second of bodycam and dashcam footage — where the container actually was, what the officer said first, and whether the stop was extended before any lawful basis existed.
Forensic Toxicologists
When a DUI Is Attached
Independently review breath and blood results, retention samples, and rising-alcohol timelines — because the container count is usually the sideshow to a chemistry fight.
Police Practices Consultants
How the Stop and Search Were Done
Former law enforcement professionals who measure the stop, entry and search against policy, training and lawful procedure.
Traffic-Stop Procedure Experts
Former Patrol Supervisors
Audit the stop against training and policy — the stated reason for the stop, how long it lasted, and whether the “open container” observation appears in the report the way it appears on video.
Digital Forensics Examiners
Devices, Messages and Metadata
Extract and analyze the complete digital record — messages, locations, deletions — behind the State’s story.
Mitigation Specialists
Keeping the Record Clean
Assemble the work history, treatment, and character record that supports resolving a first-offense misdemeanor without jail — and without the conviction following you.
How Tamou Law Group Defends Open Container Cases
We treat every container charge as two cases: the misdemeanor itself, and the investigation it was used to justify. The first move is the video — bodycam and dashcam show where the container actually was, whether it was truly in plain view, and how the stop was extended. Then we test the elements one by one: highway or private property, passenger compartment or excluded area, open or sealed, proven contents or assumption, and whose possession it really was.
When a DUI is attached, the container count usually becomes leverage — and we litigate the stop and the science rather than letting a misdemeanor bootstrap a DUI conviction. Our team includes former prosecutors, law enforcement officers, and public defenders who have handled these stops from both sides, as part of our broader Arizona traffic offense defense practice. Call 623-321-4699 for a confidential consultation about your specific situation.
Related Arizona Traffic Offense Guides
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 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
Is an open container a felony in Arizona?
No. Violating ARS 4-251 is a class 2 misdemeanor, punishable by up to 4 months in jail under ARS 13-707 and a fine of up to $750 under ARS 13-802, plus surcharges. It is still a criminal conviction, not a civil traffic ticket.
Can a passenger drink alcohol in a car in Arizona?
No. ARS 4-251 makes it unlawful for any person , driver or passenger , to consume liquor or possess an open container in the passenger compartment on a public highway. The exceptions cover passengers in a bus, limousine, taxi, or rideshare vehicle providing transportation network services, and passengers in a motor home’s living quarters.
Can I transport an open bottle of alcohol in my trunk?
Yes. The statute’s definition of passenger compartment expressly excludes the trunk and a locked glove compartment. Putting a recorked bottle or opened container in the trunk before driving is the lawful way to transport it.
What if my vehicle has no trunk, like an SUV or hatchback?
ARS 4-251 says the passenger compartment does not include the area behind the last upright seat of a vehicle that is not equipped with a trunk. In an SUV, hatchback, or pickup, the cargo area behind the last upright seat serves as the trunk for open-container purposes.
Is a recorked or resealed bottle still an open container?
Yes. The statute defines an open container as any receptacle containing spirituous liquor that has been opened, has had its seal broken, or has had part of its contents removed. Recorking a wine bottle does not restore the seal , it belongs in the trunk.
Can you drink alcohol in an Uber or Lyft in Arizona?
ARS 4-251 does not apply to a passenger in a bus, limousine, taxi, or transportation network company vehicle while it is being used to provide transportation network services. The driver is never exempt, and rideshare companies’ own policies may still prohibit alcohol in the car.
Does an open container charge mean a DUI charge?
No , they are separate offenses with separate elements. But an open container in plain view gives officers a reason to investigate impairment, and the two charges are frequently filed together. A DUI under ARS 28-1381 carries far heavier penalties than the open-container count.
Can I get an open container ticket in a parked car?
Yes, if the vehicle is on a public highway or the right-of-way of a public highway. The possession offense does not require driving. On genuinely private property , a private driveway or private lot , the statute’s location element is not met.
What about empty beer cans in the car?
The statute defines an open container as a receptacle that contains spirituous liquor and has been opened. A truly empty can no longer contains liquor, and what the container actually held , and how much , is something the state must prove. Empties still invite questions, so keep them out of the passenger area.
What happens for a second open container conviction?
Under ARS 13-707, a person convicted of the same misdemeanor within two years of a prior conviction is sentenced at the next higher class , so a repeat class 2 misdemeanor can be punished as a class 1 misdemeanor, with up to six months in jail.
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);
})();







