/* ── Demo Trigger Button ───────────────────────────────────────────────────── */
.tpf-demo-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	background: transparent;
	color: #1a1a2e;
	font-size: 15px;
	font-weight: 600;
	border: 2px solid #1a1a2e;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.18s, color 0.18s, transform 0.15s;
	text-decoration: none;
	line-height: 1;
	font-family: inherit;
}
.tpf-demo-trigger:hover {
	background: #1a1a2e;
	color: #fff;
	transform: translateY(-1px);
}
.tpf-demo-trigger svg {
	flex-shrink: 0;
}

/* ── Overlay ───────────────────────────────────────────────────────────────── */
.tpf-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: tpf-fade-in 0.2s ease;
}
.tpf-modal-overlay[hidden] {
	display: none;
}
@keyframes tpf-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ── Modal Card ────────────────────────────────────────────────────────────── */
.tpf-modal {
	background: #fff;
	border-radius: 16px;
	padding: 40px 36px 32px;
	width: 100%;
	max-width: 440px;
	position: relative;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
	animation: tpf-slide-up 0.25s ease;
}
@keyframes tpf-slide-up {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Close Button ──────────────────────────────────────────────────────────── */
.tpf-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}
.tpf-modal-close:hover {
	color: #333;
	background: #f5f5f5;
}

/* ── Icon ──────────────────────────────────────────────────────────────────── */
.tpf-modal-icon {
	width: 52px;
	height: 52px;
	background: #f0f4ff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	color: #3b5bdb;
}

/* ── Headings ──────────────────────────────────────────────────────────────── */
.tpf-modal h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.3;
}
.tpf-modal p {
	margin: 0 0 24px;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

/* ── Form Fields ───────────────────────────────────────────────────────────── */
.tpf-field {
	margin-bottom: 16px;
}
.tpf-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}
.tpf-required {
	color: #e03131;
}
.tpf-optional {
	font-weight: 400;
	color: #999;
	font-size: 12px;
}
.tpf-field input {
	width: 100%;
	padding: 11px 14px;
	font-size: 14px;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
	color: #1a1a2e;
	font-family: inherit;
}
.tpf-field input:focus {
	border-color: #3b5bdb;
	box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.12);
}
.tpf-field input::placeholder {
	color: #bbb;
}

/* ── Proceed Button ────────────────────────────────────────────────────────── */
.tpf-proceed-btn {
	width: 100%;
	padding: 13px 20px;
	background: #1a1a2e;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
	transition: background 0.2s;
	font-family: inherit;
}
.tpf-proceed-btn:hover {
	background: #16213e;
}
.tpf-proceed-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ── Error ─────────────────────────────────────────────────────────────────── */
.tpf-error {
	margin-top: 10px;
	color: #e03131;
	font-size: 13px;
	padding: 8px 12px;
	background: #fff5f5;
	border-radius: 6px;
	border: 1px solid #ffc9c9;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.tpf-modal {
		padding: 28px 20px 24px;
	}
}
