/* Лид-форма Thermaflex */
.cpform-container {
	margin: 50px auto;
	padding: 50px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.08);
	border: 1px solid rgba(0,0,0,0.05);
}

.cpform-title {
	color: #2c3e50;
	margin-bottom: 15px;
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	letter-spacing: -0.5px;
}

.cpform-subtitle {
	color: #64748b;
	margin-bottom: 40px;
	text-align: center;
	font-size: 18px;
	line-height: 1.6;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.cpform-group {
	margin-bottom: 25px;
}

.cpform-label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: #374151;
	font-size: 15px;
}

.cpform-required {
	color: #ef4444;
	margin-left: 4px;
	font-weight: 700;
}

.cpform-optional {
	color: #9ca3af;
	font-size: 13px;
	margin-left: 6px;
	font-weight: 400;
}

.cpform-input {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 400;
	transition: all 0.2s ease;
	box-sizing: border-box;
	background: #fafafa;
}

.cpform-input:focus {
	outline: none;
	border-color: #00A900;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0,169,0,0.08);
	transform: translateY(-1px);
}

.cpform-input:hover {
	border-color: #d1d5db;
	background: #fff;
}

.cpform-input.error {
	border-color: #ef4444;
	background: #fef2f2;
}

.cpform-select {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	font-size: 16px;
	background: #fafafa;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
	font-weight: 400;
}

.cpform-select:focus {
	outline: none;
	border-color: #00A900;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0,169,0,0.08);
	transform: translateY(-1px);
}

.cpform-select:hover {
	border-color: #d1d5db;
	background: #fff;
}

/* Автоподбор городов */
.cpform-autocomplete {
	position: relative;
}

.cpform-autocomplete-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 2px solid #e5e7eb;
	border-top: none;
	border-radius: 0 0 10px 10px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cpform-autocomplete-item {
	padding: 12px 18px;
	cursor: pointer;
	border-bottom: 1px solid #f3f4f6;
	transition: background-color 0.15s;
	font-size: 15px;
}

.cpform-autocomplete-item:hover,
.cpform-autocomplete-item.active {
	background-color: #f0fdf4;
	color: #166534;
}

.cpform-autocomplete-item:last-child {
	border-bottom: none;
}

/* Радио-кнопки */
.cpform-radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cpform-radio-item {
	display: flex;
	align-items: center;
	padding: 16px 18px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #fafafa;
}

.cpform-radio-item:hover {
	background-color: #f0fdf4;
	border-color: #00A900;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cpform-radio-item.selected {
	background-color: #f0fdf4;
	border-color: #00A900;
	box-shadow: 0 0 0 1px rgba(0,169,0,0.1);
}

.cpform-radio-item input[type="radio"] {
	margin-right: 14px;
	accent-color: #00A900;
	transform: scale(1.2);
}

.cpform-radio-item label {
	cursor: pointer;
	flex: 1;
	margin: 0;
	font-weight: 500;
	font-size: 15px;
	color: #374151;
}

/* Кнопка отправки */
.cpform-submit {
	width: 100%;
	padding: 18px 24px;
	background: linear-gradient(135deg, #00A900 0%, #008800 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 30px;
	letter-spacing: 0.3px;
	box-shadow: 0 4px 15px rgba(0,169,0,0.2);
}

.cpform-submit:hover {
	background: linear-gradient(135deg, #009400 0%, #007700 100%);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,169,0,0.3);
}

.cpform-submit:active {
	transform: translateY(-1px);
}

.cpform-submit:disabled {
	background: #d1d5db;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Ошибки и успех */
.cpform-error {
	color: #ef4444;
	font-size: 14px;
	margin-top: 6px;
	font-weight: 500;
}

.cpform-success {
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	color: #166534;
	padding: 30px;
	border-radius: 16px;
	text-align: center;
	margin-bottom: 30px;
	border: 2px solid #86efac;
	box-shadow: 0 4px 15px rgba(34,197,94,0.1);
}

.cpform-success h3 {
	margin: 10px 0;
	font-size: 24px;
	font-weight: 700;
}

.cpform-success p {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
}

.cpform-loading {
	display: none;
	text-align: center;
	margin-top: 20px;
}

.cpform-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255,255,255,0.3);
	border-top: 3px solid #ffffff;
	border-radius: 50%;
	animation: cpform-spin 1s linear infinite;
}

@keyframes cpform-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Улучшенная адаптивность */
@media (max-width: 992px) {
	.cpform-container {
		margin: 30px 20px;
		padding: 40px 30px;
	}

	.cpform-title {
		font-size: 28px;
	}

	.cpform-subtitle {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.cpform-container {
		margin: 20px 15px;
		padding: 30px 20px;
	}

	.cpform-title {
		font-size: 24px;
	}

	.cpform-subtitle {
		font-size: 15px;
		margin-bottom: 30px;
	}

	.cpform-group {
		margin-bottom: 20px;
	}

	.cpform-radio-group {
		gap: 10px;
	}

	.cpform-radio-item {
		padding: 14px 16px;
	}

	.cpform-submit {
		padding: 16px 20px;
		font-size: 16px;
		margin-top: 25px;
	}
}

@media (max-width: 480px) {
	.cpform-container {
		margin: 15px 10px;
		padding: 25px 15px;
	}

	.cpform-title {
		font-size: 22px;
	}

	.cpform-input,
	.cpform-select {
		padding: 12px 15px;
		font-size: 15px;
	}

	.cpform-radio-item {
		padding: 12px 14px;
	}

	.cpform-radio-item label {
		font-size: 14px;
	}

	.cpform-submit {
		padding: 14px 18px;
		font-size: 15px;
	}
}

/* Дополнительные эффекты для улучшения UX */
.cpform-input::placeholder,
.cpform-select option:first-child {
	color: #9ca3af;
	opacity: 1;
}

.cpform-input:focus::placeholder {
	opacity: 0.7;
}

/* Анимация появления формы */
.cpform-container {
	animation: cpform-fadeIn 0.6s ease-out;
}

@keyframes cpform-fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}