/**
 * HEP Request Info Leads — exit-intent modal styles.
 * Brand colors are injected as CSS custom properties by the capture script.
 *
 * @package HEP_Request_Info
 */

.hep-ri-overlay {
	--hep-ri-primary: #3caba4;
	--hep-ri-hover: #17aaa1;
	--hep-ri-text: #1d2b2a;
	--hep-ri-bg: #ffffff;
	--hep-ri-overlay: rgba(15, 34, 33, 0.6);

	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--hep-ri-overlay);
	opacity: 0;
	transition: opacity 0.25s ease;
	-webkit-font-smoothing: antialiased;
}

.hep-ri-overlay.is-open {
	opacity: 1;
}

body.hep-ri-modal-open {
	overflow: hidden;
}

.hep-ri-modal {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 460px;
	padding: 40px 32px 32px;
	border-radius: 16px;
	background: var(--hep-ri-bg);
	color: var(--hep-ri-text);
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.25s ease;
	font-family: inherit;
}

.hep-ri-overlay.is-open .hep-ri-modal {
	transform: translateY(0) scale(1);
}

.hep-ri-modal__title {
	margin: 0 0 12px;
	font-size: 1.6rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--hep-ri-primary);
}

.hep-ri-modal__subtitle {
	margin: 0 0 28px;
	font-size: 1.05rem;
	line-height: 1.5;
	font-weight: 500;
	color: var(--hep-ri-text);
	opacity: 0.9;
}

.hep-ri-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hep-ri-modal__btn {
	display: inline-block;
	width: 100%;
	padding: 14px 20px;
	border: 2px solid transparent;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	font-family: inherit;
}

.hep-ri-modal__btn--primary {
	background: var(--hep-ri-primary);
	color: #ffffff;
}

.hep-ri-modal__btn--primary:hover,
.hep-ri-modal__btn--primary:focus {
	background: var(--hep-ri-hover);
}

.hep-ri-modal__btn--ghost {
	background: transparent;
	color: var(--hep-ri-text);
	border-color: rgba(0, 0, 0, 0.15);
	opacity: 0.85;
}

.hep-ri-modal__btn--ghost:hover,
.hep-ri-modal__btn--ghost:focus {
	opacity: 1;
	border-color: var(--hep-ri-primary);
	color: var(--hep-ri-primary);
}

.hep-ri-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: var(--hep-ri-text);
	opacity: 0.5;
	cursor: pointer;
}

.hep-ri-modal__close:hover {
	opacity: 1;
}

@media (max-width: 480px) {
	.hep-ri-modal {
		padding: 36px 20px 24px;
	}

	.hep-ri-modal__title {
		font-size: 1.35rem;
	}
}
