/**
 * RD-Biotech – Encart de confirmation après envoi d'un formulaire Contact Form 7.
 * Emplacement : wp-content/themes/uncode-child/css/rdb-cf7-confirmation.css
 */

.rdb-cf7-confirmation {
	--rdb-navy: #002f63;
	--rdb-blue: #0098dd;
	--rdb-bg: #f2f6f9;
	--rdb-text: #33414d;

	position: relative;
	margin: 0;
	padding: 48px 40px 40px;
	background: var(--rdb-bg);
	border-top: 4px solid var(--rdb-blue);
	border-radius: 4px;
	text-align: center;
	outline: none;
	animation: rdb-cf7-in 0.45s ease-out both;
}

.rdb-cf7-confirmation:focus-visible {
	box-shadow: 0 0 0 3px rgba(0, 152, 221, 0.35);
}

.rdb-cf7-confirmation__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--rdb-blue);
	color: #ffffff;
	animation: rdb-cf7-pop 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.rdb-cf7-confirmation__icon svg {
	width: 36px;
	height: 36px;
}

.rdb-cf7-confirmation .rdb-cf7-confirmation__title {
	margin: 0 0 16px;
	color: var(--rdb-navy);
	font-size: 26px;
	line-height: 1.3;
}

.rdb-cf7-confirmation .rdb-cf7-confirmation__text {
	max-width: 560px;
	margin: 0 auto 8px;
	color: var(--rdb-text);
	font-size: 17px;
	line-height: 1.6;
}

.rdb-cf7-confirmation .rdb-cf7-confirmation__hint {
	max-width: 560px;
	margin: 0 auto 32px;
	color: #5f6b76;
	font-size: 14px;
	line-height: 1.5;
}

.rdb-cf7-confirmation__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 28px;
}

.rdb-cf7-confirmation .rdb-cf7-confirmation__btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 4px;
	background: var(--rdb-navy);
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s;
}

.rdb-cf7-confirmation .rdb-cf7-confirmation__btn:hover,
.rdb-cf7-confirmation .rdb-cf7-confirmation__btn:focus-visible {
	background: var(--rdb-blue);
	color: #ffffff;
}

.rdb-cf7-confirmation .rdb-cf7-confirmation__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--rdb-navy);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.rdb-cf7-confirmation .rdb-cf7-confirmation__link:hover,
.rdb-cf7-confirmation .rdb-cf7-confirmation__link:focus-visible {
	color: var(--rdb-blue);
}

/* Le message CF7 par défaut sous le formulaire devient inutile une fois l'encart affiché. */
.rdb-cf7-sent .wpcf7-response-output {
	display: none !important;
}

.wpcf7 form[hidden] {
	display: none !important;
}

@keyframes rdb-cf7-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

@keyframes rdb-cf7-pop {
	from { opacity: 0; transform: scale(0.5); }
	to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
	.rdb-cf7-confirmation {
		padding: 36px 20px 28px;
	}
	.rdb-cf7-confirmation .rdb-cf7-confirmation__title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rdb-cf7-confirmation,
	.rdb-cf7-confirmation__icon {
		animation: none;
	}
}
