/**
 * Lead Form Manager - styles.
 */

.lfm-wrapper {
	width: 100%;
	max-width: 650px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "IRANSans", sans-serif;
}

.lfm-card {
	position: relative;
	overflow: hidden;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	padding: 2.25rem 2rem 2rem;
	border: 1px solid #f0f0f0;
}

/* Decorative top gradient bar, like the reference design. */
.lfm-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 6px;
	background: linear-gradient(90deg, #16a34a 0%, #4ade80 45%, #fde047 100%);
}

/* Decorative soft yellow blob accent behind the title. */
.lfm-card::after {
	content: "";
	position: absolute;
	top: -70px;
	inset-inline-end: -70px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(253, 224, 71, 0.35) 0%, rgba(253, 224, 71, 0) 70%);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

.lfm-header,
#lfm-alert,
#lfm-lead-form {
	position: relative;
	z-index: 1;
}

.lfm-header {
	margin-bottom: 1.75rem;
}

.lfm-title {
	font-weight: 700;
	font-size: 1.65rem;
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.lfm-subtitle {
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.8;
	margin-bottom: 0;
}

@media (max-width: 576px) {
	.lfm-title {
		font-size: 1.35rem;
	}

	.lfm-subtitle {
		font-size: 0.875rem;
	}
}

.lfm-input {
	border-radius: 12px;
	padding: 0.75rem 1rem;
	border: 1px solid #e0e0e0;
	transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.lfm-input:focus {
	border-color: #22c55e;
	box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.15);
}

.lfm-submit-btn {
	border-radius: 14px;
	padding: 0.85rem 1rem;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	border: none;
	transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.lfm-submit-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
	color: #fff;
}

.lfm-submit-btn:disabled {
	opacity: 0.75;
}

#lfm-alert {
	border-radius: 12px;
	margin-bottom: 1rem;
}

@media (max-width: 576px) {
	.lfm-card {
		padding: 1.25rem;
		border-radius: 16px;
	}
}

/* ---------------- Admin styles ---------------- */

.lfm-admin-wrap .wp-list-table th {
	white-space: nowrap;
}

.lfm-stats-box {
	display: inline-block;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 12px 20px;
	margin-bottom: 15px;
	font-size: 14px;
}

.lfm-stats-box strong {
	font-size: 20px;
	display: block;
}
