/* Overlay */
#profession-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal */
.profession-modal {
  background: var(--bg);
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeInScale 0.25s ease;
}

.profession-modal h2 {
  margin-top: 0;
}

.profession-modal p {
  line-height: 1.6;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Animation */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.invite-form {
  margin-top: 1rem;
}

.invite-form.hidden,
.invite-feedback.hidden {
  display: none;
}

/* Smooth downward expansion */
.invite-form {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
