* {
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  overflow-y: auto;
  padding: 40px 16px; /* Space from top on large screens */
}

/* Wrapper to avoid margin collapse */
.popup-container {
  width: 100%;
  max-width: 520px;
}

.popup {
  background: white;
  padding: 31px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.popup h2 {
  color: #0eaa6d;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.popup p {
  font-size: 14px;
  color: #333;
  margin-top: 10px;
  margin-bottom: 25px;
}

.popup label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.popup .stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 25px;
}

.popup .star {
  width: 43px;
  height: 38px;
  cursor: pointer;
  transition: transform 0.2s;
}

.popup .star:hover {
  transform: scale(1.1);
}

.popup textarea {
  width: 100%;
  height: 100px;
  border: 1px solid #b7b7b7;
  border-radius: 3px;
  padding: 10px;
  font-size: 14px;
  resize: none;
}

.popup .submit-btn {
  background-color: #0eaa6d;
  color: #fff;
  padding: 5px 13px;
  border: none;
  border-radius: 4px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: 500;
}

.popup .submit-btn:hover {
  background-color: #008f45;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .popup {
    padding: 20px;
  }

  .popup h2 {
    font-size: 20px;
  }

  .popup .star {
    width: 38px;
    height: 34px;
  }

  .popup textarea {
    height: 90px;
  }
}

@media (max-width: 480px) {
  .popup {
    padding: 18px;
  }

  .popup h2 {
    font-size: 18px;
  }

  .popup .star {
    width: 34px;
    height: 30px;
  }

  .popup textarea {
    height: 80px;
  }
}
.validation-error {
  outline: 2px solid red;
  border-radius: 6px;
  padding: 4px;
}

.maxen-error-message {
  display: none;
  background-color: #ffeaea;
  color: #d93025;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  margin-bottom: 15px;
}
