礼貌 can be subject or adjective. As a subject, it refers to manner. As an adjective, it describe someone has good manner.
客气 is usually used as adjective. It describe the way treat other people is very kindly, don't have a strong attitude.
There's little bit tricky when you use these word. Since my English is not good enough to express. The answer may not exactly correct. The best way to master these words should come to China or chat with Chinese.