/* ZoBa Guards UI (nur /zoba... weil enqueue scoped) */

/* Honeypot (CF7 wrapper) */
.wpcf7-form-control-wrap[data-name="zoba_hp"]{
  display:none!important;
}

/* Falls du den Wrapper im Form benutzt */
.wpcf7 form .zoba-hp{
  display:none!important;
}

/* Abschnittstitel über volle Breite (Grid) */
.zoba-section-title{
  grid-column: 1 / -1;
  width:100%;
  margin: 12px 0 4px;
  font-size: 1.1em;
}

/* selects: lange Texte sauber abschneiden */
.wpcf7 select{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inputs/Selects/Textareas: volle Breite + korrektes Boxmodell */
.wpcf7 form select.wpcf7-form-control.wpcf7-select,
.wpcf7 form input.wpcf7-form-control,
.wpcf7 form textarea.wpcf7-form-control{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile Touch/Lesbarkeit */
.wpcf7 select,
.wpcf7 input,
.wpcf7 textarea{
  min-height: 44px;
  font-size: 16px;
}

/* Submit über volle Breite (wenn du <div class="zoba-submit"> nutzt) */
.wpcf7 form .zoba-submit{
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 20px;
}

.wpcf7 form .zoba-submit input.wpcf7-submit{
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  min-height: 52px;
  font-size: 18px;
}

/* Zeitfenster geschlossen: Hinweisbox */
.zoba-closed-box{
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}
.zoba-closed-box p{
  margin: 6px 0;
}

/* -----------------------------
   Address confirm UI placement
------------------------------ */

/* CF7 rote Fehlermeldung unter house_number:
   Default: aus; nur wenn wir es explizit wollen, wieder einblenden. */
.wpcf7-form-control-wrap[data-name="house_number"] .wpcf7-not-valid-tip{
  display:none !important;
}

/* Eigene rote Adress-Fehlzeile über voller Breite (oberhalb des Trotzdem-Buttons) */
.wpcf7 form p.zoba-addr-error-inline{
  grid-column: 1 / -1;
  width: 100%;
  flex-basis: 100%;

  margin: 6px 0 0;
  color: #d10000;
  font-size: 0.98rem;
  line-height: 1.25;
}

.wpcf7-form-control-wrap[data-name="house_number"].zoba-show-tip .wpcf7-not-valid-tip{
  display:block !important;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 6px;     /* Abstand Input -> roter Text (so lassen) */
  margin-bottom: 0px;  /* Abstand roter Text -> Button (neu) */
}

/* Button-Zeile: wie Abschnittstitel über beide Spalten + volle Breite
   (grid-column wirkt im Grid; flex-basis hilft, falls Theme/Fallback flex nutzt) */
.wpcf7 form p.zoba-addr-confirm-inline{
  grid-column: 1 / -1;
  width: 100%;
  flex-basis: 100%;
}

/* Button selbst: volle Breite */
.wpcf7 form .zoba-addr-confirm-inline .zoba-addr-confirm-btn{
  display: block;
  width: 100%;
  box-sizing: border-box;

  font-size: 1.05rem;
  line-height: 1.2;
  padding: 12px 14px;
  min-height: 44px;

  margin-top: 0 !important; /* das CSS der Webseite setzt top-margin 20px automatisch --> overwrite */
}

/* Hint unten beim Submit ebenfalls über volle Breite */
.wpcf7 form .zoba-addr-confirm-hint{
  grid-column: 1 / -1;
  width: 100%;
  flex-basis: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}


/* CF7 Fehlermeldungen niemals abschneiden */
.wpcf7-form-control-wrap {
  overflow: visible;
}

/* CF7 Tip sichtbar und unter dem Feld 
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
} */

.wpcf7 form p.zoba-addr-confirm-inline{
  grid-column: 1 / -1;
}

.wpcf7 form .zoba-addr-confirm-inline .zoba-addr-confirm-btn{
  display:block;
  width:100%;
}

/* =============================================================================
   Adress-Autocomplete Dropdown
   Passt zum hellen Formular-Design (weisse Inputs, schwarze Schrift, klare Ränder)
   ============================================================================= */

.zoba-autocomplete-dropdown {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #ffffff;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  max-height: 260px;

  scrollbar-width: thin;
  scrollbar-color: #c8c8c8 transparent;
}

.zoba-autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}
.zoba-autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: #c8c8c8;
  border-radius: 3px;
}

.zoba-autocomplete-dropdown li {
  padding: 9px 14px;
  font-size: 15px;
  color: #1a1a1a;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoba-autocomplete-dropdown li:last-child {
  border-bottom: none;
}

.zoba-autocomplete-dropdown li:hover {
  background: #f5f5f5;
  color: #000000;
}

/* Gesperrte Felder: visuelles Feedback dass Feld noch nicht aktiv ist */
.wpcf7 form input.zoba-field-blocked {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f5f5f5;
}