/* ----------------------------------------------------
   GLOBAL RESET & BASIC STYLING
----------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Main container for pages */
.container {
  max-width: 600px;
  width: 95%;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #222;
}

/* Paragraph spacing */
p {
  margin-bottom: 1rem;
}

/* Labels & inputs */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
}

input[type="text"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Checkboxes in a row if you like, or stacked */
.checkbox-group {
  margin: 10px 0;
}

.checkbox-group label {
  display: inline-block;
  margin-right: 10px;
  font-weight: normal;
}

/* Buttons */
button {
  display: inline-block;
  padding: 12px 20px;
  margin-top: 8px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%; /* full width on mobile */
  text-align: center;
}

button:hover {
  background-color: #0056b3;
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.admin-table th {
  background-color: #f2f2f2;
}

.admin-table tr:hover {
  background-color: #f9f9f9;
}

/* Survey Questions & Star Ratings */
.survey-question {
  display: flex;
  flex-direction: column; /* stack label above stars on mobile */
  margin-bottom: 20px;
}

.survey-question label {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Star Rating (horizontal) */
.star-rating {
  display: flex;
  flex-direction: row; /* left to right layout */
  direction: rtl;      /* visually flips order so left star is '1' */
}

.star-rating input[type="radio"] {
  display: none; /* Hide default radio input */
}

.star-rating label {
  width: 28px;
  height: 28px;
  margin-right: 5px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23ccc" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 .587l3.668 7.431 8.332 1.735-6 5.848 1.416 8.261L12 18.896l-7.416 4.966L6 15.601 0 9.753l8.332-1.735z"/></svg>') no-repeat center center;
  background-size: cover;
  cursor: pointer;
}

/* Hover effect (gold) */
.star-rating label:hover,
.star-rating label:hover ~ label {
  background: url('data:image/svg+xml;utf8,<svg fill="%23ffca08" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 .587l3.668 7.431 8.332 1.735-6 5.848 1.416 8.261L12 18.896l-7.416 4.966L6 15.601 0 9.753l8.332-1.735z"/></svg>') no-repeat center center;
  background-size: cover;
}

/* Checked star */
.star-rating input[type="radio"]:checked ~ label {
  background: url('data:image/svg+xml;utf8,<svg fill="%23ffca08" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 .587l3.668 7.431 8.332 1.735-6 5.848 1.416 8.261L12 18.896l-7.416 4.966L6 15.601 0 9.753l8.332-1.735z"/></svg>') no-repeat center center;
  background-size: cover;
}

/* On narrower screens */
@media (max-width: 600px) {
  .container {
    width: 95%;
    margin: 10px auto;
    padding: 16px;
  }

  h1 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  label {
    font-size: 0.9rem;
  }

  input[type="text"],
  input[type="tel"],
  input[type="date"] {
    font-size: 0.9rem;
    padding: 10px;
  }

  button {
    font-size: 0.9rem;
  }

  .survey-question {
    margin-bottom: 16px;
  }

  .survey-question label {
    margin-bottom: 6px;
  }

  .star-rating label {
    width: 24px;
    height: 24px;
    margin-right: 4px;
  }
}
