/* The request step forms (s1-step-form.js). Layout only; every colour is a semantic token (ink = action, amber = please check, green = done). Question fields reuse the kit and s1-requests.css. */
.s1sf-head { display: flex; align-items: center; justify-content: space-between; gap: calc(12px * var(--s1-scale, 1)); }
.s1sf-head .s1-steps-progress { flex: 1 1 auto; }
.s1sf-saved { flex: none; }
.s1sf-h { margin: 0; font: 700 var(--s1-fs-5)/1.3 var(--k-font-display); }
.s1sf-why { margin: -8px 0 0; }
.s1sf-list ul { margin: 6px 0 0; padding-left: calc(18px * var(--s1-scale, 1)); display: grid; gap: 4px; font-size: var(--s1-text-small); }
.s1sf-resume { display: grid; gap: calc(8px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)); border: 1px solid var(--s1-line-soft); border-radius: 8px; }
.s1sf-resume p { margin: 0; }
.s1sf-group { display: grid; gap: calc(8px * var(--s1-scale, 1)); padding-top: calc(12px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.s1sf-group-head { display: flex; align-items: center; justify-content: space-between; gap: calc(8px * var(--s1-scale, 1)); }
.s1sf-sum { padding: calc(10px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 8px; }
.s1sf-sum ul { margin: 6px 0 0; padding-left: calc(18px * var(--s1-scale, 1)); }
.s1sf-sum a { text-decoration: underline; }

.k-modal-body form { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(16px * var(--s1-scale, 1)); align-content: start; }
/* Under 768 px a step form is a full-height sheet: the head and the footer stay, the questions scroll between them. */
@media (max-width: 767px) {
  .k-modal-root.k-modal-root:has(.k-modal--sheet) { padding: 0; }
  .k-modal-root .k-modal.k-modal--sheet { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .k-modal.k-modal--sheet .k-modal-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); flex-wrap: nowrap; }
  .k-modal.k-modal--sheet .k-modal-foot .k-btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
  .k-modal.k-modal--sheet .k-modal-foot .k-foot-note { flex: 1 0 100%; }
  .k-modal.k-modal--sheet .k-modal-body .k-btn, .k-modal--sheet .k-modal-body .k-btn--sm { min-height: 44px; }
}
