If the space has a loft, you can still place a bed in the loft space without concerns of not meeting the minimum height requirement, as long as the rest of the bedroom has 7-foot tall ceilings. This is a major factor in the legal definition of a bedroom.