/* Demo-only layout helpers for form field examples */

.demo-form-fields {
  text-align: start;
}

.demo-form-fields .demo-ff-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
  margin-inline: auto;
}

.demo-form-fields .demo-ff-stack > * {
  width: 100%;
}

.demo-form-fields fieldset.demo-ff-fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border, #dee2e6);
  border-radius: 0.375rem;
}

.demo-form-fields fieldset.demo-ff-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.demo-form-fields .demo-ff-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.demo-form-fields .demo-ff-check:last-child {
  margin-bottom: 0;
}

.demo-form-fields .demo-ff-check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--color-primary-500, #0d6efd);
}

.demo-form-fields .demo-ff-check label {
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}

.demo-form-fields .demo-ff-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Switch visuals are handled by the `Switch` component now. */
