/*
 * Schedule a Demo routing modal.
 * Brand: Dark Blue #383b78, Red #ab2a34, Urbanist.
 */
.asc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	font-family: 'Urbanist', sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.asc-modal[hidden] {
	display: none;
}

.asc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 21, 46, 0.6);
}

.asc-modal__panel {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: 88vh;
	margin: 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow-y: auto;
	padding: 40px 32px 32px;
	box-sizing: border-box;
}

/*
 * The theme applies global styling to bare <button> elements (pill shape,
 * background fill, full width). Reset with `all: unset` before rebuilding
 * so the theme's defaults can't leak in.
 */
#asc-demo-modal .asc-modal__close {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 14px;
	right: 16px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: #6b6d85;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

#asc-demo-modal .asc-modal__close:hover,
#asc-demo-modal .asc-modal__close:focus-visible {
	background: rgba(56, 59, 120, 0.08);
	color: #383b78;
}

#asc-demo-modal .asc-modal__back {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #383b78;
	font-family: 'Urbanist', sans-serif;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	padding: 8px 10px;
	margin: 0 0 16px;
	border-radius: 6px;
	transition: background 0.15s ease;
}

#asc-demo-modal .asc-modal__back:hover,
#asc-demo-modal .asc-modal__back:focus-visible {
	background: rgba(56, 59, 120, 0.08);
}

#asc-demo-modal .asc-modal__back[hidden] {
	display: none;
}

.asc-modal__title {
	font-family: 'Urbanist', sans-serif;
	font-weight: 700;
	font-size: 28px;
	color: #21223f;
	margin: 0 0 8px;
}

.asc-modal__subtitle {
	font-size: 16px;
	color: #5b5d75;
	margin: 0 0 24px;
}

.asc-modal__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 600px) {
	.asc-modal {
		padding: 12px;
	}

	.asc-modal__grid {
		grid-template-columns: 1fr;
	}

	.asc-modal__panel {
		padding: 32px 20px 24px;
		max-height: 92vh;
	}

	.asc-modal__title {
		font-size: 23px;
	}

	#asc-demo-modal .asc-modal__close {
		width: 40px;
		height: 40px;
	}

	.asc-modal__calendly {
		height: 70vh;
	}
}

.asc-modal__card {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 90px;
	padding: 16px;
	border: 2px solid #e3e4ee;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font-family: 'Urbanist', sans-serif;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.asc-modal__card:hover,
.asc-modal__card:focus-visible {
	background: rgba(56, 59, 120, 0.05);
	border-color: #383b78;
	outline: none;
}

.asc-modal__card-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(56, 59, 120, 0.08);
	color: #383b78;
}

.asc-modal__card-icon svg {
	width: 20px;
	height: 20px;
}

.asc-modal__card-label {
	font-weight: 600;
	font-size: 15px;
	color: #21223f;
	line-height: 1.3;
}

.asc-modal__calendly {
	height: 620px;
}

.asc-modal__calendly-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #5b5d75;
	font-size: 15px;
}

body.asc-modal-open {
	overflow: hidden;
}
