/*
 Theme Name:   Blackmind Child Theme
 Theme URI:    https://sienderby.de
 Description:  Child Theme für Hello Elementor
 Author:       Sean Darby
 Template:     hello-elementor
 Version:      1.0.0
*/

/* =========================================================
   Eigene Styles
   ========================================================= */

/* ===========================================
   Kontaktformular
   =========================================== */

.bm-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Jedes Feld mit etwas Abstand */
.bm-contact-form .bm-field {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Eingabefelder (nicht Checkbox!) */
.bm-contact-form input:not([type="checkbox"]),
.bm-contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid white;
  color: white;
  background-color: transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.bm-contact-form input:not([type="checkbox"]):focus,
.bm-contact-form textarea:focus {
  border-color: #9E2B2C;
  outline: none;
}

/* Button */
.bm-contact-form button {
  border: 2px solid #9E2B2C;
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bm-contact-form button:hover {
  background: #9E2B2C;
  color: white;
}

/* ===========================================
   Checkbox-Zeile
   =========================================== */

.bm-checkbox-field label {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  width: fit-content;
  cursor: pointer;
  color: white;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.bm-checkbox-field label span {
  line-height: 1.4;
  user-select: none;
}

/* ===========================================
   Custom Checkbox Styling
   =========================================== */

.bm-contact-form input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none; /* Safari fix */
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 0;
  border: 2px solid #9E2B2C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Hover + Fokuszustände */
.bm-contact-form input[type="checkbox"]:hover {
  border-color: #7e1f20;
}

.bm-contact-form input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(158, 43, 44, 0.25);
}

/* Wenn angehakt */
.bm-contact-form input[type="checkbox"]:checked {
  background-color: #9E2B2C;
  border-color: #9E2B2C;
}

.bm-contact-form input[type="checkbox"]:checked::after {
  content: "✔";
  color: white;
  font-size: 16px;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}





/* Mobile Optimierung */
@media (max-width: 480px) {
  .bm-checkbox-field label {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .bm-contact-form input[type="checkbox"] {
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
  }
}
