/* ============================================
   Callback Modal Styles
   Модальное окно обратного звонка
   ============================================ */

.callback-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	cursor: pointer;
}

.callback-modal.popup_active {
	opacity: 1;
	visibility: visible;
}

.callback-modal__panel {
	position: relative;
	background-color: #fff;
	border-radius: 12px;
	max-width: 480px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px 32px 32px;
	cursor: default;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.callback-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: #666;
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.callback-modal__close:hover {
	color: #333;
}

.callback-modal__close svg {
	width: 20px;
	height: 20px;
}

.callback-modal__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #1a1a1a;
	line-height: 1.2;
}

.callback-modal__subtitle {
	font-size: 15px;
	color: #666;
	margin: 0 0 32px;
	line-height: 1.5;
}

/* ============================================
   Form Styles
   ============================================ */

.callback-form {
	display: flex;
	flex-direction: column;
}

.callback-form__fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 20px;
}

.callback-form__field {
	display: flex;
	flex-direction: column;
	position: relative;
}

.callback-form__field label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	margin-bottom: 8px;
	display: block;
}

.callback-form__required {
	color: #e63946;
}

.callback-form__field input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
}

.callback-form__field input:focus {
	outline: none;
	border-color: #0066cc;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.callback-form__field input.is-invalid {
	border-color: #e63946;
}

.callback-form__field input.is-invalid:focus {
	box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.callback-form__error {
	font-size: 13px;
	color: #e63946;
	margin: 6px 0 0;
	line-height: 1.4;
}

.callback-form__error--general {
	background-color: #fee;
	border: 1px solid #fcc;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
}

.callback-form__submit {
	width: 100%;
	padding: 14px 24px;
	background-color: #0066cc;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	font-family: inherit;
}

.callback-form__submit:hover {
	background-color: #0052a3;
}

.callback-form__submit:active {
	transform: scale(0.98);
}

.callback-form__submit:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	transform: none;
}

.callback-form__note {
	font-size: 12px;
	color: #999;
	margin: 12px 0 0;
	line-height: 1.5;
	text-align: center;
}

/* ============================================
   Success State
   ============================================ */

.callback-modal__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px 0;
}

.callback-modal__success-icon {
	width: 80px;
	height: 80px;
	color: #10b981;
	margin-bottom: 24px;
	animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
	0% {
		transform: scale(0.8);
		opacity: 0;
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.callback-modal__success-title {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 12px;
}

.callback-modal__success-text {
	font-size: 15px;
	color: #666;
	margin: 0;
	line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
	.callback-modal__panel {
		padding: 32px 24px 24px;
		max-width: 95%;
		border-radius: 8px;
	}

	.callback-modal__title {
		font-size: 24px;
	}

	.callback-modal__subtitle {
		font-size: 14px;
		margin-bottom: 24px;
	}

	.callback-form__fields {
		gap: 16px;
	}

	.callback-form__submit {
		padding: 12px 20px;
		font-size: 15px;
	}
}
