/* ─── Base, Full-width Form Container ────────────────────────────────── */
.sfe-form {
  width: 100%;
  margin: 0;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  font-family: sans-serif;

  display: grid;
  grid-template-columns: 1fr; /* single column by default */
  grid-gap: 1rem;
}

/* ─── Row Wrapper & Label ───────────────────────────────────────────── */
.sfe-form-row {
  margin-bottom: 1rem;        /* space between rows */
  grid-column: auto;          /* default: go into next free cell */
}
.sfe-form-row label {
  display: block;
  margin-bottom: 0.25em;
  font-weight: bold;
}

/* ─── Global Field Styling & Spacing ───────────────────────────────── */
/* text inputs, date, tel, email, selects */
.sfe-form input,
.sfe-form select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0 0 1.25rem; /* 20px bottom */
}

/* File‐hint inputs */
.sfe-form-row.file-hint input[type="file"] {
  margin-top: 0.9375rem; /* 15px */
  margin-bottom: 1.25rem;
}

/* ─── Make Buttons Full-Width Inside Their Wrapper ─────────────────── */
.sfe-form-row.full-width button {
  width: 100%;
}

/* ─── Two-column Layout on Desktop ────────────────────────────────── */
@media (min-width: 600px) {
  .sfe-form {
    grid-template-columns: repeat(2, 1fr);
  }
  /* force only those rows you tag as .full-width to span both columns */
  .sfe-form-row.full-width {
    grid-column: 1 / -1 !important;
  }
}

/* ─── Force Single-column on Small Tablets (600–768px) ─────────────── */
@media (min-width: 600px) and (max-width: 768px) {
  .sfe-form {
    grid-template-columns: 1fr;
  }
}

/* ─── Mobile Font-size Tweak ───────────────────────────────────────── */
@media (max-width: 600px) {
  .sfe-form input,
  .sfe-form select,
  .sfe-form button {
    font-size: 15px;
  }
}
