/* Oculta el mensaje de texto que CF7 pone por defecto debajo del formulario,
   porque ahora ese mismo mensaje se muestra en el popup. */
.wpcf7-response-output {
	display: none !important;
}

.cf7rf-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.cf7rf-popup-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.cf7rf-popup-box {
	background: #fff;
	border-radius: 10px;
	max-width: 420px;
	width: 100%;
	padding: 28px 24px 24px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	transform: translateY(10px);
	transition: transform 0.2s ease;
	box-sizing: border-box;
}

.cf7rf-popup-overlay.is-visible .cf7rf-popup-box {
	transform: translateY(0);
}

.cf7rf-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: #f1f1f1;
	color: #333;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cf7rf-popup-close:hover {
	background: #e2e2e2;
}

.cf7rf-popup-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	margin-bottom: 14px;
}

.cf7rf-popup-box.is-success .cf7rf-popup-icon {
	background: #1a9c5b;
}

.cf7rf-popup-box.is-error .cf7rf-popup-icon,
.cf7rf-popup-box.is-spam .cf7rf-popup-icon {
	background: #d63638;
}

.cf7rf-popup-message {
	font-size: 15px;
	line-height: 1.5;
	color: #222;
	margin: 0;
}
