/* ─────────────────────────────────────────
   Base container
   ───────────────────────────────────────── */
.synext-msf {
  background: #020617;
  border-radius: 18px;
  padding: 24px 28px 28px;
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.synext-msf h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
}

.synext-msf p {
  margin: 0 0 18px;
  color: #9ca3af;
  font-size: 0.95rem;
}

/* Progress (top small text “Schritt x von y”) */
.synext-msf__progress {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

/* Only the active step is visible */
.synext-msf__step {
  display: none;
}

.synext-msf__step.is-active {
  display: block;
}

/* ─────────────────────────────────────────
   Top badges (“Antwort innerhalb von 24 Stunden”…)
   ───────────────────────────────────────── */
.synext-msf__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 14px;
}

.synext-msf__badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #16a34a;
  background: #022c22;
  color: #bbf7d0;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   Lists of checkbox / radio “cards”
   ───────────────────────────────────────── */
.synext-msf__checkbox-list,
.synext-msf__radio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

/* Card-like label */
.synext-msf__checkbox-list label,
.synext-msf__radio-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #111827;
  background: #020617;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5e7eb;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.05s ease;
}

.synext-msf__checkbox-list label:hover,
.synext-msf__radio-list label:hover {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.35);
  background: #020617;
  transform: translateY(-1px);
}

/* Use :has so the whole card reacts when checked */
.synext-msf__checkbox-list label:has(input:checked),
.synext-msf__radio-list label:has(input:checked) {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.7);
  background: #022c22;
}

/* Hide the ugly native box, make our own */
.synext-msf__checkbox-list input[type="checkbox"],
.synext-msf__radio-list input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #6b7280;
  background: transparent;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

/* Radio rounded */
.synext-msf__radio-list input[type="radio"] {
  border-radius: 999px;
}

/* Checked state */
.synext-msf__checkbox-list input[type="checkbox"]:checked,
.synext-msf__radio-list input[type="radio"]:checked {
  border-color: #16a34a;
  background: #16a34a;
}

.synext-msf__checkbox-list input[type="checkbox"]:checked::after,
.synext-msf__radio-list input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: #020617;
}

/* ─────────────────────────────────────────
   Fields (textareas, inputs, selects)
   ───────────────────────────────────────── */
.synext-msf__field {
  margin-bottom: 18px;
}

.synext-msf__field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.synext-msf__field small {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 3px;
}

.synext-msf__field input[type="text"],
.synext-msf__field input[type="number"],
.synext-msf__field textarea,
.synext-msf__field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #111827;
  background: #020617;
  color: #f9fafb;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.synext-msf__field input[type="text"]:focus,
.synext-msf__field input[type="number"]:focus,
.synext-msf__field textarea:focus,
.synext-msf__field select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.5);
}

/* File inputs inherit dark style a bit */
.synext-msf__field input[type="file"] {
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* Image preview areas */
.synext-msf__image-preview img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #111827;
  margin-bottom: 14px;
}

/* Summary box */
.synext-msf__summary {
  background: #020617;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #111827;
  font-size: 0.9rem;
  max-height: 360px;
  overflow-y: auto;
}

/* Status text under the form */
.synext-msf__status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ─────────────────────────────────────────
   Navigation buttons
   ───────────────────────────────────────── */
.synext-msf__buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}

.synext-msf__buttons button {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #16a34a;
  background: transparent;
  color: #f9fafb;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}

/* Primary (Weiter / Anfrage senden) */
.synext-msf__next,
.synext-msf__submit {
  margin-left: auto;
  background: #16a34a;
  color: #0b1120;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.6);
}

.synext-msf__next:hover,
.synext-msf__submit:hover {
  background: #22c55e;
}

/* Secondary (Zurück) */
.synext-msf__prev {
  border-color: #374151;
  color: #e5e7eb;
  background: #020617;
}

.synext-msf__prev:hover {
  border-color: #16a34a;
}

/* Disabled prev */
.synext-msf__prev[disabled] {
  opacity: 0.4;
  cursor: default;
  border-color: #111827;
}

/* Small bounce on click */
.synext-msf__buttons button:active {
  transform: translateY(1px);
}

/* ─────────────────────────────────────────
   Responsive tweaks
   ───────────────────────────────────────── */
@media (max-width: 640px) {
  .synext-msf {
    padding: 18px 16px 20px;
  }

  .synext-msf__buttons {
    flex-direction: row;
    gap: 10px;
  }

  .synext-msf__buttons button {
    flex: 1 1 auto;
    text-align: center;
  }
}
