@media (max-width: 480px) {
  .stars button {
    font-size: 60px;
    /* Even bigger stars on small screens */
    padding: 14px;
  }

  button[type="submit"],
  .back-btn {
    font-size: 20px;
    padding: 16px 28px;
  }
}

body {
  background-image: url("background.png");
  background-size: cover;
  /* cover entire viewport */
  background-position: center;
  /* center the image */
  background-repeat: no-repeat;

  /* Optional: add overlay to darken image for better text contrast */
  position: relative;
  font-family: "Montserrat", sans-serif;
  color: #000000ff;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating Header */
header {
  position: sticky;
  top: 0;
  background: white;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

header img {
  max-height: 60px;
  margin-right: 15px;
}

header h2 {
  font-size: 20px;
  color: #333;
  margin: 0;
}

.operator-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.operator-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px #dcc488ff;
  margin: 0 auto 15px;
}

/* Survey Card */
.survey-container {
  background: white;
  max-width: 1000px;
  width: 90vw;
  padding: 50px 25px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
  text-align: center;
  transition: transform 0.3s ease;
}

h1 {
  margin-bottom: 10px;
  color: #000000ff;
}

p {
  color: #000000ff;
}

/* Stars */
.stars button {
  font-size: 80px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 12px;
  user-select: none;

  /* White fill with gold outline */
  color: white;
  -webkit-text-stroke: 2px gold;
  /* outline */
  text-stroke: 2px gold;
  /* fallback */

  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease,
    transform 0.15s ease;
}

/* On hover or selected: solid gold fill, no stroke */
.stars button.hovered,
.stars button.selected {
  color: gold;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  transform: scale(1.1);
  transition: color 0.3s ease, transform 0.15s ease;
}

@keyframes pulseStar {
  0% {
    filter: drop-shadow(0 0 2px #fbbf24);
  }

  100% {
    filter: drop-shadow(0 0 8px #fbbf24);
  }
}

.stars button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Buttons */
button[type="submit"],
.back-btn {
  background: #000000ff;
  color: white;
  padding: 5px 10px;
  /* Larger touch area */
  border: none;
  border-radius: 5px;
  /* Slightly rounded corners */
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  /* same as h3 */
  font-size: 15px;
  /* Bigger font for readability */
  margin-top: 10px;
  transition: background 0.2s;
}

button[type="submit"]:hover,
.back-btn:hover {
  background: #0056b3;
}

.thank-you {
  color: green;
  font-weight: bold;
  margin-bottom: 10px;
}

#rating-label {
  margin-top: 5px;
  font-weight: 400;
  min-height: 20px;
  font-size: 12px;
  /* smaller font size */
}

.fixed-image-row {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  justify-content: center;
  gap: 20px;

  background: rgba(255, 255, 255, 0.9);
  /* optional white semi-transparent bg */
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  /* make sure it’s on top */
  width: 100%;
  max-width: 400px;
  /* optional max width to keep it neat */
  /* Add rounded bottom corners */
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.fixed-image-row img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.page-footer {
  text-align: center;
  font-size: 12px;
  color: white;
  margin-top: 30px;
  padding: 12px 0;
  
  /* Optional: semi-transparent background for contrast */
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  
  /* If you want it always at the bottom of the viewport */
  position: fixed;
     bottom: 10px;
     left: 50%;
     transform: translateX(-50%);
     width: 90%;
     max-width: 400px;
}
