/* Really Simple Forms — front end. Inherits the theme's fonts; colours via custom properties. */
.rsf {
	--rsf-accent: #2563eb;
	--rsf-text: inherit;
	--rsf-muted: #646970;
	--rsf-border: #c3c4c7;
	--rsf-bg: #fff;
	--rsf-error: #b32d2e;
	--rsf-radius: 6px;
	max-width: 100%;
}
.rsf *, .rsf *::before, .rsf *::after { box-sizing: border-box; }
.rsf-form { margin: 0; }
.rsf-title { margin: 0 0 .5em; }
.rsf-intro { margin-bottom: 1em; }

.rsf-fields { display: flex; flex-wrap: wrap; gap: 18px 4%; }
.rsf-field { flex: 0 0 100%; min-width: 0; }
.rsf-field.rsf-w-half { flex-basis: 48%; }
@media (max-width: 600px) { .rsf-field.rsf-w-half { flex-basis: 100%; } }
.rsf-field[hidden], .rsf-field.rsf-hidden-field { display: none; }

.rsf-label { display: block; font-weight: 600; margin: 0 0 6px; padding: 0; line-height: 1.35; }
.rsf-req { color: var(--rsf-error); margin-left: 2px; }
.rsf-label-hidden .rsf-label, .rsf-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.rsf-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.rsf-group > legend { float: left; width: 100%; }
.rsf-group > legend + * { clear: both; }

.rsf input[type=text], .rsf input[type=email], .rsf input[type=tel], .rsf input[type=number],
.rsf input[type=date], .rsf select, .rsf textarea {
	display: block; width: 100%; max-width: 100%; margin: 0;
	padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.4; color: inherit;
	background: var(--rsf-bg); border: 1px solid var(--rsf-border); border-radius: var(--rsf-radius);
	box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.rsf textarea { resize: vertical; min-height: 80px; }
.rsf input:focus, .rsf select:focus, .rsf textarea:focus {
	outline: none; border-color: var(--rsf-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rsf-accent) 22%, transparent);
}

.rsf-parts { display: flex; flex-wrap: wrap; gap: 10px 4%; }
.rsf-part { flex: 0 0 48%; min-width: 0; }
.rsf-part--line1, .rsf-part--line2 { flex-basis: 100%; }
@media (max-width: 480px) { .rsf-part { flex-basis: 100%; } }
.rsf-sublabel { display: block; font-size: .82em; color: var(--rsf-muted); margin-top: 3px; }

.rsf-choices { display: grid; gap: 8px; }
.rsf-choice { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-weight: normal; line-height: 1.4; }
.rsf-choice input { margin: .2em 0 0; width: 1.1em; height: 1.1em; flex: none; accent-color: var(--rsf-accent); }

.rsf-desc { font-size: .88em; color: var(--rsf-muted); margin-top: 5px; }
.rsf-field--file input[type=file] { width: 100%; padding: 10px; border: 1px dashed currentColor; border-radius: 6px; background: transparent; cursor: pointer; }
.rsf-file-hint { font-size: .85em; color: var(--rsf-muted); margin-top: 4px; }
.rsf-file-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: .88em; }
.rsf-file-list li::before { content: "\1F4F7  "; }
.rsf-file-list:empty { display: none; }
.rsf-heading { margin: 10px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--rsf-border); font-size: 1.15em; }
.rsf-content { line-height: 1.6; }
.rsf-content > :first-child { margin-top: 0; }
.rsf-content > :last-child { margin-bottom: 0; }

.rsf-signature { position: relative; max-width: 500px; }
.rsf-sig-pad {
	display: block; width: 100%; height: 160px; background: #fff; touch-action: none; cursor: crosshair;
	border: 1px solid var(--rsf-border); border-radius: var(--rsf-radius);
	background-image: linear-gradient(to right, #ddd, #ddd); background-size: 80% 1px; background-position: 50% 75%; background-repeat: no-repeat;
}
.rsf-sig-pad:focus { outline: 2px solid var(--rsf-accent); outline-offset: 2px; }
.rsf-sig-clear {
	position: absolute; top: 6px; right: 6px; padding: 3px 10px; font-size: 13px; line-height: 1.4;
	background: #f6f7f7; color: #1d2327; border: 1px solid var(--rsf-border); border-radius: 4px; cursor: pointer;
}

.rsf-error-msg { color: var(--rsf-error); font-size: .88em; margin-top: 4px; }
.rsf-error-msg:empty { display: none; }
.rsf-has-error input, .rsf-has-error select, .rsf-has-error textarea, .rsf-has-error .rsf-sig-pad { border-color: var(--rsf-error); }
.rsf-errors {
	margin: 0 0 16px; padding: 10px 14px; border-radius: var(--rsf-radius);
	background: #fcf0f1; color: var(--rsf-error); border: 1px solid #f0c3c4;
}
.rsf-errors[hidden] { display: none; }

.rsf-actions { margin-top: 22px; }
.rsf-submit {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font: inherit; font-weight: 600; font-size: 16px;
	color: #fff; background: var(--rsf-accent); border: 0; border-radius: var(--rsf-radius); cursor: pointer;
	transition: filter .15s, transform .05s;
}
.rsf-submit:hover { filter: brightness(1.08); }
.rsf-submit:active { transform: translateY(1px); }
.rsf-submit[disabled] { opacity: .7; cursor: wait; }

.rsf-confirmation {
	padding: 18px 20px; border-radius: var(--rsf-radius);
	background: color-mix(in srgb, var(--rsf-accent) 8%, #fff); border: 1px solid color-mix(in srgb, var(--rsf-accent) 30%, #fff);
}
.rsf-confirmation > :first-child { margin-top: 0; }
.rsf-confirmation > :last-child { margin-bottom: 0; }

.rsf-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Answers filled in by whoever sent the form (Pro "Send for signing"). */
.rsf-fixed input[readonly], .rsf-fixed textarea[readonly], .rsf-fixed select[disabled] {
	background: #f6f7f7; color: #3c434a; border-style: dashed; cursor: not-allowed;
}
.rsf-fixed input[readonly]:focus, .rsf-fixed textarea[readonly]:focus { box-shadow: none; border-color: var(--rsf-border); }
.rsf-fixed .rsf-choice { cursor: not-allowed; opacity: .85; }
.rsf-fixed-note { font-size: .8em; color: var(--rsf-muted); margin-top: 4px; }
.rsf-fixed-note::before { content: ""; display: inline-block; width: .85em; height: .85em; margin-right: 4px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7h1zm2 0h4V5a2 2 0 1 0-4 0v2z%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7h1zm2 0h4V5a2 2 0 1 0-4 0v2z%27/%3E%3C/svg%3E") center / contain no-repeat; }
