.clinical-form .consent-step {
	font-weight: 700;
	color: #087a9d;
}
.clinical-form h2 {
	font-size: 1.15rem;
	margin-top: 24px;
}
#consent-signature {
	width: 100%;
	max-width: 600px;
	height: auto;
	background: #fff;
	border: 1px solid #a9bdcd;
	border-radius: 6px;
	touch-action: none;
	display: block;
	margin-bottom: 16px;
}
.clinical-form button {
	width: auto;
	min-width: 240px;
}
.clinical-form input[readonly] {
	background: #fafafa;
}
.clinical-form [hidden] {
	display: none !important;
}

.clinical-form button {
	text-transform: uppercase;
}

/* Compact spacing only on the informed-consent page. */
.clinical-form.consent-page fieldset {
	padding: 12px 22px 14px;
}
.clinical-form.consent-page fieldset > legend + * {
	margin-top: 0;
}
.clinical-form.consent-page fieldset > :last-child {
	margin-bottom: 0;
}
.clinical-form.consent-page fieldset > p {
	margin-top: 10px;
	margin-bottom: 12px;
}
.clinical-form.consent-page fieldset > legend + p {
	margin-top: 0;
}
.clinical-form.consent-page fieldset > p:last-child {
	margin-bottom: 0;
}
.clinical-form.consent-page .consent-important {
	background: #fff8d6;
	border-color: #dfc66a;
	margin-bottom: 24px;
}
.clinical-form.consent-page .consent-important ul {
	margin: 10px 0 14px;
}
.clinical-form.consent-page .consent-important li {
	margin: 6px 0;
}
.clinical-form.consent-page .consent-promoter {
	margin-top: 0;
}
@media (max-width: 640px) {
	.clinical-form.consent-page fieldset {
		padding: 10px 14px 12px;
	}
}
/* Distinguish clearing the signature from submitting the consent. */
.clinical-form #clear-signature {
	background: #b42318;
	border: 1px solid #b42318;
	color: #fff;
}
.clinical-form #clear-signature:hover {
	background: #8f1c13;
	border-color: #8f1c13;
}
.clinical-form #clear-signature:focus-visible {
	outline: 3px solid #b42318;
	outline-offset: 3px;
}
.clinical-form.consent-page #signature-section {
	margin-bottom: 32px;
}

/* Match the inherited typography and spacing of the form field labels. */
.clinical-form.consent-page #signature-help {
	font: inherit;
	color: inherit;
	margin: 0 0 8px;
}

.clinical-form .signature-pad {
	width: 100%;
	max-width: 600px;
}
.clinical-form .signature-pad #consent-signature {
	box-sizing: border-box;
}
.clinical-form .signature-pad #clear-signature {
	display: block;
	margin-left: auto;
	margin-right: 0;
	max-width: 100%;
	min-width: min(240px, 100%);
}

.clinical-form.consent-page #clear-signature,
.clinical-form.consent-page button[type="submit"] {
	box-sizing: border-box;
	width: 300px;
	max-width: 100%;
	min-width: 0;
}

.clinical-form.consent-page .consent-criteria {
	margin: 8px 0 16px;
}
.clinical-form.consent-page .consent-criteria > li {
	margin: 4px 0;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 1.4;
}

/* Keep the clear control inside the signature area at every screen size. */
main.clinical-form.consent-page #signature-section .signature-pad {
	position: relative;
}
main.clinical-form.consent-page #signature-section .signature-pad #clear-signature {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 0;
	max-width: 36px;
	margin: 0;
	padding: 0;
	border-radius: 6px;
	font-size: 26px;
	line-height: 1;
	z-index: 1;
}
