/* TD Total Face Leads — popup styling */

.td-tf-popup, .td-tf-popup *, .td-tf-popup *::before, .td-tf-popup *::after {
	box-sizing: border-box;
}

.td-tf-popup {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #ffffff;
}

.td-tf-popup.is-open {
	display: flex;
}

.td-tf-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 2, 15, 0.72);
	backdrop-filter: blur(4px);
}

.td-tf-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 32px 28px 26px;
	background: linear-gradient(160deg, #120455 0%, #190765 45%, #080414 100%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	box-shadow: 0 30px 60px rgba(15, 5, 70, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	animation: td-tf-pop-in 220ms ease-out;
}

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

.td-tf-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.td-tf-popup__close:hover { background: rgba(255, 255, 255, 0.16); transform: scale(1.03); }
.td-tf-popup__close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

.td-tf-popup__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.82);
}

.td-tf-popup__title {
	margin: 0 0 10px;
	font-family: "Roboto Slab", "Roboto", Georgia, serif;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 700;
	color: #ffffff;
}

.td-tf-popup__sub {
	margin: 0 0 20px;
	font-size: 14.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.td-tf-popup__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.td-tf-popup__field {
	display: block;
	margin-bottom: 12px;
}

.td-tf-popup__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.86);
	text-transform: uppercase;
}

.td-tf-popup__field input {
	display: block;
	width: 100%;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.td-tf-popup__field input::placeholder { color: rgba(255, 255, 255, 0.5); }
.td-tf-popup__field input:focus {
	border-color: #5927ff;
	background: rgba(255, 255, 255, 0.09);
	box-shadow: 0 0 0 3px rgba(89, 39, 255, 0.28);
}
.td-tf-popup__field input:invalid:not(:placeholder-shown) {
	border-color: #f06a6a;
}

.td-tf-popup__hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.td-tf-popup__error {
	margin: 6px 0 12px;
	padding: 10px 12px;
	background: rgba(240, 106, 106, 0.14);
	border: 1px solid rgba(240, 106, 106, 0.45);
	border-radius: 8px;
	color: #ffd4d4;
	font-size: 13.5px;
}

.td-tf-popup__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin-top: 6px;
	padding: 14px 22px;
	color: #ffffff;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	background: linear-gradient(135deg, #5927ff 0%, #3c16d8 48%, #190765 100%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(15, 5, 70, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}
.td-tf-popup__cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	border-color: rgba(255, 255, 255, 0.42);
	box-shadow: 0 14px 30px rgba(22, 7, 105, 0.5), 0 0 20px rgba(90, 40, 255, 0.28);
}
.td-tf-popup__cta:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.td-tf-popup__cta[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.td-tf-popup__cta--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.38);
	box-shadow: none;
}
.td-tf-popup__cta--ghost:hover { background: rgba(255, 255, 255, 0.06); }

.td-tf-popup__consent {
	margin: 14px 0 0;
	font-size: 11.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.6);
}
.td-tf-popup__consent a { color: #cabaff; text-decoration: underline; }

.td-tf-popup__panel--success { text-align: center; padding-top: 8px; }
.td-tf-popup__check { color: #7cf3b3; margin: 4px auto 12px; }
.td-tf-popup__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

@media (max-width: 540px) {
	.td-tf-popup__dialog { padding: 26px 20px 22px; border-radius: 14px; }
	.td-tf-popup__title  { font-size: 22px; }
	.td-tf-popup__row    { grid-template-columns: 1fr; gap: 0; }
	.td-tf-popup__field input { font-size: 16px; } /* avoid iOS zoom-on-focus */
}
