.feedback-button {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.feedback-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.feedback-content {
  background: #fff;
  padding: 20px 35px 20px 35px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
}

.back-button, .close-button {
  display: block;
  position: absolute;
  top: 10px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.back-button { left: 10px; }
.close-button { right: 10px; }

.stars {
  margin: 15px 0;
  font-size: 24px;
}

.star {
  cursor: pointer;
  color: #ccc;
}

.star.filled {
  color: gold;
}

.thank-you.hidden {
  display: none;
}

/* --- General Enhancements --- */
.feedback-content form {
  display: flex; /* Makes content inside the form flexible */
  flex-direction: column; /* Stacks elements vertically */
  gap: 15px; /* Adds space between form elements */
}

/* --- Textarea Styling --- */
#feedbackText {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px; /* Softer edges */
  box-sizing: border-box; /* Includes padding/border in the element's total width/height */
  font-family: inherit; /* Ensures consistent font with the rest of the site */
  font-size: 16px;
  resize: vertical; /* Allows resizing only vertically to maintain layout */
  transition: border-color 0.3s ease;
}

#feedbackText:focus {
  border-color: #007bff; /* Highlight on focus */
  outline: none; /* Remove default focus outline */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2); /* Subtle glow */
}

/* --- Star Rating Enhancements --- */
.stars {
  margin: 5px 0 15px; /* Reduced top margin to fit better with the form gap */
  font-size: 30px; /* Slightly larger stars for better tap/click target */
  display: flex; /* Allows stars to be centered */
  justify-content: center;
}

.star {
  cursor: pointer;
  color: #dcdcdc; /* Lighter default color */
  transition: color 0.2s ease, transform 0.1s ease;
  padding: 0 3px; /* Add small horizontal space between stars */
}

.star:hover {
  transform: scale(1.1); /* Slight animation on hover */
}

.star.filled {
  color: gold;
}

/* --- Button Styling Enhancements --- */

/* Submit Button */
.submit-button {
  background: #007bff;
  color: white;
  padding: 12px 20px; /* More substantial padding */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.1s ease;
  width: 100%; /* Make it fill the form width */
}

.submit-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-1px); /* Subtle lift effect */
}

.submit-button:active {
  transform: translateY(0); /* Press effect */
}

/* Back and Close Buttons */
.back-button, .close-button {
  /* Inherits existing styles */
  padding: 5px; /* Add padding for better click area */
  color: #6c757d; /* A subtle grey color */
  transition: color 0.2s ease, transform 0.1s ease;
}

.back-button:hover, .close-button:hover {
  color: #333; /* Darker on hover */
  transform: scale(1.1);
}

/* Thank You Message */
#thankYouMessage p {
    font-size: 18px;
    font-weight: 600;
    color: #28a745; /* Green for success */
    margin-bottom: 20px;
}
