.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none; /* JS will change this to flex */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ===== Popup Box ===== */
.popup {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  animation: popupFade 0.3s ease;
}

/* ===== Close Button ===== */
.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.close-btn:hover {
  color: #000;
}

/* ===== Popup Content ===== */
.popup h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.popup p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* ===== Form Fields ===== */
.popup input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.popup input:focus {
  outline: none;
  border-color: #1f7a00;
}

/* ===== Submit Button ===== */
.submit-btn {
  display: inline-block;
  margin-top: 24px;
  /* width: 100%; */
  padding: 8px 24px;
  background: #f2c200;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 40px;
  box-shadow: 0 6px 0 #f5165d;
}

.submit-btn:hover {
  transform: scale(1.05); 
  cursor: pointer;
}

/* ===== Animation ===== */
@keyframes popupFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .popup {
    padding: 20px;
    margin: 0 15px;
  }
}