/**
 * استایل‌های پاپ‌آپ جذب لید
 */

.ahmadreza-codes-lead-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ahmadreza-codes-lead-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
}

.ahmadreza-codes-lead-popup-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: ahmadreza-codes-popup-fade-in 0.3s ease-out;
}

@keyframes ahmadreza-codes-popup-fade-in {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.ahmadreza-codes-lead-popup-close {
	position: absolute;
	top: 15px;
	left: 15px;
	background: transparent;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.ahmadreza-codes-lead-popup-close:hover {
	background-color: #f0f0f0;
	color: #333;
}

.ahmadreza-codes-lead-popup-header {
	text-align: center;
	margin-bottom: 25px;
	padding-top: 10px;
}

.ahmadreza-codes-lead-popup-header h2 {
	margin: 0 0 10px 0;
	font-size: 22px;
	color: #333;
	font-weight: 600;
}

.ahmadreza-codes-lead-popup-header p {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

.ahmadreza-codes-lead-form {
	margin-top: 20px;
}

.ahmadreza-codes-form-group {
	margin-bottom: 20px;
}

.ahmadreza-codes-form-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.ahmadreza-codes-form-group label .required {
	color: #e74c3c;
	margin-right: 3px;
}

.ahmadreza-codes-form-group input[type="text"],
.ahmadreza-codes-form-group input[type="tel"] {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.ahmadreza-codes-form-group input[type="text"]:focus,
.ahmadreza-codes-form-group input[type="tel"]:focus {
	outline: none;
	border-color: #0073aa;
}

.ahmadreza-codes-submit-btn {
	width: 100%;
	padding: 14px 20px;
	background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.ahmadreza-codes-submit-btn:hover {
	background: linear-gradient(135deg, #005a87 0%, #004d73 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.ahmadreza-codes-submit-btn:active {
	transform: translateY(0);
}

.ahmadreza-codes-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.ahmadreza-codes-form-message {
	margin-top: 15px;
	padding: 12px;
	border-radius: 6px;
	font-size: 14px;
	text-align: center;
	display: none;
}

.ahmadreza-codes-form-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}

.ahmadreza-codes-form-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

/* ریسپانسیو */
@media (max-width: 600px) {
	.ahmadreza-codes-lead-popup-content {
		padding: 20px;
		width: 95%;
	}
	
	.ahmadreza-codes-lead-popup-header h2 {
		font-size: 18px;
	}
	
	.ahmadreza-codes-lead-popup-header p {
		font-size: 13px;
	}
}

