As Seen On

Recognized By
Featured Answer
The Two-Part Test: Custody + Interrogation
No — not automatically. Miranda warnings are only required when you are BOTH in custody AND being interrogated at the same time. If either piece is missing — you were free to leave, or the police weren’t questioning you — there is no Miranda violation, even though no warning was ever given. Most roadside stops, booking questions, and volunteered statements fail this test, which is why the “they never read me my rights” complaint often does not hold up. Whether it holds up in your case depends on exactly what happened, scenario by scenario, below.

Almost every arrest story includes the same line: “they never read me my rights.” It feels like an obvious violation. It might be — or it might be completely normal police procedure that does nothing to your case. Miranda v. Arizona did not create a rule that police must warn everyone they talk to. It created a narrow rule that applies only when two specific things are both true at once. This article walks through exactly when that rule applies, scenario by scenario, so you can tell the difference between something that actually helps your case and something that does not. If you already know a violation happened and want to know what it actually does to a case — spoiler: it is not an automatic dismissal — read our companion piece on what a Miranda violation does (and doesn’t) do to your case. This piece stays focused on the violation analysis itself: when Miranda is triggered and when it isn’t.
Miranda warnings exist to protect the Fifth Amendment privilege against self-incrimination during the specific moments when police pressure is at its highest. The U.S. Supreme Court drew the line at two conditions, and both have to be present at the same time:
- Custody — you have been formally arrested, or your freedom of movement has been restrained to a degree associated with formal arrest.
- Interrogation — police are asking you questions, or doing something else reasonably designed to get an incriminating response out of you.
If both are present, Miranda warnings are required before any statement can be used against you. If either one is missing — you were not in custody, or the police weren’t interrogating you — there is no requirement to warn you, and therefore no violation, even though it may not have felt that way at the time. This is the single most misunderstood part of criminal procedure, and it is the reason so many people are convinced their rights were violated when, legally, they were not.
What Counts as “Custody”?
Custody does not simply mean “a police officer was talking to me” or “I didn’t feel like I could leave.” Legally, custody means either a formal arrest, or a restraint on your freedom of movement of the degree normally associated with a formal arrest. Courts apply an objective reasonable-person test: given the totality of the circumstances, would a reasonable person in your position have believed they were free to end the encounter and leave?
Judges weigh factors like: how many officers were present, whether weapons were drawn, whether you were handcuffed or physically restrained, the location (a public sidewalk versus a locked interrogation room), the length of the encounter, the tone of the questioning (routine versus accusatory), and whether you were told you were free to go. No single factor controls — it is the whole picture. Your own subjective fear or nervousness does not decide the question; what matters is what a reasonable person would have understood.
What Counts as “Interrogation”?
Interrogation is broader than a formal Q&A session. Under Rhode Island v. Innis, interrogation means express questioning or its “functional equivalent” — any words or actions on the part of the police that the officers should know are reasonably likely to elicit an incriminating response. That can include a staged confrontation with evidence, a running commentary designed to provoke a reaction, or a deliberate conversation between officers meant to be overheard.
What is not interrogation: routine biographical questions during booking (the “booking exception,” discussed below), and anything you say entirely on your own initiative without being prompted by police words or conduct. The distinction matters because both custody and interrogation must be present together — a question asked outside of custody, or custody with no questioning at all, does not trigger the warning requirement.
Scenario-by-Scenario: Does Miranda Apply?
Here is how the two-part test plays out against the situations people actually ask us about. This is general guidance — the specific facts of your stop or arrest can move any of these outcomes.
Does Miranda Apply? A Scenario Breakdown
Based on Miranda v. Arizona, Berkemer v. McCarty, and Rhode Island v. Innis
What Happens If Your Rights Actually Were Violated?
If you genuinely were in custody and genuinely were interrogated without a Miranda warning, the remedy is suppression of the statement — a court order that the prosecution cannot use what you said (and, in some circumstances, evidence derived directly from it) at trial. It is not an automatic dismissal of the case. Prosecutors can often still proceed on other evidence, which is why so many people are disappointed to learn a real violation didn’t end their case outright. We cover that remedy question in full detail — including exactly what does and doesn’t get thrown out — in what a Miranda violation actually does to your case.
Arizona law reinforces the same custody-and-interrogation logic at the state level. Under A.R.S. 13-3988, a confession is admissible if it was voluntarily made, and the judge must decide voluntariness outside the presence of the jury, weighing factors like the time between arrest and arraignment, whether you were advised of your right to remain silent, and whether you had counsel when questioned. Notably, the statute expressly says it does not bar a confession made voluntarily “without interrogation by anyone, or at any time at which the person… was not under arrest or other detention” — the exact same custody-plus-interrogation logic Miranda requires.
What to Do (and Not Do) Right Now
Whether or not a violation actually occurred, how you handle the next few hours and days affects your case either way.
- Do stop talking now, even if you already said something. You cannot un-ring a bell, but you can stop making more noise.
- Do write down — while it’s fresh — exactly when you were handcuffed or told you were under arrest, who was present, what questions were asked, and in what order events happened. This timeline is what a custody-and-interrogation analysis is built on.
- Do ask for a lawyer clearly and unambiguously, and then stop answering questions until one is present.
- Don’t argue with an officer at the scene about whether they were “supposed to” read you your rights. It doesn’t change the legal analysis and often produces more statements.
- Don’t assume that because no one read you your rights, the case is automatically over. Let a lawyer run the actual custody-and-interrogation analysis before you count on anything.
- Don’t resist, argue, or try to leave a scene where you are not free to go — fight the legality of the stop in court, not on the street.
Where This Gets Decided in Scottsdale & Maricopa County
A Miranda or voluntariness challenge is raised through a motion to suppress, litigated in whichever court is handling the underlying charge. Misdemeanor cases arising within Scottsdale city limits — including many DUI and disorderly conduct charges — are prosecuted by the Scottsdale City Prosecutor in Scottsdale City Court. Felony charges are prosecuted by the Maricopa County Attorney in Maricopa County Superior Court. If your situation spans both — for example, a DUI stop that escalated into a separate felony allegation — the suppression analysis has to be run separately for each court, because the facts supporting custody and interrogation can differ by charge. Our Scottsdale office is at 9375 E Shea Blvd, Suite 100, a short drive from Scottsdale City Court, and we regularly litigate suppression motions in both venues. If you want to understand what happens procedurally after an arrest before you get to this stage, see what happens after you’re arrested in Scottsdale, and if police are trying to set up an interview right now, read what to do when police want to question you before you agree to anything.
The Experts We Bring to Miranda & Interrogation Cases
Whether a Miranda violation actually happened comes down to minute-by-minute facts — who restrained you, what was said, what the video actually shows. We work with the specialists who reconstruct exactly that.
Custodial-Interrogation Analysts
Was It Really Custody?
Reconstruct the exact moment of restraint against the reasonable-person-free-to-leave test — officer count, restraints, location, and duration — to establish precisely when (if ever) custody began.
Audio & Video Interrogation Reviewers
What The Footage Actually Shows
Review body-camera, dash-camera, and interview-room footage frame by frame for tone, timing, and the “functional equivalent” of questioning that reports often leave out.
False-Confession Psychologists
The Pressure You Were Under
Evaluate psychological coercion, fatigue, and vulnerability during lengthy or accusatory questioning — factors that shape both the custody analysis and the voluntariness of any statement.
Suppression-Motion Counsel
Turning The Analysis Into Relief
Draft and litigate the motion to suppress under the Miranda / Innis / Berkemer framework and A.R.S. 13-3988, arguing custody and interrogation issue by issue in front of the judge who will decide it.
Digital Forensics Specialists
Building The Exact Timeline
Pull dispatch logs, CAD records, and camera metadata timestamps to establish the precise sequence of restraint and questioning — often the single most decisive evidence in a custody dispute.
Mitigation Specialists
The Rest Of Your Defense
Build the broader defense strategy that matters even where a Miranda issue doesn’t win outright — because a violation analysis is one tool in the case, not the whole case.
How Tamou Law Group Defends These Cases
The first thing we do when a client says “they never read me my rights” is run the actual test — not assume it helps. We pull the police report, body-camera and dash-camera footage, and dispatch logs to build a minute-by-minute timeline of exactly when you were restrained, what was said, and by whom. We identify the precise moment (if any) custody began, and we separate every statement into what was volunteered, what was routine booking information, and what was the product of real interrogation.
Where the facts show genuine custody plus genuine interrogation with no warning, we file a motion to suppress and litigate it aggressively — because a suppressed statement can remove the strongest piece of evidence the state has. Where they don’t, we tell you honestly and move straight to the defenses that actually apply to your case, rather than wasting time on an argument that won’t hold up. Our team includes former prosecutors, law enforcement officers, and public defenders who have run this exact analysis from every side of the courtroom. Call 623-321-4699 for a confidential consultation, or read more on our Scottsdale criminal defense practice page.
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
Were my rights violated if the cops didn’t read them?
Only if you were both in custody and being interrogated at the time. Miranda warnings are not required for every police encounter — they are required only when both conditions are present together. If you weren’t in custody, or police weren’t questioning you, there is no violation even though no warning was given.
When do police have to read Miranda rights in Arizona?
Police must give Miranda warnings before custodial interrogation — meaning you have been formally arrested or restrained to a degree equivalent to arrest, and officers are questioning you or doing something reasonably likely to get an incriminating response. Outside of that specific combination, there is no legal requirement to read you your rights.
Does Miranda apply to a traffic stop?
Generally no. Under Berkemer v. McCarty, the U.S. Supreme Court held that an ordinary traffic stop is not “custody” for Miranda purposes because it is typically brief, public, and non-coercive. That means routine questions during a traffic stop are usually admissible even without a warning.
Does Miranda apply during a DUI stop in Arizona?
Usually not during the roadside phase. Field sobriety questions and “how much have you had to drink” are typically asked before you are in custody, so Miranda doesn’t apply yet. Once you are formally arrested for DUI and then questioned further, that later questioning does require a warning.
Do police have to Mirandize me before every arrest?
No. Miranda is only required before custodial interrogation. Police can arrest you, book you, and even hold you without ever needing to read you your rights — as long as they don’t question you (beyond routine booking information) about the offense. The warning is only required the moment they start interrogating you while you are in custody.
What counts as custody for Miranda purposes?
Custody means a formal arrest, or a restraint on your freedom of movement to a degree associated with formal arrest. Courts use an objective reasonable-person test: would a reasonable person in your situation have believed they were free to end the encounter and leave, based on the totality of the circumstances?
What counts as interrogation for Miranda purposes?
Interrogation means express questioning, or its “functional equivalent” under Rhode Island v. Innis — any words or actions police should know are reasonably likely to elicit an incriminating response. Routine booking questions and anything you volunteer without being prompted do not count as interrogation.
What happens if my Miranda rights actually were violated?
The remedy is suppression of the statement, meaning the prosecution generally cannot use it against you at trial. It is not an automatic dismissal of the case — prosecutors can often still proceed on other evidence. See our full breakdown of what a Miranda violation does and doesn’t do to a case for the complete picture.
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);
})();







