/* tecstube Multi-Step Form – alle Regeln auf das Formular begrenzt,
   damit Theme-Styles nicht hineinwirken und das Formular nichts im Theme verändert. */
.tecstube-form-wrapper { max-width: 500px; margin: 20px auto; font-family: system-ui, -apple-system, sans-serif; }
.tecstube-form-wrapper .tecstube-form-card { position: relative; background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.tecstube-form-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 0 0 4px; }
.tecstube-form-subtitle { text-align: center; color: #666; margin: 0 0 24px; }

.tecstube-form-wrapper .tecstube-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; width: 100%; }
.tecstube-form-wrapper .tecstube-steps .step { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #999; background: #fff; flex-shrink: 0; }
.tecstube-form-wrapper .tecstube-steps .step.active { background: var(--tsf-btn, #018893); border-color: var(--tsf-btn, #018893); color: #fff; }
.tecstube-form-wrapper .tecstube-steps .step-line { flex: 1; height: 2px; background: #e0e0e0; margin: 0 8px; max-width: 80px; }

/* Schritte liegen übereinander im selben Rasterfeld:
   das Fenster ist immer so hoch wie der höchste Schritt, die Buttons sitzen unten. */
#tecstube-form { display: grid; margin: 0; }
#tecstube-form .form-step { grid-area: 1 / 1; display: flex; flex-direction: column; min-height: 340px; min-width: 0; visibility: hidden; }
#tecstube-form .form-step.active { visibility: visible; }
#tecstube-form .form-step > .btn-next,
#tecstube-form .form-step > .form-buttons { margin-top: auto; }

#tecstube-form .form-row { display: flex; gap: 12px; margin-bottom: 14px; }

#tecstube-form input,
#tecstube-form select,
#tecstube-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 14px !important;
  box-sizing: border-box;
  display: block;
  background-color: #fff;
  color: #000;
  font-family: inherit;
  line-height: normal;
}
#tecstube-form .form-row input { flex: 1 1 0; min-width: 0; margin-bottom: 0 !important; }
#tecstube-form .form-row input[name="nr"] { flex: 0 0 28%; }  /* Straße breit, Nr. schmal */
/* Auswahlfeld (Gerät): Systemaussehen aus, damit Safari Rundung, Innenabstand und Höhe
   wie in Chrome übernimmt – Pfeil kommt als eigenes Bild. background-color bleibt einstellbar. */
#tecstube-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
  height: auto;
  min-height: 0;
  cursor: pointer;
  text-indent: 0;
}
#tecstube-form select::-ms-expand { display: none; }
#tecstube-form select:invalid,
#tecstube-form select option[value=""] { color: #999; }
#tecstube-form select option { color: #000; }

#tecstube-form input::placeholder,
#tecstube-form textarea::placeholder { color: #999; }

/* Buttons – Farbe kommt aus den Einstellungen (--tsf-btn) */
#tecstube-form .btn-next,
#tecstube-form .btn-prev,
#tecstube-form .btn-submit {
  background: var(--tsf-btn, #018893) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100% !important;
  margin-top: 6px;
  display: block !important;
  text-align: center;
  font-family: inherit;
  line-height: normal;
}
#tecstube-form .btn-next:hover,
#tecstube-form .btn-prev:hover,
#tecstube-form .btn-submit:hover { filter: brightness(0.9); }  /* dunkler statt heller – Kontrast bleibt erhalten */

#tecstube-form .form-buttons { display: flex; gap: 12px; margin-top: 6px; }
#tecstube-form .form-buttons .btn-prev,
#tecstube-form .form-buttons .btn-next { flex: 1; width: auto !important; }

#tecstube-form .checkbox-label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.92rem; line-height: 1.5; cursor: pointer; }
#tecstube-form .checkbox-label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#tecstube-form .checkbox-label input { width: auto; margin-top: 2px; margin-bottom: 0 !important; }

/* Popup-Meldung im Formularfenster */
.tecstube-form-wrapper .form-message {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 24px; border-radius: inherit;
  background: rgba(255,255,255,0.65);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  text-align: center;
}
.tecstube-form-wrapper .form-message.is-visible { opacity: 1; visibility: visible; }
.tecstube-form-wrapper .form-message[hidden] { display: none; }
.tecstube-form-wrapper .form-message-box {
  position: relative; width: 100%; max-width: 320px;
  padding: 24px 24px 22px; border-radius: 14px;
  background: #e8f5e9; color: #2e7d32;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: scale(.96); transition: transform .2s ease;
}
.tecstube-form-wrapper .form-message.is-visible .form-message-box { transform: none; }
.tecstube-form-wrapper .form-message.error .form-message-box { background: #fdecea; color: #b3261e; }
.tecstube-form-wrapper .form-message-icon {
  display: block; width: 40px; height: 40px; margin: 0 auto 10px;
  border: 2px solid currentColor; border-radius: 50%;
  font: 700 22px/36px system-ui, -apple-system, sans-serif; text-align: center;
}
.tecstube-form-wrapper .form-message.success .form-message-icon::before { content: "\2713"; }
.tecstube-form-wrapper .form-message.error .form-message-icon::before { content: "!"; }
.tecstube-form-wrapper .form-message-text { margin: 0; font-size: 1rem; line-height: 1.45; font-weight: 500; color: inherit; }
.tecstube-form-wrapper .form-message-close,
.tecstube-form-wrapper .form-message-close:hover {
  display: none; position: absolute; top: 6px; right: 8px;
  margin: 0; padding: 4px 6px; border: 0; background: none; box-shadow: none;
  color: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.tecstube-form-wrapper .form-message.error .form-message-close { display: block; }
@media (prefers-reduced-motion: reduce) {
  .tecstube-form-wrapper .form-message, .tecstube-form-wrapper .form-message-box { transition: none; }
}

.grecaptcha-badge { visibility: hidden !important; }

@media (max-width: 500px) {
  #tecstube-form .form-row,
  #tecstube-form .form-buttons { flex-direction: column; }
}
