.afy-form-container {
	width: auto;
}

.afy-form {
	margin: auto;
	max-width: 640px;
}

.afy-form .afy-field {
	margin-bottom: 16px;
}

.afy-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.afy-form input[type="text"],
.afy-form input[type="email"],
.afy-form input[type="tel"],
.afy-form select,
.afy-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
}
.afy-form textarea {
	resize: vertical;
}

.afy-form ::placeholder {
	opacity: 0.4;
	font-style: italic;
}

/* Prénom / Nom sur la même ligne en 50/50. */
.afy-form .afy-field-pair {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.afy-form .afy-field-pair .afy-col {
	flex: 1 1 calc(50% - 8px);
	min-width: 0;
}

.afy-form .afy-field-pair .afy-error {
	flex: 1 1 100%;
}

.afy-form .afy-required {
	color: #b32d2e;
}

.afy-form .afy-error,
.afy-form label.afy-error {
	display: block;
	margin-top: 4px;
	color: #b32d2e;
	font-size: 0.9em;
	font-weight: 400;
}

.afy-form input.afy-invalid,
.afy-form select.afy-invalid,
.afy-form textarea.afy-invalid {
	border-color: #b32d2e;
}

.afy-form .afy-field-submit button {
	padding: 10px 22px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.afy-form .afy-field-submit button:disabled {
	cursor: not-allowed;
	opacity: 0.75;
}

/* Loader affiché pendant l'envoi AJAX du formulaire. */
.afy-form .afy-btn-loader {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: afy-spin 0.7s linear infinite;
}

.afy-form.afy-form-loading .afy-btn-loader {
	display: inline-block;
}

@keyframes afy-spin {
	from { transform: rotate( 0deg ); }
	to { transform: rotate( 360deg ); }
}

/* Transition de masquage du formulaire après un envoi réussi. */
.afy-form {
	transition: opacity 0.3s ease, max-height 0.3s ease;
	opacity: 1;
	overflow: hidden;
}

.afy-form.afy-form-hidden {
	opacity: 0;
	max-height: 0;
	margin: 0;
	pointer-events: none;
}

.afy-form-feedback:empty {
	display: none;
}

/* Pot de miel anti-spam : masqué aux humains. */
.afy-form .afy-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.afy-form-notice {
	padding: 12px 16px;
	margin-bottom: 16px;
	/*border-left: 4px solid;*/
	/*border-right: 4px solid;*/
	text-align: center;
}

.afy-form-success {
	/*border-color: #46b450;*/
	background-color: #3c8742;
}

.afy-form-error {
	/*border-color: #b51d1e;*/
	background-color: #bc5859;
}
