/* SULO NPS – Layout der Umfrage. Überschreibt Theme-Abstände nur innerhalb des Formulars. */

.sulo-nps-q {
  margin: 0 0 1.6em;
  padding: 0 0 1.4em;
  border-bottom: 1px solid #e3e6ea;
}
.sulo-nps-q__label {
  font-weight: 600;
  font-size: 1.02em;
  line-height: 1.4;
  margin: 0 0 0.4em !important;
}
.sulo-nps-q__hint {
  font-size: 0.88em;
  color: #5b6470;
  margin: 0 0 0.8em !important;
}

/* Auswahl mit Radiobuttons: untereinander, mit Abstand zum Kreis */
.sulo-nps-q .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
/* Checkboxen: untereinander, wie die Radios */
.sulo-nps-q .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.sulo-nps-q .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 !important;
}
.sulo-nps-q .wpcf7-list-item-label {
  line-height: 1.3;
}
.sulo-nps-q input[type="radio"],
.sulo-nps-q input[type="checkbox"] {
  margin: 0 !important;
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  accent-color: #2b5d8c;
  cursor: pointer;
}

/* 0–10-Slider */
.sulo-nps-scale {
  width: 100%;
}
/* Wert-Text nur für Screenreader; die markierte Zahl zeigt die Auswahl */
.sulo-nps-scale__value {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sulo-nps-scale.is-set .sulo-nps-scale__value {
  color: #1f2a36;
}
.sulo-nps-scale input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100% !important;
  height: 8px;
  margin: 0.6em 0 0.3em;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #d5dbe2;
  cursor: grab;
  box-shadow: none;
}
.sulo-nps-scale input[type="range"]:active {
  cursor: grabbing;
}
.sulo-nps-q .sulo-nps-scale input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
  background: #2b5d8c;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #2b5d8c, 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: grab;
}
.sulo-nps-scale input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2b5d8c;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #2b5d8c, 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: grab;
}
.sulo-nps-scale__ticks {
  display: flex !important;
  justify-content: space-between;
  width: 100%;
  font-size: 0.85em;
  color: #5b6470;
  margin-top: 0.1em;
}
.sulo-nps-scale__ticks span {
  display: inline-block;
  text-align: center;
  min-width: 1em;
}

/* 0–10 als neutrale Knopfreihe */
.sulo-nps-seg {
  display: flex;
  gap: 6px;
  width: 100%;
}
.sulo-nps-q .sulo-nps-seg__btn {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 1px solid #c5ccd5;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2a36;
  font: inherit;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.sulo-nps-q .sulo-nps-seg__btn:hover {
  background: #eef3f8;
  border-color: #7d8a98;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
.sulo-nps-q .sulo-nps-seg__btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.sulo-nps-q .sulo-nps-seg__btn.is-on,
.sulo-nps-q .sulo-nps-seg__btn.is-on:hover {
  background: #2b5d8c;
  border-color: #2b5d8c;
  color: #ffffff;
  transform: none;
  box-shadow: 0 2px 6px rgba(43, 93, 140, 0.35);
}
.sulo-nps-q .sulo-nps-seg__btn:focus-visible {
  outline: 3px solid #2b5d8c;
  outline-offset: 2px;
}
.sulo-nps-scale.is-unset .sulo-nps-seg__btn {
  color: #5b6470;
}

/* Freitext: Rahmen wie ein Eingabefeld */
.sulo-nps-q textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 7em;
  height: 7em;
  box-sizing: border-box;
  padding: 0.6em 0.75em !important;
  border: 1px solid #aab3be !important;
  border-radius: 4px !important;
  background: #fff;
  font: inherit;
  line-height: 1.4;
  resize: vertical;
  box-shadow: none !important;
}
.sulo-nps-q textarea:focus {
  outline: 2px solid #2b5d8c;
  outline-offset: 1px;
}

/* ---- Gestaltung der Umfragekarte (Hausfarbe Rot #FF0000) ---- */
.sulo-nps-form {
  --nps-red: #ff0000;
  background: #f3f5f8;
  border-radius: 14px;
  padding: 20px;
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
}
.sulo-nps-form .sulo-nps-q {
  background: #ffffff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 18px 22px 20px;
  margin: 0 0 14px;
}
.sulo-nps-form .sulo-nps-q:first-child {
  padding-top: 4px;
}
.sulo-nps-form .sulo-nps-q__label {
  font-size: 1.05em;
  color: #1f2a36;
  margin-bottom: 0.5em !important;
}
.sulo-nps-form .sulo-nps-q__hint {
  color: #6b7480;
}

/* Auswahlzeilen klickbar wirken lassen */
.sulo-nps-form .wpcf7-list-item {
  padding: 7px 10px;
  margin-left: -10px !important;
  border-radius: 6px;
  transition: background 0.15s;
}
.sulo-nps-form .wpcf7-list-item:hover {
  background: #fff3f3;
}
.sulo-nps-form input[type="radio"],
.sulo-nps-form input[type="checkbox"] {
  accent-color: var(--nps-red);
}

/* Slider-Knöpfe in Rot */
.sulo-nps-form .sulo-nps-q .sulo-nps-seg__btn:hover {
  border-color: var(--nps-red);
  color: var(--nps-red);
  background: #fff3f3;
}
.sulo-nps-form .sulo-nps-q .sulo-nps-seg__btn.is-on,
.sulo-nps-form .sulo-nps-q .sulo-nps-seg__btn.is-on:hover {
  background: var(--nps-red);
  border-color: var(--nps-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.28);
}
.sulo-nps-form .sulo-nps-scale__value {
  color: var(--nps-red);
}
.sulo-nps-form .sulo-nps-scale.is-set .sulo-nps-scale__value {
  color: #1f2a36;
}

/* Fokus und Freitext */
.sulo-nps-form textarea:focus {
  border-color: var(--nps-red) !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15) !important;
  outline: none !important;
}

/* Absenden: eckiger roter Knopf, kein Pill */
.sulo-nps-form .wpcf7-submit {
  background: var(--nps-red) !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 14px 34px !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.sulo-nps-form .wpcf7-submit:hover {
  background: #d90000 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.3);
}
.sulo-nps-form .wpcf7-submit:disabled {
  background: #c9ced6 !important;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.sulo-nps-form .wpcf7-submit:focus-visible {
  outline: 3px solid rgba(255, 0, 0, 0.35);
  outline-offset: 2px;
}

/* Datenschutz-Einwilligung */
.sulo-nps-q .wpcf7-acceptance label {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: 0.95em;
  line-height: 1.45;
}
.sulo-nps-q .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 0.2em !important;
}
