
/* ===== Fahrschule Sponer – Modern Professional Theme ===== */
.bit-form,
.bf-form,
[class*="_frm-"] {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif !important;
  color: #1a1a1a !important;
}

/* Step labels – smaller */
[class*="stp-hdr"] [class*="lbl"],
[class*="stp-hdr"] span,
[class*="stp-hdr"] label,
[class*="step-header"] [class*="lbl"],
[class*="stp-lbl"],
[class*="step-label"],
[class*="stp-title"],
[class*="progress"] [class*="lbl"] {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

/* Progress bar */
[class*="stp-progress"]:not([class*="fill"]),
[class*="progress-bar"]:not([class*="fill"]),
[class*="progress-wrp"],
.bf-progress-bar,
._frm-b10-stp-progress {
  background: #ececec !important;
  background-color: #ececec !important;
  background-image: none !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
  padding: 0 !important;
}
[class*="progress-fill"],
[class*="stp-progress"] > div,
[class*="progress-bar"] > div,
.bf-progress-fill,
._frm-b10-progress-fill {
  background: linear-gradient(90deg, #C3151B, #e03a3f) !important;
  background-color: #C3151B !important;
  border-radius: 999px !important;
  height: 100% !important;
  transition: width 0.35s ease !important;
  display: block !important;
  max-width: 100% !important;
}

/* Step content */
[class*="stp-cntnt"],
[class*="step-content"] {
  padding: 28px 12px 16px !important;
  background: #fff !important;
  border-radius: 16px !important;
}

.bf-label,
[class*="-lbl"] {
  font-weight: 600 !important;
  color: #111 !important;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  border: 1.5px solid #d8d8d8 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-size: 1rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  background: #fff !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #C3151B !important;
  box-shadow: 0 0 0 3px rgba(195, 21, 27, 0.12) !important;
  outline: none !important;
}

/* Range */
input[type="range"] {
  -webkit-appearance: none !important;
  width: 100% !important;
  height: 8px !important;
  background: #e5e5e5 !important;
  border-radius: 999px !important;
  outline: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 12px 0 !important;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 26px !important;
  height: 26px !important;
  background: #C3151B !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(195, 21, 27, 0.35) !important;
  border: 3px solid #fff !important;
}
input[type="range"]::-moz-range-thumb {
  width: 26px !important;
  height: 26px !important;
  background: #C3151B !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  border: 3px solid #fff !important;
}

/* ========== RADIO – card style matching step 2/4 ========== */
/* Options grid already 1 column via optionCol */

/* Option row label (BitForm custom radio: [data-cl] or .-cl) */
[class*="-cl"][data-cl],
[class$="-cl"],
label[data-cl] {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 8px 0 !important;
  padding: 12px 14px !important;
  border: 1.5px solid #e8e8e8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background 0.2s !important;
}

[class*="-cl"][data-cl]:hover,
[class$="-cl"]:hover,
label[data-cl]:hover {
  border-color: #C3151B !important;
  background: #fffafa !important;
}

/* Custom radio circle */
[class*="-bx"][data-bx],
[class$="-bx"] {
  flex-shrink: 0 !important;
  margin: 0 10px 0 0 !important;
}

/* Options container spacing */
[class*="-cc"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

/* ========== BUTTONS ========== */
button,
[class*="next-step"],
[class*="prev-step"],
.bf-button,
button[type="submit"] {
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s !important;
}
[class*="next-step"],
button[type="submit"],
.bf-button {
  background: #C3151B !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(195, 21, 27, 0.25) !important;
}
[class*="next-step"]:hover,
button[type="submit"]:hover {
  background: #a01216 !important;
  transform: translateY(-1px) !important;
}
[class*="prev-step"] {
  background: #f0f0f0 !important;
  color: #333 !important;
  border: none !important;
}

/* ========== IMAGE SELECT ========== */
.bf-ic,
[class*="image-select"] [class*="opt-wrp"],
[class*="img-select"],
.bCa9 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  align-items: stretch !important;
}

.bf-image-wrapper,
[class*="img-card"],
[class*="image-card"],
[class*="img-card-wrp"],
.bf-image-card-wrapper {
  position: relative !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  min-height: 160px !important;
  height: 100% !important;
  padding: 20px 12px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  overflow: visible !important;
}

.bf-image-wrapper img,
[class*="img-card"] img,
[class*="image-card"] img,
.bf-select-image,
[class*="select-image"] {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain !important;
  margin: 0 auto 12px auto !important;
  display: block !important;
}

.bf-check-box img,
.bf-check-image,
[class*="check-box"] img,
[class*="check-image"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}

.bf-image-title,
[class*="img-title"],
[class*="image-title"] {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

.bf-check-box,
[class*="check-box"],
[class*="tick-wrp"],
[class*="check-wrp"] {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 2px solid #d0d0d0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.bf-check-image,
[class*="check-image"] {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease !important;
  display: block !important;
}

.bf-image-wrapper:hover,
[class*="img-card"]:hover,
[class*="image-card"]:hover {
  border-color: #C3151B !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

input:checked + .bf-image-wrapper,
.bf-image-input:checked + .bf-image-wrapper,
input:checked + [class*="img-card"],
input:checked + [class*="image-card"] {
  border-color: #C3151B !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(195, 21, 27, 0.15) !important;
}

input:checked + .bf-image-wrapper .bf-check-box,
.bf-image-input:checked + .bf-image-wrapper .bf-check-box,
input:checked + [class*="img-card"] [class*="check-box"],
input:checked + .bf-image-wrapper [class*="check-box"] {
  background: #C3151B !important;
  border-color: #C3151B !important;
}

input:checked + .bf-image-wrapper .bf-check-image,
.bf-image-input:checked + .bf-image-wrapper .bf-check-image,
input:checked + [class*="img-card"] [class*="check-image"],
input:checked + .bf-image-wrapper [class*="check-image"],
input:checked + .bf-image-wrapper .bf-check-box img {
  opacity: 1 !important;
  visibility: visible !important;
  filter: brightness(0) invert(1) !important;
  width: 14px !important;
  height: 14px !important;
}

@media (max-width: 900px) {
  .bf-ic,
  [class*="image-select"] [class*="opt-wrp"],
  .bCa9 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 520px) {
  .bf-ic,
  [class*="image-select"] [class*="opt-wrp"],
  .bCa9 {
    grid-template-columns: 1fr !important;
  }
  .bf-image-wrapper,
  [class*="img-card"],
  [class*="image-card"] {
    min-height: 140px !important;
  }
}

[class*="stp-icn"].active,
[class*="completed"] [class*="stp-icn"] {
  background: #C3151B !important;
  color: #fff !important;
}

#bf-hours-value {
  font-variant-numeric: tabular-nums;
}

#bf-result-summary > div,
#bf-result-prices > div {
  display: flex !important;
  justify-content: space-between !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

@media (max-width: 640px) {
  [class*="stp-cntnt"] {
    padding: 16px 4px !important;
  }
  button,
  [class*="next-step"],
  [class*="prev-step"] {
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
  }
}
