/* Survey section — shared by /survey/ and /survey/results/. */

.survey-page { max-width: 640px; padding-top: 32px; padding-bottom: 64px; }
.survey-page h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 12px; }
.survey-page h2 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 12px; }

.survey-note { color: var(--color-text-muted); font-size: 0.95rem; margin: 0 0 8px; }
.survey-message { padding: 24px 0; }
.survey-error { color: #b3261e; margin: 12px 0 0; }

.survey-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  margin: 16px 0;
}
.survey-card a.btn { margin-top: 8px; }

.survey-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.survey-card legend { font-weight: 600; padding: 0; margin-bottom: 12px; }

.survey-scale { display: flex; gap: 8px; }
.survey-scale label { flex: 1; min-width: 0; }
.survey-scale input { position: absolute; opacity: 0; }
.survey-scale span {
  display: block;
  text-align: center;
  padding: 12px 0;
  border: 2px solid var(--color-bg-alt);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.survey-scale input:checked + span {
  background: var(--color-orange-2);
  border-color: var(--color-orange-2);
  color: var(--color-white);
}
.survey-scale input:focus-visible + span { outline: 2px solid var(--color-soil); outline-offset: 2px; }
.survey-scale-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.survey-scale-ends span:last-child { text-align: right; }

.survey-option { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.survey-option input { margin-top: 6px; }

.survey-card textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border: 2px solid var(--color-bg-alt);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}

/* Only a form-filling bot ever reaches this field. */
.survey-trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.survey-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.survey-lang select {
  font: inherit;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--color-bg-alt);
  background: var(--color-white);
  color: var(--color-text);
  max-width: 130px;
}

/* Results */
.survey-status { font-size: 0.85rem; color: var(--color-text-muted); }
.survey-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 44px; gap: 10px; align-items: center; margin: 6px 0; font-size: 0.9rem; }
.survey-bar { background: var(--color-bg-alt); border-radius: 6px; height: 12px; overflow: hidden; }
.survey-bar div { background: var(--color-orange-2); height: 100%; }
.survey-text-answer { border-top: 1px solid var(--color-bg-alt); padding: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.survey-text-answer small { display: block; color: var(--color-text-muted); }
