
.review-form form {
  max-width: 600px;
  margin: 30px auto;
}

.review-form .rating-group {
  background-color: var(--light);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.review-form .text-group {
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;

  display: flex;
  flex-direction: column;  /* Stack children vertically */
  align-items: center;    /* Center horizontally */
  justify-content: center; /* Center vertically */
  gap: 0.5rem;           /* Space between elements */
  text-align: center;     /* Center text in labels */
}

.review-form .rating-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.review-form .text-group #id_grade_received {
  width: 50px;          /* Must be equal to height */
  height: 50px;         /* Must be equal to width */
  border-radius: 50%;   /* This creates the circle */
  /* Text alignment */
  text-align: center;
  
}

.review-form .text-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.review-form .battery {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.review-form .battery div {
  flex: 1;
  height: 30px;
  background-color: #f0f0f0;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.review-form .battery div:hover,
.review-form .battery div.selected {
  background-color: var(--primary);
}

.review-form .scale-note {
  font-size: 12px;
  color: #777;
  text-align: center;
}

.review-form form br {
  display: none;
}

.review-form form label {
  font-weight: 500;
  margin: 15px 0 5px;
  display: block;
}

.review-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.review-form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
}

.review-form button[type="submit"]:hover {
  background-color: var(--primary-dark);
}

.review-form .yes-no-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0.2rem;
}

.review-form .yes-no-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.review-form .yes-no-option {
  position: relative; /* Added for proper input positioning */
}

.review-form .yes-no-buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.review-form .yes-no-buttons label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 2px solid var(--gray);
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
  padding: 0;
}

.review-form .yes-no-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review-form .yes-no-input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Base label styles */
.review-form .yes-no-label {
  display: block;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  background-color: white;
}

/* Yes option specific styles */
.review-form .yes-label:hover {
  box-shadow: none;
  transform: translate(0, 0);
  background-color: #aed581; /* lime-200 */
}

.review-form .yes-input:checked + .yes-label {
  background-color: #81c784; /* lime-500 */
  color: white;
  box-shadow: none;
  transform: translate(0, 0);
}

/* No option specific styles */
.review-form .no-label:hover {
  box-shadow: none;
  transform: translate(0, 0);
  background-color: #fecaca; /* red-200 */
}

.review-form .required-field::after {
    content: "*";
    color: red;
    font-weight: bold;
    text-transform: uppercase;
}
.review-form .error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.no-input:checked + .no-label {
  background-color: #ff8a80; /* red-500 */
  color: white;
  box-shadow: none;
  transform: translate(0, 0);
}