/* ZMIANA 2026-09: style nowych typow pytan w ankiecie (skala ocen, suwak, pola liczbowe, pytania warunkowe) */

.poll-form .poll-question-description {
  text-transform: none;
  font-size: 14px;
  color: #666;
  margin: -12px 0 20px;
}
.poll-form .poll-anonymous-info {
  text-transform: none;
  font-size: 13px;
  color: #666;
}
.poll-form .poll-error-messages .error-rows,
.poll-form .poll-error-messages .error-number {
  display: none;
}
.poll-form.poll-error-rows .error-rows,
.poll-form.poll-error-number .error-number {
  display: block;
}
.poll-form .poll-prev-question {
  margin-right: 6px;
}

/* skala ocen 1..N */
.poll-form .poll-scale-row {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.poll-form .poll-scale-row:last-child {
  border-bottom: 0;
}
.poll-form .poll-scale-title {
  font-size: 15px;
  margin-bottom: 8px;
}
.poll-form .poll-scale-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.poll-form .poll-scale-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 560px;
}
.poll-form .poll-scale-option {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 56px;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}
.poll-form .poll-scale-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.poll-form .poll-scale-option span {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 38px;
  padding: 0;
  color: #333;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  transition: background .15s, border-color .15s, color .15s;
}
.poll-form .poll-scale-option:hover span {
  border-color: #c43137;
}
.poll-form .poll-scale-option input:checked + span,
.poll-form .poll-scale-option:hover input:checked + span {
  background: #c43137;
  border-color: #c43137;
  color: #fff;
  font-weight: 700;
}
.poll-form .poll-scale-option input:focus + span {
  outline: 2px solid rgba(196, 49, 55, .4);
  outline-offset: 1px;
}
.poll-form .poll-scale-edge {
  font-size: 13px;
  text-transform: none;
  color: #555;
  flex: 1 1 120px;
}
.poll-form .poll-scale-edge-max {
  text-align: right;
}

/* suwak */
.poll-form .poll-slider-row {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.poll-form .poll-slider-row:last-child {
  border-bottom: 0;
}
.poll-form .poll-slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 6px;
}
.poll-form .poll-slider-label-max {
  text-align: right;
}
.poll-form .poll-slider {
  width: 100%;
  accent-color: #c43137;
  cursor: pointer;
}
.poll-form .poll-slider-untouched .poll-slider {
  opacity: .45;
}
.poll-form .poll-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  padding: 0 4px;
}

/* pola liczbowe */
.poll-form .poll-number-row {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.poll-form .poll-number-row:last-child {
  border-bottom: 0;
}
.poll-form .poll-number-title {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 6px;
}
.poll-form .poll-number-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.poll-form .poll-number-field .form-control {
  max-width: 160px;
}
.poll-form .poll-number-unit {
  font-size: 13px;
  text-transform: none;
  color: #555;
}

/* strona informacyjna ankiety */
.poll-info {
  margin: 24px 0 48px;
}
.poll-info .poll-info-message {
  font-size: 18px;
}

@media (max-width: 480px) {
  .poll-form .poll-scale-options {
    gap: 4px;
  }
  .poll-form .poll-scale-option span {
    height: 36px;
    line-height: 34px;
    font-size: 15px;
  }
  .poll-form .poll-scale-edge {
    flex-basis: 100%;
    text-align: left;
  }
}
