/* ------------------------------------------------------------------
   Модальное окно «Заказать звонок» — обратная связь ДПК Арефино.
   Подключается из theme-functions/callback-arefino.php.
   ------------------------------------------------------------------ */

.arefino-cb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.arefino-cb.is-open {
	display: flex;
}

.arefino-cb__overlay {
	position: absolute;
	inset: 0;
	background: rgba(24, 24, 24, .68);
	backdrop-filter: blur(2px);
}

.arefino-cb__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 32px 30px 28px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	color: #181818;
	font-size: 15px;
}

.arefino-cb__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f4f4f4;
	color: #181818;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.arefino-cb__close:hover {
	background: #ff8562;
	color: #181818;
}

.arefino-cb__title {
	margin: 0 0 8px;
	padding-right: 30px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.arefino-cb__subtitle {
	margin: 0 0 22px;
	color: #615454;
	font-size: 14.5px;
	line-height: 1.55;
}

.arefino-cb__field {
	margin-bottom: 14px;
}

.arefino-cb__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #181818;
}

.arefino-cb__req {
	color: #e0663f;
}

.arefino-cb__field input,
.arefino-cb__field textarea {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	color: #181818;
	background: #fff;
	border: 1px solid #e2dfde;
	border-radius: 10px;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.arefino-cb__field textarea {
	resize: vertical;
	min-height: 76px;
}

.arefino-cb__field input:focus,
.arefino-cb__field textarea:focus {
	border-color: #ff8562;
	box-shadow: 0 0 0 3px rgba(255, 133, 98, .22);
}

.arefino-cb__field input.is-invalid,
.arefino-cb__field textarea.is-invalid {
	border-color: #d64545;
	box-shadow: 0 0 0 3px rgba(214, 69, 69, .18);
}

.arefino-cb__note {
	margin: 2px 0 14px;
	font-size: 12px;
	color: #8a8280;
	line-height: 1.5;
}

.arefino-cb__submit {
	width: 100%;
}

.arefino-cb__submit[disabled] {
	opacity: .6;
	cursor: wait;
	transform: none;
}

.arefino-cb__message {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.arefino-cb__message.is-error {
	background: #fdecec;
	color: #a13030;
}

.arefino-cb__message.is-success {
	background: #eaf7ec;
	color: #1f7a33;
}

/* модалка не зависит от reset'ов родительской темы */
.arefino-cb *,
.arefino-cb *::before,
.arefino-cb *::after {
	box-sizing: border-box;
}