/* InnerSight site-wide intake popup modal. */

#tf-modal[hidden] {
	display: none !important;
}

.is-intake-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.is-intake-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(31, 60, 108, 0.55);
	backdrop-filter: blur(2px);
}

.is-intake-modal__panel {
	position: relative;
	width: 100%;
	max-width: 720px;
	height: min(88vh, 860px);
	background: #fdfbf9;
	border-radius: 20px;
	box-shadow: 0 24px 70px rgba(31, 60, 108, 0.35);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: is-intake-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes is-intake-pop {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.is-intake-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #4e2a7d;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(31, 60, 108, 0.18);
	transition: background 0.2s, transform 0.2s;
}

.is-intake-modal__close:hover {
	background: #fff;
	transform: scale(1.05);
}

.is-intake-modal__body {
	flex: 1;
	min-height: 0;
}

.is-intake-modal__frame {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Lock background scroll while the modal is open. */
html.is-intake-open,
body.is-intake-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.is-intake-modal {
		padding: 0;
	}
	.is-intake-modal__panel {
		max-width: 100%;
		height: 100vh;
		height: 100dvh;
		border-radius: 0;
	}
}
