/**
 * =========================================
 * COURSE LEAD POPUP
 * =========================================
 */

.ths-course-lead-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.65);
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.ths-course-lead-overlay.is-open {
	display: flex;
}

.ths-course-lead-modal {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 30px;
	box-sizing: border-box;
}

.ths-course-lead-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #555555;
	font-size: 28px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	padding: 0;
}

.ths-course-lead-close:hover {
	background: #f3f3f3;
	color: #111111;
}

.ths-course-lead-title {
	margin: 0 40px 8px 0;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	color: #002147;
}

.ths-course-lead-subtitle {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.6;
	color: #666666;
}

.ths-course-lead-course {
	margin-bottom: 20px;
	padding: 12px 14px;
	border-left: 4px solid #F74723;
	border-radius: 6px;
	background: #f7f9fb;
	font-size: 14px;
	line-height: 1.5;
	color: #333333;
}

.ths-course-lead-course strong {
	color: #002147;
}

.ths-course-lead-field {
	margin-bottom: 16px;
}

.ths-course-lead-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #222222;
}

.ths-course-lead-field input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #d7d7d7;
	border-radius: 7px;
	background: #ffffff;
	color: #222222;
	font-size: 15px;
	line-height: 48px;
	box-sizing: border-box;
	outline: none;
}

.ths-course-lead-field input:focus {
	border-color: #175A99;
	box-shadow: 0 0 0 3px rgba(23, 90, 153, 0.10);
}

.ths-course-lead-error {
	display: none;
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #c62828;
}

.ths-course-lead-error.is-visible {
	display: block;
}

.ths-course-lead-submit {
	display: block;
	width: 100%;
	min-height: 50px;
	margin-top: 6px;
	border: 0;
	border-radius: 7px;
	background: #F74723;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ths-course-lead-submit:hover {
	opacity: 0.92;
}

.ths-course-lead-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ths-course-lead-status {
	display: none;
	margin-top: 14px;
	padding: 11px 13px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
}

.ths-course-lead-status.is-visible {
	display: block;
}

.ths-course-lead-status.is-success {
	background: #edf8f0;
	color: #247a3d;
}

.ths-course-lead-status.is-error {
	background: #fff0f0;
	color: #b42318;
}

/*
 * Honeypot
 * Hidden from normal visitors.
 */

.ths-course-lead-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/*
 * Prevent background page scrolling
 * while popup is open.
 */

body.ths-course-lead-modal-open {
	overflow: hidden;
}

/*
 * Mobile
 */

@media (max-width: 480px) {

	.ths-course-lead-overlay {
		padding: 12px;
	}

	.ths-course-lead-modal {
		max-height: calc(100vh - 24px);
		padding: 24px 20px;
		border-radius: 12px;
	}

	.ths-course-lead-title {
		font-size: 21px;
	}

	.ths-course-lead-subtitle {
		font-size: 13px;
	}

}