Polyhydramnios is defined as having an amniotic fluid index (AFI) greater than 25 cm or a single deepest pocket of fluid measuring more than 8 cm. The condition can be classified as mild, moderate, or severe, based on the amount of excess fluid present.