/* QUESTIONNAIRE */

.questionnaire {
  max-width: 700px;
  margin: 0 auto;
  font-family: sans-serif;
  padding: 2rem;
}

.main-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.progress-bar {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  background: #4caf50;
  transition: width 0.3s ease;
}

.group-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.question-block {
  margin-bottom: 2rem;
}

.question-text {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.option {
  display: flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.option:hover {
  background: #f0f0f0;
}

.option input[type="radio"] {
  display: none;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #999;
  margin-right: 0.5rem;
  position: relative;
}

.option input[type="radio"]:checked + .dot {
  border-color: #4caf50;
}

.option input[type="radio"]:checked + .dot::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
}

.label {
  font-size: 1rem;
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.navigation button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background: #4caf50;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.navigation button:hover {
  background: #45a049;
}

.navigation button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* HTML: <div class="loader-small"></div> */
.loader-small {
    display:none;
    width: 30px;
    padding: 5px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--highlight2);
    margin:0 auto;
    margin-bottom:15px;
    --_m: 
        conic-gradient(#0000 15%,#000),
        linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
        mask: var(--_m);
    -webkit-mask-composite: source-out;
        mask-composite: subtract;
    animation: spinloader 1s infinite linear;
}
@keyframes spinloader {to{transform: rotate(1turn)}}

.loader-small-placeholder{
    min-height:55px;
    margin-bottom:0px;
    display:block;
    text-align:center;
}
.char-counter {
    font-size: 0.7em;
    margin-bottom: 5px;
    color: var(--highlight1);
    transition: color 0.3s ease;
    text-align:right;
}
.char-progress {
    background-color:var(--highlight3);
    transition: color var(--anim) ease;
    height:5px;
}