/* Shared form parts (signature pad, W-9, payout) for /onboard/ and /agents/. Colors come from the page (currentColor / --rs-* overrides). */
.rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; margin: 10px 0; }
.rs-f { display: grid; gap: 5px; min-width: 0; align-content: start; }
.rs-f input, .rs-f select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rs-full { grid-column: 1 / -1; }
.rs-f label, .rs-lab, .rs-fs legend { font-weight: 700; font-size: 14px; }
.rs-req { color: var(--rs-accent, #c8a96e); }
.rs-hint { font-size: 13px; opacity: .75; margin: 2px 0; }
.rs-fs { border: 1px solid var(--rs-line, rgba(128,128,128,.35)); border-radius: 6px; padding: 10px 12px 12px; margin: 12px 0; min-width: 0; }
.rs-fs legend { padding: 0 6px; }
.rs-radios { display: grid; gap: 8px; margin: 6px 0; }
.rs-radio, .rs-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; line-height: 1.4; }
.rs-radio input, .rs-check input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--rs-accent, #c8a96e); }
.rs-pills { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.rs-pill { border: 1px solid var(--rs-line, rgba(128,128,128,.35)); border-radius: 6px; padding: 10px 12px; align-items: center; }
.rs-pill:has(input:checked) { border-color: var(--rs-accent, #c8a96e); box-shadow: inset 0 0 0 1px var(--rs-accent, #c8a96e); }
.rs-more { margin: 10px 0; } .rs-more summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.rs-cert ol { margin: 6px 0; padding-left: 20px; font-size: 13px; line-height: 1.5; } .rs-cert p { margin: 4px 0; font-size: 13px; }
.rs-sigwrap { display: grid; gap: 6px; }
.rs-sigbox { position: relative; background: #fff; border: 1px solid var(--rs-line, rgba(128,128,128,.5)); border-radius: 6px; }
.rs-sig { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; border-radius: 6px; }
.rs-sigline { position: absolute; left: 14px; right: 14px; bottom: 34px; border-bottom: 1px solid #bbb; color: #999; font-size: 14px; pointer-events: none; line-height: 1; padding-bottom: 2px; }
.rs-sigbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rs-clear { background: none; border: 1px solid var(--rs-line, rgba(128,128,128,.5)); color: inherit; border-radius: 4px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; min-height: 0; width: auto; }
/* the box to fix after a failed check */
.rs-f .rs-bad, .rs-f [aria-invalid="true"] { border-color: var(--rs-error, #d93025) !important; box-shadow: 0 0 0 2px rgba(217, 48, 37, .25) !important; }
.rs-err { margin: 2px 0 0; color: var(--rs-error, #ff8a7a); font-size: 13px; font-weight: 700; }
/* state dropdown: looks like a menu (arrow), same height as the boxes next to it */
.rs-addr select { -webkit-appearance: none; appearance: none; padding-right: 32px !important;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50% !important; background-size: 5px 5px, 5px 5px !important; background-repeat: no-repeat !important; }
