/* Wrapper για κάθε ερώτηση */
.sm-question-wrapper {
    margin: 10px 10px 0px 10px; /* πάνω, δεξιά, κάτω, αριστερά */
    padding: 6px;
    background-color: #f9f9f9; /* #FFFFFF */
    border-radius: 8px;
}

/* Γραμμή ανάμεσα στις ερωτήσεις */
.sm-question-wrapper {
    border-bottom: 1px solid #ddd;
    padding-bottom: 0px;
    margin-bottom: 15px;
}

/* Τίτλος ερώτησης */
.sm-question-title {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin: 5px 8px 5px 8px;
}

/* Ερώτηση */
.sm-question-text {
    text-align: justify;
    margin: 0px 8px 3px 8px;
}

/* Περιτύλιγμα για αστέρια + ετικέτες */
.sm-stars-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 5px;
    padding-bottom: 0px;
    line-height: 1;
}

/* Ετικέτες αριστερά και δεξιά των αστεριών */
.sm-stars-label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    line-height: 1;
    vertical-align: middle;
}

.sm-stars-label-left {
    margin-right: 2px;
}

.sm-stars-label-right {
    margin-left: 2px;
}

/* Περιτύλιγμα αστεριών */
.sm-stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 5px;
  align-items: center;
}

/* Κρύψε τα radio κουμπιά */
.sm-stars input {
  display: none;
}

/* Τα ίδια τα αστεράκια */
.sm-stars label {
  font-size: 40px;
  height: 40px;
  line-height: 40px;
  color: #ccc;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  transform-origin: center;
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.2s ease;
  -webkit-text-stroke: 0.2px #ffffff;
  text-stroke: 0.2px #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Hover effect σε ΜΗ επιλεγμένα */
.sm-stars label:hover:not(.selected),
.sm-stars label:hover:not(.selected) ~ label:not(.selected) {
  color: #ffffff;
  transform: scale(1.2);
  -webkit-text-stroke: 0.4px #7ccaff;
  text-stroke: 0.4px #7ccaff;
}

/* Αν είναι selected, μην αλλάζει στο hover */
.sm-stars label.selected:hover,
.sm-stars label.selected:hover ~ label {
  color: inherit;
  transform: none;
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

/* Επιλεγμένα αστέρια: μπορντο-φούξια */
.sm-stars input:checked + label,
.sm-stars input:checked + label ~ label {
  color: #d16a97;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}


/* Σχόλια */
.sm-comment-wrapper {
    margin: 10px 10px 10px 10px; /* πάνω, δεξιά, κάτω, αριστερά */
    position: relative;
}

.sm-global-comment {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    padding: 8px;
    resize: vertical;
    border: 1px solid #ccc;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    font-family: inherit;
}

.sm-global-comment:focus {
    outline: none;
    border: 1px solid #7CCBFF;
    box-shadow: 0 0 5px rgba(124, 203, 255, 0.5);
}

/* Μετρητής χαρακτήρων */
.sm-char-count {
    margin-top: 10px;
    position: absolute;
    right: 20px;
    bottom: 5px;
    font-size: 12px;
    color: #666;
    user-select: none;
}