/* POP-UP DE CONFIRMATION — formulaire nº 21 (Grand Tirage des Fêtes) */

html.acx-popup-open {
	overflow: hidden;
}

.acx-popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 55, 118, 0.65);
	overflow-y: auto;
	animation: acx-popup-fade 0.25s ease-out;
}

.acx-popup__box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	margin: auto;
	padding: 40px 32px 32px;
	background: #fff;
	color: #003776;
	border-top: 6px solid #FECA46;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.acx-popup__box:focus {
	outline: none;
}

.acx-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #003776;
	font-size: 32px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
}

.acx-popup__close:hover,
.acx-popup__close:focus-visible {
	background: #FECA46;
	border-radius: 50%;
}

.acx-popup__close:focus-visible {
	outline: 2px solid #003776;
	outline-offset: 2px;
}

.acx-popup__box .gform_confirmation_wrapper,
.acx-popup__box .gform_confirmation_message {
	margin: 0;
	padding: 0;
}

.acx-popup__box p:last-child {
	margin-bottom: 0;
}

@keyframes acx-popup-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.acx-popup {
		animation: none;
	}
}

/* Tablette et mobile */
@media (max-width: 767px) {
	.acx-popup {
		padding: 12px;
	}
	.acx-popup__box {
		max-height: calc(100vh - 24px);
		padding: 44px 20px 24px;
	}
}
