a.trigger-btn {
  margin: 20px auto;
  padding: 12px 25px;
  font-size: 16px;
  background: linear-gradient(to right, #fffefc, #c2fffa);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  overflow-y: auto;
}

.popup-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  min-height: 100vh;
}

.popup-box {
  background: #fff;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-box label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
}

.popup-box input,
.popup-box select,
.popup-box textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.popup-box button[type="submit"] {
  margin-top: 20px;
  background: linear-gradient(to right, #d4af37, #b8860b);
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

/* Popup Background Overlay */
#popupForm {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  display: none;
}

/* Center the popup */
.popup-container {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* IMPORTANT: start from top */
  min-height: 100vh;
  padding: 60px 15px;
  box-sizing: border-box;
}

/* Actual form box */
.popup-box {
  background: #f4c842;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  margin: auto;
  box-sizing: border-box;
  position: relative;
}
