Agoraphobia is typically determined when symptoms are worse than panic disorder, but also do not meet the criteria for other anxiety disorders such as depression.
The newer non-association theory is that a fear of heights is an evolved adaptation to a world where falls posed a significant danger.
A therapist can help you develop tools that will allow you to overcome your fear and prevent it from affecting your daily life.