/* MCM - Newsletter / Livre blanc : formulaire e-mail (bloc Avia + page livre blanc) */
.mcm-lb-form {
	width: 100%;
	max-width: 520px;
}

/* Pilule blanche (input transparent dedans + bouton accent), comme le formulaire du sous-menu. */
.mcm-lb-form__row {
	display: flex;
	width: 100%;
	align-items: center;
	background: #fff;
	border: 1px solid #cfd6dd;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mcm-lb-form__row input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 16px;
	border: 0 !important;
	border-radius: 0 !important;
	font-size: 16px;
	background: transparent !important;
	color: #333;
	margin: 0 !important;
	box-shadow: none !important;
	height: auto;
}

.mcm-lb-form__row input[type="email"]:focus {
	outline: none;
	box-shadow: none !important;
}

.mcm-lb-form__row input[type="email"]::placeholder {
	color: #1B77B5;
	opacity: 1;
}

.mcm-lb-form__row button {
	flex: 0 0 auto;
	padding: 8px 16px;
	margin: 4px;
	border: 0;
	border-radius: 12px;
	background: #f5a623;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, opacity 0.15s;
}

.mcm-lb-form__row button:hover {
	background: #e0991c;
}

.mcm-lb-form__row button.is-loading {
	cursor: default;
}

/* Loader pendant la requête AJAX (remplace l'icône avion par une roue qui tourne) */
.mcm-lb-form__row button.is-loading .mcm-lb-icon {
	display: none;
}

.mcm-lb-form__row button.is-loading::after {
	content: "";
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mcm-lb-spin 0.7s linear infinite;
}

@keyframes mcm-lb-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Icône avion (image, comme .mcm-newsletter__icon du sous-menu) */
.mcm-lb-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
	display: block;
}

.mcm-lb-form__note {
	display: block;
	margin-top: 8px;
	color: #777;
	font-size: 12px;
}

.mcm-lb-form__message {
	margin-top: 10px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
}

/* La zone s'adapte au contenu (et non toute la largeur du formulaire) */
.mcm-lb-form__message:not([hidden]) {
	display: inline-block;
	max-width: 100%;
}

.mcm-lb-form__message--success {
	background: #e6f4ea;
	color: #1e7e34;
}

.mcm-lb-form__message--error {
	background: #fde8e8;
	color: #c0392b;
}

/* Page d'un livre blanc non autorisée : message + formulaire(s) */
.mcm-lb-gate {
	max-width: 640px;
	margin: 0 auto;
}

.mcm-lb-gate__intro {
	margin-bottom: 16px;
}

.mcm-lb-gate__login {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.mcm-lb-gate__lost {
	margin-top: 8px;
	font-size: 13px;
}
