/**
 * Lead Capture Management - popup styles.
 */

.lcm-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 39, .62);
}

.lcm-modal[style*="block"] {
	display: flex !important;
}

.lcm-modal-content {
	width: 100%;
	max-width: 440px;
	max-height: 92vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
	font-family: inherit;
}

.lcm-modal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid #e9ecef;
}

.lcm-modal .modal-header h2 {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	color: #111827;
}

.lcm-modal .lcm-close {
	padding: 0;
	width: 30px;
	height: 30px;
	font-size: 24px;
	line-height: 1;
	color: #6b7280;
	background: none;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.lcm-modal .lcm-close:hover {
	background: #f3f4f6;
	color: #111827;
}

.lcm-modal form {
	padding: 20px 22px 22px;
}

.lcm-modal .lcm-context {
	margin: 0 0 16px;
	font-size: 14px;
	color: #4b5563;
}

.lcm-modal .form-group {
	margin-bottom: 15px;
}

.lcm-modal .form-group label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.lcm-modal input[type="text"],
.lcm-modal input[type="tel"],
.lcm-modal input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-sizing: border-box;
}

.lcm-modal input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.lcm-modal .phone-field {
	display: flex;
	align-items: stretch;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
}

.lcm-modal .phone-field span {
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-size: 14px;
	color: #4b5563;
	background: #f9fafb;
	border-right: 1px solid #d1d5db;
}

.lcm-modal .phone-field input {
	border: 0;
	border-radius: 0;
	flex: 1;
}

.lcm-modal .phone-field input:focus {
	box-shadow: none;
}

.lcm-modal .lcm-consent {
	margin: 0 0 14px;
	font-size: 11.5px;
	line-height: 1.5;
	color: #6b7280;
}

.lcm-modal .lcm-error {
	margin-bottom: 14px;
	padding: 9px 12px;
	font-size: 13px;
	color: #991b1b;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
}

.lcm-modal .form-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.lcm-modal .form-actions .submit-btn {
	flex: 1;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #2563eb;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.lcm-modal .form-actions .submit-btn:hover {
	background: #1d4ed8;
}

.lcm-modal .form-actions .submit-btn:disabled {
	opacity: .6;
	cursor: default;
}

.lcm-modal .form-actions .lcm-skip {
	padding: 11px 16px;
	font-size: 14px;
	color: #6b7280;
	background: none;
	border: 0;
	cursor: pointer;
}

.lcm-modal .form-actions .lcm-skip:hover {
	color: #111827;
	text-decoration: underline;
}

#lcm-success {
	padding: 40px 22px;
	text-align: center;
}

#lcm-success .success-tick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	font-size: 28px;
	color: #fff;
	background: #16a34a;
	border-radius: 50%;
}

#lcm-success h3 {
	margin: 0 0 8px;
	font-size: 19px;
	color: #111827;
}

#lcm-success p {
	margin: 0 0 20px;
	font-size: 14px;
	color: #4b5563;
}

#lcm-success .lcm-close {
	width: auto;
	height: auto;
	padding: 10px 26px;
	font-size: 14px;
	color: #374151;
	background: #f3f4f6;
	border-radius: 8px;
}

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

	.lcm-modal-content {
		max-width: 100%;
	}
}

/* Admin: lead status pills. */
.lcm-status {
	display: inline-block;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 10px;
}

.lcm-status-new      { color: #1e40af; background: #dbeafe; }
.lcm-status-queued   { color: #92400e; background: #fef3c7; }
.lcm-status-pushed   { color: #166534; background: #dcfce7; }
.lcm-status-closed   { color: #4b5563; background: #f3f4f6; }
