(a) In a family in need of services case, a juvenile and his or her parent, guardian, or custodian shall be advised by the law enforcement official taking a juvenile into custody, by the juvenile intake officer at the initial intake interview, and by the court at the juvenile's first appearance before the circuit court that the juvenile has the right to be represented at all stages of the proceedings by counsel.
(b) If counsel is not retained for the juvenile or it does not appear that counsel will be retained, counsel shall be appointed to represent the juvenile at all appearances before the court unless the right to counsel is waived as set forth in § 9-35-411.
(c) In a proceeding in which the judge determines that there is a reasonable likelihood that the proceeding may result in the juvenile's commitment to an institution in which the freedom of the juvenile would be curtailed and counsel has not been retained for the juvenile, the court shall appoint counsel for the juvenile.
(d) Appointment of counsel shall be made at a time sufficiently in advance of the court appearance to allow adequate preparation by appointed counsel and adequate consultation between the appointed counsel and the client.