/* === eko Simple Mail — Forms (Child Theme) === */

/* Inline-Statusbox (Basis) */
.eko-form-status {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  padding: 16px !important;
  margin-bottom: 16px;
  white-space: pre-line; /* trennt | als Zeilenumbruch */
  border: none !important;
  border-radius: 4px;
  transition: all .3s ease-in-out;
}

/* Erfolgsnachricht */
.eko-form-status.success {
  background: rgba(37, 211, 102, 0.8); /* WhatsApp-Grün, 80% Deckkraft */
}

/* Fehlermeldung */
.eko-form-status.error {
  background: rgba(220, 38, 38, 0.8); /* Rot, 80% Deckkraft */
}

/* Formular-Button — nur States, Basis kommt aus eko.css */
.ek-btn-inquiry:focus-visible {
  outline: 2px solid #00DCFF;
  outline-offset: 2px;
}

.ek-btn-inquiry:disabled {
  opacity: .6;
  cursor: not-allowed;
}
/* === Checkboxen & Labels — konsistente Ausrichtung === */

/* Standard-Layout */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: .6rem 0;
}

/* Klickfläche vergrößern */
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* Label textblock */
.checkbox-row label {
  display: inline-block;
  line-height: 1.55;
  cursor: pointer;
}

/* Links im Label dezent */
.checkbox-row label a {
  text-decoration: underline;
}

/* Fallback, falls kein .checkbox-row verwendet wird */
.ml-contact input[type="checkbox"] + label,
.ml-contact label.consent {
  display: inline-block;
  margin: .6rem 0;
  line-height: 1.55;
  cursor: pointer;
}

/* Abstand, wenn Input vor Label steht */
.ml-contact input[type="checkbox"] {
  margin-right: 8px;
}

/* Kompakt auf sehr kleinen Screens */
@media (max-width: 480px){
  .checkbox-row { gap: 8px; }
  .checkbox-row input[type="checkbox"] { width: 16px; height: 16px; }
}
/* === Checkboxen: Kästchen direkt vor Text === */
.checkbox-row {
  display: flex;
  align-items: center;
  margin: .6rem 0;
}

/* Kästchen fix, Text flexibel */
.checkbox-row input[type="checkbox"] {
  margin: 0 8px 0 0;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-row label {
  flex: 1 1 auto;
  line-height: 1.55;
  cursor: pointer;
}

/* Links im Label */
.checkbox-row label a {
  text-decoration: underline;
}

/* Kompakter auf kleinen Screens */
@media (max-width: 480px) {
  .checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }
}
/* Honeypot unsichtbar, aber für Bots im DOM */
.hp-wrap,
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Pflichtstern für required-Checkboxen neben dem Label */
.ml-contact .checkbox-row input[type="checkbox"][required] + label::after {
  content: " *";
  margin-left: 4px;
  color: #DC2626;
  font-weight: 700;
}

/* "Send me a copy" ausdrücklich ohne Stern, auch wenn HTML-seitig mal required gesetzt wäre */
.ml-contact .checkbox-row input[name="send_copy"] + label::after {
  content: "";
}
