/* Outer stack of rows */
.book-second-opinion-flex {
  display: flex;
  flex-direction: column;
  gap: 0rem; /* vertical spacing between rows */
}

/* Generic row */
.bf-row {
  width: 100%;
}

/* Paired rows: 2 columns on desktop */
.bf-row--pair,
.bf-row--checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* horizontal + vertical spacing between cols */
}

.bf-row--pair > *,
.bf-row--checkboxes > * {
  flex: 1 1 0;
  min-width: 0;
}

/* Actions row aligned nicely */
.bf-row--actions {
  display: flex;
  justify-content: flex-start; /* or flex-end if you prefer */
}

/* Full name composite: make first + last side by side */
.bf-row--name .fieldset-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.bf-row--name .js-form-item {
  flex: 1 1 0;
  min-width: 0;
}

/* MOBILE: everything becomes 1 column */
@media (max-width: 768px) {
  .bf-row--pair,
  .bf-row--checkboxes,
  .bf-row--name .fieldset-wrapper {
    flex-direction: column;
  }
}
