.ambh-cpf-notice {
	padding: 1rem 1.25rem;
	background: #f0f0f1;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: var(--ambh-font-sm, 0.9375rem);
}

.ambh-cpf-context {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	padding: 10px 14px;
	margin-bottom: 1.25rem;
	background: var(--ambh-surface, #f0f0f1);
	border: 1px solid var(--ambh-border, #ddd);
	border-radius: 4px;
	font-size: var(--ambh-font-sm, 0.9375rem);
}

.ambh-cpf-context__label {
	font-weight: 600;
}

.ambh-cpf-context__title {
	color: inherit;
}

.ambh-cpf-context__title:is(a) {
	text-decoration: underline;
}

.ambh-cpf__status {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	font-size: var(--ambh-font-sm, 0.9375rem);
}

.ambh-cpf__form p {
	margin: 0 0 1rem;
}

.ambh-cpf__form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.ambh-cpf__form input,
.ambh-cpf__form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 1rem;
}

/* File and checkbox inputs opt out of the generic text-field styling above. */
.ambh-cpf__form input[type="file"],
.ambh-cpf__form input[type="checkbox"] {
	width: auto;
	padding: 0;
	border: none;
}

.ambh-cpf__image-preview {
	display: block;
	margin-bottom: 0.6rem;
}

/* Author CSS setting `display` here overrides the native [hidden]{display:none}
   default (same reason PetitionsModule's dashboard menu dropdown needed this) —
   without this rule the preview would stay visible even while [hidden]. */
.ambh-cpf__image-preview[hidden] {
	display: none;
}

.ambh-cpf__image-preview img {
	display: block;
	max-width: 200px;
	max-height: 200px;
	border-radius: 4px;
	object-fit: cover;
}

.ambh-cpf__remove-image {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.5rem;
	font-weight: 400;
}

.ambh-cpf__remove-image[hidden] {
	display: none;
}

.ambh-cpf__submit {
	padding: 0.75rem 1.5rem;
	background-color: var(--ambh-color-primary, #2271b1);
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.ambh-cpf__submit:disabled {
	opacity: 0.6;
	cursor: default;
}
