¶ 1 This appeal addresses whether hospitals who accept payment from the Arizona Health Care Cost Containment System (“AHCCCS”) for services rendered to AHCCCS patients (“Patients”) can later seek to impose and enforce liens on funds the Patients have obtained from third-party tort-feasors related to the Hospital services provided. In this case, the Hospitals claim and the superior court held that by entering into accord and satisfaction agreements, the Patients cannot now seek to declare the liens unenforceable. We hold the accord and satisfaction agreements are void because, as the Patients argue, federal law preempts Arizona law to the extent state law allows the liens. Since the liens themselves are void under fedei’al law, the accord and satisfaction agreements are also unenforceable. Accordingly, we reverse the judgment and remand this matter to the superior court for further proceedings consistent with this decision.
FACTUAL AND PROCEDURAL HISTORY
¶ 2 The Hospitals accepted payments from AHCCCS for treating the Patients. Pursuant to Arizona Revised Statutes (“AR.S.”) sections 33-931 (2014) and 36-2903.01 (Supp. 2013), the Hospitals then recorded liens for the difference in the amount billed for services and the amount paid by AHCCCS. The Patients obtained personal injury settlements from third parties that related to the medical care provided. To access their settlement funds, the Patients, with the assistance of counsel, agreed with the Hospitals to have the persons holding the settlement funds pay the Hospitals reduced amounts in return for the Hospitals releasing their liens. These Patients as well as other patients who had not settled hospital liens brought this putative class action against the Hospitals on a number of theories, including a request for declaratory relief, that federal law preempts ed the liens.
¶ 3 The Hospitals moved to dismiss the complaint based on accord and satisfaction. The Hospitals argued that the Patients obtained the lien releases after the Hospitals agreed to and accepted lower amounts in satisfaction of the liens and the accord arid satisfaction agreements were enforceable regardless of the merits of any underlying claim or dispute over the liens. In negotiating the releases with attorneys for the Patients, the Hospitals documented with some of the Patients that: “The payment will constitute an accord and satisfaction, compromise and release of any claim as to the validity of the hospital’s claim or the manner of its assertion.” The Patients do not argue that the language of any of the agreements reserved any rights to challenge the legality of the liens.
¶ 4 The Patients opposed the motion, arguing that any such agreement was void because the liens, and thus, any accord and satisfaction agreements premised on the liens, are prohibited by federal law. The Patients argued that because the Hospitals accepted payments in full from AHCCCS, both placing a lien on an AHCCCS patient’s personal injury recovery and any accord and satisfaction of such liens are unenforceable.
¶ 5 The superior court granted the Hospitals’ motion and dismissed the Patients’ claims. The court cited AR.S. §§ 33-931 and 36-2903.01, authorizing the liens, and framed the issue as whether the Patients failed to state a claim because they settled the liens in question. The court determined “it [was] irrelevant whether federal law preempts Arizona law and prohibits hospitals from enforcing statutory liens on AHCCCS accounts____[because] [a]ccord and satisfaction does not turn on whether Plaintiffs would have prevailed on the merits of the dispute that was settled.” Accordingly, the court concluded the lien accord and satisfaction agreements were “final and binding regardless of the validity of the underlying claims.”
¶ 6 The court then entered a judgment pursuant to Arizona Rule of Civil Procedure 54(b) from which the Patients timely appealed. We have jurisdiction pursuant to AR.S. § 12-2101(A)(1) (Supp.2013).
DISCUSSION
¶ 7 “We review de novo a trial court’s grant of a motion to dismiss for failure to state a claim.” Canyon Ambulatory Surgery Ctr. v. SCF Ariz.,
¶ 8 The Patients argue the accord and satisfaction agreements with the Hospitals cannot be enforced because two elements of a valid accord and satisfaction are missing-proper subject matter and consideration. Both assertions are based on federal law governing Medicaid prohibiting these types of liens and any accord and satisfaction agreements based on such liens. The Patients contend that since these agreements were based on balance billing and liens prohibited by federal law governing Medicaid or violated public policy, there was not a proper subject matter for an enforceable accord and satisfaction. They also contend that because the Hospitals could not seek payments in excess of the amounts they received through AHCCCS, any consideration for the accord and satisfaction agreements was illusory.
¶ 10 We agree with the Patients. Their challenges to the liens and attempts to obtain relief from the accord and satisfaction agreements are not barred because the liens and the accord and satisfaction agreements based thereon are prohibited under federal law, which preempts Arizona statutes authorizing such liens.
I. Medicaid/AHCCCS, third-party liability, and hospital liens
¶ 11 “Arizona administers AHCCCS, the state’s Medicaid program, pursuant to Title XIX of the Social Security Act, 42 U.S.C. sections 1396 to 1396v (1988 & Supp. V 1993).” Mercy Healthcare Ariz., Inc. v. AHCCCS,
¶ 12 “Payment received by a hospital from [AHCCCS] ... is considered payment ... of [AHCCCS’s] liability for the hospital bill.” A.R.S. § 36-2903.01(G)(4); see also Arizona Administrative Code R9-22-702(B) (“Registered providers must accept payment from the Administration or a contractor as payment in full.”). However, A.R.S § 36-2903.01(G)(4) expressly permits hospitals accepting payments from AHCCCS to “collect any unpaid portion of its bill from other third-party payors or in situations covered by title 33, chapter 7, article 3.” Title 33, chapter 7, article 3, and specifically A.R.S. § 33-931, is the general medical lien statute and subsection (A) gives hospitals an “entitle[ment] to a lien for the care and treatment or transportation of an injured person” that
extends .to all claims of liability or indemnity, except health insurance and underin-sured and uninsured motorist coverage ... for damages accruing to the person to whom the services are rendered, or to that person’s legal representative, on account of the injuries that gave rise to the claims and that required the services.
A hospital’s lien entitlement is for its “customary charges.” A.R.S. § 33-931(C).
¶ 13 In contrast, federal law provides Medicaid providers must accept the payment from Medicaid as payment in full. Federal law mandates that a service provider “may not seek to collect from the individual (or any financially responsible relative or representative of that individual) payment of an amount for that service.” 42 U.S.C. § 1396a(a)(25)(C). In addition, 42 C.F.R.
II. Accord and satisfaction
¶ 14 “In Arizona, a lien ‘is a charge or encumbrance upon property to secure the payment or performance of a debt, duty, or other obligation.’” Andrews v. Samaritan Health Sys.,
¶ 15 “The doctrine of accord and satisfaction discharges a contractual obligation or cause of action when the parties agree to exchange something of value in resolution of a claim or demand and then perform on that agreement, the accord being the agreement, and the satisfaction its execution or performance.” Best Choice Fund, LLC v. Low & Childers, P.C.,
¶ 16 “Generally, the elements essential for any valid contract must be present in a contract of accord and satisfaction. Those elements are as follows: (1) a proper subject matter, (2) competent parties, (3) an assent or meeting of the minds of the parties and (4) a consideration.” Baker v. Emmerson,
A. Proper Subject Matter
¶ 17 The Patients maintain that because the Hospitals’ liens were prohibited by federal law or violative of public policy, the accord and satisfaction agreements were unenforceable for lack of a proper subject matter. They argue we must evaluate the legality of the conduct that the underlying agreements contemplate and that because federal preemption was not addressed in either LaBombard,
¶ 18 We agree with the Patients that because the liens are prohibited by federal Medicaid law and such law preempts Arizona statutes authorizing the liens, both the liens and any accord and satisfaction agreements premised on the liens are prohibited and unenforceable. Accordingly, the accord and satisfaction agreements lack a proper subject matter.
¶ 19 Generally, an agreement is unenforceable under state law for public policy reasons if the legislature has determined that such agreements are “illegal,” e.g., prohibited. See 1800 Ocotillo, LLC v. WLB Grp., Inc.,
¶20 If the underlying agreement is prohibited and unenforceable, an accord and satisfaction based on that agreement is also unenforceable. See Precision Fabricators, Inc. v. Levant,
¶ 21 In this ease, we have two legislatures speaking. The Arizona Legislature expressly permitted these types of liens pursuant to A.R.S. § 36-2903.01(0(4) and AR.S. § 33-931(A). Congress, however, expressly prohibits these types of liens. See 42 C.F.R. § 447.15; 42 U.S.C. § 1396a(a)(25)(C). As discussed above, courts around the nation uniformly hold that Medicaid-provider liens on claims brought by Medicaid beneficiaries against third-party tortfeasors for the injuries which Medicaid provided coverage, as well as against any settlement or judgments on those claims, are the equivalent of liens against the patients themselves. Supra ¶ 13. Moreover, at least two states have held such liens are prohibited even if state statutes permitted the liens and one state has held that actions based on settlements of the liens seeking to enforce or protect the liens cannot succeed as a matter of law. Olszewski,
¶ 22 We have examined the Arizona State Plan approved by federal authorities for Arizona to run AHCCCS. We find nothing in the Plan which authorizes hospitals that agree to accept AHCCCS payments for medical services to place and enforce liens against the AHCCCS beneficiaries’ recoveries
¶ 23 Nor is enforcing liens for further payments from third-party recoveries obtained by AHCCCS patients somehow distinguishable from enforcing the liens against the patients themselves. No Arizona case provides that enforcement of such liens is permissible under state law,
¶24 The Hospitals argue an accord and satisfaction of the liens bars any challenge to the validity of the liens themselves. Or, as the superior court concluded, enforceability of the “[ajccord and satisfaction does not turn on whether Plaintiffs would have prevailed on the merits of the dispute that was settled.” We disagree. As the above authorities show, if the underlying agreement is prohibited by a statute, any accord and satisfaction cannot be enforced.
¶ 25 The Hospitals contend that an accord and satisfaction must be enforced even if there is a meritorious good faith claim or defense to enforcing the underlying contract, relying on Brecht v. Hammons,
¶ 26 In Brecht, the supreme court considered the effect of the compromise of a void judgment.
Of course, the surrender of a claim which is known to be entirely without foundation either in law or at equity does not afford a sufficient consideration for a compromise ----[I]t is sufficient to support a compromise that there be an actual controversy between the parties of which the issue fairly may be considered by both parties as doubtful, and that at the time of the compromise they in good faith so considered it. It is not essential that the question be in fact doubtful in legal contemplation.
Id. at 390,
¶ 27 We do not read Brecht as holding that when an underlying claim or contract is expressly prohibited by statute or regulation, an agreement to settle the claim is always enforceable. Rather, the court held when there is a good faith dispute resolved by an accord and satisfaction, courts will not examine the merits of the underlying dispute to enforce the accord and satisfaction. In contrast, if the underlying agreement is prohibited by statute or regulation, the courts will not permit a party to enforce the underlying prohibited agreement indirectly through an accord and satisfaction. Supra ¶¶ 19-20.
¶ 28 We see a fundamental difference between good faith disputes about the merits of an underlying agreement or lien and an agreement or lien which is affirmatively prohibited by statute. It is one thing for an
¶ 29 Equally important, even if there were a good faith dispute about the enforceability of the liens, the Hospitals cannot rely on such a theory because they expressly agreed in their Provider Participation Agreements that they would be bound by federal law, and they would “abide by Arizona Administrative Code R9-22-702 prohibiting the Provider from charging, collecting, or attempting to collect payment from an AHCCCS eligible person.” Thus, the Hospitals effectively agreed that they would be bound by such a prohibition. Moreover, the Hospitals agreed that they would accept AHCCCS payments as payment in full for the services rendered. These Provider Participation Agreements trump any argument by the Hospitals that there was a good faith dispute about the legality of the liens such that an accord and satisfaction can be enforced.
¶ 30 For similar reasons, we do not agree with the Hospitals that Shelton is controlling. In Shelton, the superior court granted summary judgment enforcing a settlement based on an underlying contract when one of the parties might not have been a licensed contractor.
B. Consideration
¶ 31 The Patients assert the accord and satisfaction agreements were not supported by consideration. They argue that the Hospitals cannot promise to refrain from doing something that they are legally barred from doing in the first place (placing a lien for balanced billing), nor give something to which the Patients have an absolute right (the third party settlement funds). The Hospitals contend that the accord and satisfaction agreements were supported by adequate consideration because the parties “exchange[d] promises to forbear from disputing a claim any further.” We agree with the Patients.
¶33 Here, the Hospitals expressly agreed to be bound by federal law when they provided services through AHCCCS and not to do any balanced billing. They also agreed to accept AHCCCS funds as payment in full for their services. Because the liens were in violation of federal law prohibiting balanced billing, the Hospitals’ agreement to take a lesser amount as part of an accord and satisfaction of the liens does not constitute consideration. See Hisel v. Upchurch,
III. Attorneys’ fees and costs on appeal
¶ 34 The Patients request costs and attorneys’ fees on appeal pursuant to AR.S. §§ 12-341 (2003), -341.01(A) (Supp.2013), and the private attorney general doctrine. The Hospitals argue that the request for attorneys’ fees is premature because the Patients are not yet the successful parties and are merely individuals that never asked for class certification and are only seeking relief on behalf of themselves.
¶ 35 The Patients are entitled to their reasonable attorneys’ fees on appeal for seeking to void the accord and satisfaction agreements under AR.S. § 12-341.01(A) because this dispute arose out of contract. For purposes of that statute, a party who successfully claims the contract has been entered into but is invalid or unenforceable may be awarded reasonable attorneys’ fees. See Rudinsky v. Harris,
¶ 36 Weighing the factors whether to award fees, Wagenseller,
CONCLUSION
¶ 37 We reverse the judgment entered by the superior court and remand for further proceedings consistent with this decision.
Notes
. The Hospitals did not seek to dismiss the claims brought by John James and the order granting the Hospitals’ motion to dismiss did not list any names. Apparently, his name was incorrectly listed in the caption on appeal. Accordingly, we amend the caption and order the use of this caption for all further proceedings on appeal.
. The other claims were for breach of contract, unjust enrichment, tortious interference, negligence, slander of title, abuse of process, and fraud.
. In essence, the Patients were claiming that the liens amounted to balance billing in violation of federal Medicaid law. " ‘[Bjalance billing’ occurs when a provider ... charges or collects ... an amount in excess of the amount that is reimbursable under the applicable health insurance plan. In practice, this occurs when a provider ... accepts partial payment from ... [an] insurance plan, then bills the patient or other entity for the difference between that reimbursement and the provider's usual, customary, or standard charge.” David J. Marchitelli, Annotation, Propriety and Use of Balance Billing in Health Care Context,
. The Patients did not contend they entered into the accord and satisfaction agreements under duress or otherwise assert any factual basis as to why those agreements were unconscionable.
. While this appeal was pending, the superior court heard summary judgment on the claims of other patients who had not entered into accord and satisfaction agreements with the Hospitals on the liens. The court determined that the state statutes permitting liens by an AHCCCS provider on third party claims brought by AHCCCS patients are preempted by and violated federal Medicaid law, an issue it did not reach as to the Patients who entered into the accord and satisfaction agreements.
. AHCCCS itself is entitled to liens for hospital or medical care "for which the administration or a contractor is responsible.” A.R.S. § 36-2915(A) (2009). Federal law requires that States attempt "to seek reimbursement for medical expenses incurred on behalf of beneficiaries who later recover from third-party tortfeasors.” Wos v. E.M.A. ex rel. Johnson,-U.S.-,
Here, the parties do not argue that the accord and satisfaction agreements affect any rights AHCCCS might have in the recoveries.
. In Miller, the court held that the hospital could seek to collect on its lien from a third-party tortfeasor because the patient had become Medicaid-eligible after the hospital began to provide state-mandated services and the hospital never billed or collected any funds from Medicaid.
. In LaBombard, a hospital provided services to an injured person and was paid by AHCCCS.
Nor do two later Arizona decisions dealing with healthcare provider liens assist the Hospitals here. In those cases, the courts barred enforcement of a medical care provider lien against a tortfeasor’s insurer that had settled the tort claim and against the patient who had settled the claim because the statute limited enforcement to "the person, firm, or corporation liable for damages” to the patient. Blankenbaker,
. Given our award of attorneys' fees based on A.R.S. § 12 — 341.01 (A) and in the exercise of our discretion, we do not address whether Patients are entitled to an award of further fees under the private attorney general doctrine.
