Different height for Pop up wrapper (based on Form, Success and Error message)

Hi All,

I need help with Pop-up form :slight_smile:
image
First I have a Pop-up wrapper and I need to make it responsive for different sizes for my Form, Success and Error message. The main issue is that my Success message needs to have a height 754 px, but Form and Error message are same and they have 1364px height.

However, I cannot make it that my pop up wrapper is responsive to different heights.

Any ideas?