/* Base hidden state */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-family: sans-serif;
}

/* Visible state */
.popup.show {
  display: block;
}

/* Inner wrapper */
.popup-content {
  position: relative;
}

/* Close button (the X) */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}
.popup-close:hover {
  color: #000;
}

/* Form inputs */
.popup form input[type="text"],
.popup form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.popup form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Buttons */
.popup form button {
  padding: 8px 14px;
  margin-right: 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.popup form button[type="submit"] {
  background: #007bff;
  color: white;
}

.popup form button[type="submit"]:hover {
  background: #0056b3;
}

.popup form button.popup-close {
  background: #f1f1f1;
}

.popup form button.popup-close:hover {
  background: #ddd;
}

/* Overlay fills the screen */
.popup .popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  border-radius: 0;
  z-index: -1; /* keep behind content */
}

/* Popup content sits above overlay */
.popup .popup-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  width: 400px;
  max-width: 90%;
  margin: auto;
}