/* AJAX Download Form – minimal functional styles. Fonts, colours and the
   submit button are left to the active theme. */

.adf-wrapper [hidden] {
	display: none !important;
}

.adf-form {
	max-width: 480px;
}

.adf-field {
	margin: 0 0 1rem;
}

.adf-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.adf-field input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.75em;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font: inherit;
}

.adf-field input:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.adf-required,
.adf-error,
.adf-message {
	color: #d63638;
}

.adf-field--error input {
	border-color: #d63638;
}

.adf-error {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875em;
}

.adf-error:empty,
.adf-message:empty {
	display: none;
}

.adf-message {
	margin: 0 0 1rem;
}

/* Honeypot: moved off-screen rather than display:none so bots still "see" it. */
.adf-hp {
	position: absolute;
	left: -9999px;
	top: 0;
}

.adf-form button[type="submit"] {
	cursor: pointer;
}

.adf-form button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.adf-success {
	padding: 1rem 1.25rem;
	border-left: 4px solid #00a32a;
	background: #f0f9f1;
}
