/* ACMS Public-Facing Styles.
   Design direction: a genuine letterhead document, not a web form —
   restrained "paper and ink" palette (works underneath any agency's
   own uploaded logo/branding without clashing), a serif display face
   for the agency name and title, and a fine outer frame plus a
   double-rule beneath the header, evoking a certificate/contract
   rather than a generic form page. System fonts only — no external
   font loading in a distributed plugin. */

.acms-public-wrap {
	max-width: 720px;
	margin: 48px auto;
	padding: 44px 48px 40px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a1a;
	background: #fdfdfc;
	border: 1px solid #dcdad4;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 6px #fdfdfc, 0 0 0 7px #dcdad4;
}

@media (max-width: 600px) {
	.acms-public-wrap {
		margin: 0;
		padding: 28px 22px;
		box-shadow: none;
		border-left: none;
		border-right: none;
	}
}

/* Agreement page — Module 4 */

.acms-agreement-header {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 18px;
	margin-bottom: 4px;
}

.acms-agreement-logo img {
	max-height: 56px;
	width: auto;
}

.acms-agreement-agency-name {
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* Double-rule beneath the letterhead — the one deliberate "signature"
   flourish on the page, echoing a printed certificate border. */
.acms-agreement-header + .acms-agreement-meta {
	margin-top: 20px;
}

.acms-agreement-header {
	border-bottom: 1px solid #1a1a1a;
	position: relative;
}

.acms-agreement-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: #1a1a1a;
}

.acms-agreement-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	padding: 16px 0 22px;
	margin-bottom: 20px;
	border-bottom: 1px dashed #cfcdc6;
	font-size: 14px;
}

.acms-agreement-meta strong {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7a776e;
	font-weight: 600;
	margin-bottom: 3px;
}

.acms-agreement-title {
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-size: 25px;
	font-weight: 600;
	margin-bottom: 18px;
	color: #16181c;
}

.acms-reference-number {
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	color: #7a776e;
	letter-spacing: 0.03em;
	margin: -12px 0 20px;
}

.acms-agreement-status-banner {
	padding: 13px 18px;
	border-radius: 3px;
	margin-bottom: 22px;
	font-weight: 600;
	font-size: 14px;
	border-left: 3px solid transparent;
}

.acms-status-accepted {
	background: #eef6ee;
	color: #205c26;
	border-left-color: #3d8b45;
}

.acms-status-declined {
	background: #faeeed;
	color: #8a2b23;
	border-left-color: #b3443a;
}

.acms-agreement-content {
	line-height: 1.75;
	margin-bottom: 32px;
	font-size: 15px;
}

.acms-agreement-content p {
	margin-bottom: 1.1em;
}

.acms-agreement-footer {
	border-top: 1px solid #e4e2db;
	padding-top: 18px;
	font-size: 12.5px;
	color: #7a776e;
	white-space: pre-line;
}

.acms-agreement-error {
	background: #faeeed;
	color: #8a2b23;
	padding: 15px 18px;
	border-radius: 3px;
	border-left: 3px solid #b3443a;
}

/* Acceptance form — Module 5 */

.acms-acceptance-form {
	border-top: 1px solid #1a1a1a;
	padding-top: 24px;
	margin-bottom: 30px;
}

.acms-agree-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 20px;
	cursor: pointer;
}

.acms-agree-checkbox input[type="checkbox"] {
	margin-top: 3px;
	width: 17px;
	height: 17px;
	accent-color: #16181c;
}

.acms-accept-button {
	display: inline-block;
	background: #16181c;
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: 13px 30px;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
}

.acms-accept-button:hover,
.acms-accept-button:focus {
	background: #2c2f36;
	color: #fff;
}

.acms-certificate-download {
	margin-top: 10px;
}

/* Onboarding form — Module 8 */

.acms-onboarding-form fieldset {
	border: 1px solid #e4e2db;
	border-radius: 4px;
	padding: 18px 22px 22px;
	margin-bottom: 22px;
}

.acms-onboarding-form legend {
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-weight: 600;
	padding: 0 10px;
	font-size: 15px;
	color: #16181c;
}

.acms-onboarding-form label {
	display: block;
	font-weight: 600;
	font-size: 12.5px;
	color: #4a483f;
	margin-top: 16px;
	margin-bottom: 5px;
}

.acms-onboarding-form input[type="text"],
.acms-onboarding-form input[type="email"],
.acms-onboarding-form input[type="url"],
.acms-onboarding-form input[type="file"],
.acms-onboarding-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 11px;
	border: 1px solid #cfcdc6;
	border-radius: 3px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: #1a1a1a;
}

.acms-onboarding-form input:focus,
.acms-onboarding-form textarea:focus {
	outline: 2px solid #16181c;
	outline-offset: 1px;
	border-color: #16181c;
}

.acms-onboarding-form .description {
	font-size: 12px;
	color: #7a776e;
	margin-top: 5px;
}
