/**
 * SecureTrio Forms Plus, media submission form styles.
 *
 * Deliberately minimal. The existing ttc-forms.css governs the shared form
 * appearance and is not touched here, so a site's current styling carries
 * over to this form unchanged.
 */

.stf-media-fieldset {
	border: 1px solid rgba(0, 0, 0, 0.15);
	padding: 0.75em 1em;
	margin: 0 0 1em;
}

.stf-media-fieldset legend {
	padding: 0 0.4em;
	font-weight: 600;
}

.stf-media-fieldset label {
	display: inline-block;
	margin-right: 1.25em;
	font-weight: normal;
}

.stf-media-consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	margin-right: 0;
}

.stf-media-consent input[type="checkbox"] {
	margin-top: 0.25em;
	flex: 0 0 auto;
}

.stf-media-hint {
	margin: 0.25em 0 1em;
	font-size: 0.875em;
	opacity: 0.75;
}

.stf-media-file-notice {
	margin: 0.5em 0 1em;
	padding: 0.6em 0.8em;
	border-left: 3px solid #b32d2e;
	font-size: 0.875em;
}

.stf-media-conditional[hidden] {
	display: none;
}

.stf-media-heading {
	margin: 1.75em 0 0.75em;
	padding-bottom: 0.3em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.stf-media-guidelines,
.stf-media-declaration {
	margin: 0 0 1.5em;
	padding: 1em 1.2em;
	background: rgba(0, 0, 0, 0.03);
	border-left: 3px solid rgba(0, 0, 0, 0.2);
}

.stf-media-stop {
	padding: 0.8em 1em;
	margin: 0 0 1em;
	border-left: 3px solid #b32d2e;
}

.stf-required {
	color: #b32d2e;
}

.stf-notice-link {
	display: inline-block;
	margin-top: 0.25em;
	font-weight: 600;
}

.stf-form-notice {
	margin: 0 0 1.25em;
	padding: 0.9em 1.1em;
	border-left: 3px solid #2c7a3f;
	background: rgba(44, 122, 63, 0.06);
	transition: opacity 0.5s ease;
}

.stf-form-notice p {
	margin: 0 0 0.4em;
}

.stf-form-notice p:last-child {
	margin-bottom: 0;
}

.stf-form-notice-fading {
	opacity: 0;
}

.stf-upload-progress {
	margin: 0.4em 0 1em;
}

.stf-upload-progress[hidden] {
	display: none;
}

.stf-upload-label {
	margin: 0 0 0.3em;
	font-size: 0.875em;
}

.stf-upload-bar {
	display: block;
	width: 100%;
	height: 0.9em;
	appearance: none;
	border: 0;
}

.stf-upload-bar[hidden] {
	display: none;
}

.stf-upload-bar::-webkit-progress-bar {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 3px;
}

.stf-upload-bar::-webkit-progress-value {
	background: #2c7a3f;
	border-radius: 3px;
}

.stf-upload-bar::-moz-progress-bar {
	background: #2c7a3f;
	border-radius: 3px;
}
