/* ==== 1. Force the toggle container to match other fields ==== */
.df-checkbox-toggle,
.df-checkbox-toggle * {
  all: unset !important;               /* strip Deftform's defaults */
  box-sizing: border-box !important;
}

/* ==== 2. Re-build the container ==== */
.df-checkbox-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #ffffff !important;      /* same as your text inputs */
  border: 1px solid #d1d5db !important;/* same border */
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  transition: border-color .2s, background .2s !important;
}

/* Hover – optional but nice */
.df-checkbox-toggle:hover {
  border-color: #9ca3af !important;
  background: #f9fafb !important;
}

/* ==== 3. Hide the fake slider (Deftform's default) ==== */
.df-toggle-slider,
.df-toggle-slider * {
  display: none !important;
}

/* ==== 4. Show a real, styled native checkbox ==== */
.df-checkbox-toggle input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #2563eb !important;
  border-radius: 4px !important;
  background: #fff !important;
  display: grid !important;
  place-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

/* Check-mark */
.df-checkbox-toggle input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #2563eb;
  border-radius: 2px;
  transform: scale(0);
  transition: .2s transform;
}

/* Checked state */
.df-checkbox-toggle input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* ==== 5. Text stays inside the container ==== */
.df-checkbox-toggle .df-field-label,
.df-checkbox-toggle label {
  all: unset !important;
  flex: 1 !important;
  color: #1f2937 !important;
}

/* ==== Radio Button Styling ==== */
/* Remove border from radio group container */
.mt-2 .flex.items-start {
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

/* Make radio button items transparent (no white backgrounds) */
.mt-2 .rounded-md,
.df-radio-group label,
.df-radio-group > div {
  background: transparent !important;
  box-shadow: none !important;
}