.survey-question {
  margin-bottom: 2rem;
}

.survey-label {
  display: block;
  font-weight: 600;
  margin-bottom: .75rem;
  color: #000;
}

.req {
  color: var(--form-error);
  margin-left: 3px;
}

/* Scale 1–10 */
.scale-buttons {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.scale-btn input {
  display: none;
}

.scale-btn span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--black-l-10);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all .15s;
}

.scale-btn input:checked+span {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.scale-btn:hover>span {
  border-color: var(--violet);
  color: var(--violet);
  font-size: 125%;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  margin-top: .3rem;
}

/* Stars */
.star-rating-wrap {
  display: flex;
  align-items: start;
  flex-direction: column;
}

.star-rating-inner {
  display: flex;
  flex-direction: row-reverse;
  gap: .3rem;
}

.star input {
  display: none;
}

.star svg {
  width: 2rem;
  cursor: pointer;
  fill: #ddd;
  transition: fill .15s;
}

.star input:checked~svg,
.star:hover svg,
.star:hover~.star svg,
.star.rated svg {
  fill: #f59e0b;
}


/* Yes/No */
.yn-buttons {
  display: flex;
  gap: 1rem;
}

.yn-btn input {
  display: none;
}

.yn-btn {
  padding: .5rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all .15s;
}

.yn-btn:has(input:checked) {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Freetext */
textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: .75rem;
  font-size: 1rem;
  resize: vertical;
}

textarea:focus {
  outline: none;
}

/* Submit + Message */
.survey-message {
  margin-top: 1rem;
  padding: .75rem;
  border-radius: 6px;
}

.survey-message.success {
  background: #dcfce7;
  color: #166534;
}

.survey-message.error {
  background: #fee2e2;
  color: #991b1b;
}