/* MarTech Lead Popup - base structural styles */
.mtlp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	font-family: var(--mtlp-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	box-sizing: border-box;
}
.mtlp-overlay * { box-sizing: border-box; }
.mtlp-overlay.mtlp-open { display: flex; }

.mtlp-popup {
	position: relative;
	width: 100%;
	max-width: var(--mtlp-width, 420px);
	background: var(--mtlp-bg, #fff);
	border-radius: var(--mtlp-radius, 12px);
	padding: 32px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	max-height: 90vh;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}
.mtlp-popup::-webkit-scrollbar { width: 6px; }
.mtlp-popup::-webkit-scrollbar-track { background: transparent; }
.mtlp-popup::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.25); border-radius: 10px; }
.mtlp-popup::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, 0.4); }

.mtlp-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	padding: 4px 8px;
}
.mtlp-close:hover { opacity: 1; }

.mtlp-logo { display: block; max-width: 100%; max-height: 48px; width: auto; height: auto; margin: 0 auto 16px; }

.mtlp-heading { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.mtlp-subheading { margin: 0 0 16px; font-size: 14px; opacity: 0.8; }

.mtlp-field { margin-bottom: 12px; text-align: left; }
.mtlp-field label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 600; line-height: 1.3; }
.mtlp-field input[type="text"],
.mtlp-field input[type="tel"],
.mtlp-field input[type="email"],
.mtlp-field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.4;
}
.mtlp-field textarea { resize: vertical; }

.mtlp-gdpr label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 12px; }
.mtlp-gdpr input { margin-top: 3px; }

.mtlp-submit {
	width: 100%;
	min-height: 44px;
	padding: 12px 16px;
	background: var(--mtlp-btn, #2563eb);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.mtlp-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.mtlp-submit:hover:not(:disabled) { filter: brightness(0.92); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); transform: translateY(-1px); }
.mtlp-submit:active:not(:disabled) { filter: brightness(0.85); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); transform: translateY(0); }

.mtlp-status { margin: 10px 0 0; font-size: 13px; text-align: center; min-height: 16px; }
.mtlp-status.mtlp-error { color: #dc2626; }
.mtlp-status.mtlp-success { color: #16a34a; }

.mtlp-shortcode-trigger {
	padding: 10px 20px;
	background: var(--mtlp-btn, #2563eb);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

/* Animations */
.mtlp-anim-fade .mtlp-popup { animation: mtlpFade .25s ease; }
.mtlp-anim-slide-up .mtlp-popup { animation: mtlpSlideUp .3s ease; }
.mtlp-anim-zoom .mtlp-popup { animation: mtlpZoom .25s ease; }

@keyframes mtlpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mtlpSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mtlpZoom { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* Mobile spacing */
@media (max-width: 480px) {
	.mtlp-overlay { padding: 16px; }
	.mtlp-popup { padding: 24px 20px; }
}

/* Visibility control */
@media (max-width: 767px) {
	.mtlp-visibility-desktop { display: none !important; }
}
@media (min-width: 768px) {
	.mtlp-visibility-mobile { display: none !important; }
}

/* Admin screen helpers */
.mtlp-wrap .form-table th { width: 240px; }
.mtlp-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; flex-wrap: wrap; gap: 10px; }
