/* Модалка «Заказать звонок» из шапки 2026.
   Оформление повторяет попап заявки в корзине (шаблон 124), но стили
   самостоятельные: шапка стоит на страницах, где cart26.css не подключён. */

.cb-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, .35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	align-items: center;
	justify-content: center;
}

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

.cb-modal {
	position: relative;
	width: 420px;
	max-width: calc(100% - 32px);
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	padding: 32px;
	background: #fff;
	border-radius: 16px;
	box-sizing: border-box;
	font-family: 'Golos Text', -apple-system, 'Segoe UI', sans-serif;
}

.cb-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: #f5f5f7;
	cursor: pointer;
	transition: background .2s;
	padding: 0;
}

.cb-close:hover { background: #eee; }
.cb-close svg { width: 16px; height: 16px; fill: #666; }

.cb-title {
	margin-bottom: 8px;
	font-size: 22px;
	font-weight: 700;
	color: #222;
	padding-right: 40px;
}

.cb-sub {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.5;
	color: #6e6e73;
}

.cb-field { margin-bottom: 16px; }

.cb-lbl {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: #888;
}

.cb-inp {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
	color: #222;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .2s;
	-webkit-appearance: none;
	appearance: none;
}

.cb-inp:focus {
	outline: none;
	border-color: #705ABF;
	box-shadow: 0 0 0 3px rgba(112, 90, 191, .1);
}

.cb-inp::placeholder { color: #bbb; }
.cb-inp.cb-inp--err { border-color: #F25757; }

.cb-error {
	display: none;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 12px;
	color: #F25757;
}

.cb-error.is-shown { display: flex; }

.cb-area {
	min-height: 84px;
	resize: vertical;
	line-height: 1.45;
}

/* Капчу показываем только когда человек начал вводить телефон — как в корзине */
.cb-captcha { display: none; margin-bottom: 16px; }
.cb-captcha.is-shown { display: block; }

.cb-submit {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 12px;
	background: #705ABF;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

.cb-submit:hover { background: #5f49ad; }
.cb-submit:disabled { background: #c9c1e5; cursor: default; }

.cb-note {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #9a9aa3;
	text-align: center;
}

.cb-note a { color: #705ABF; text-decoration: none; }
.cb-note a:hover { text-decoration: underline; }

/* Экран «Спасибо» — показывается вместо формы после отправки */
.cb-done { display: none; text-align: center; padding: 8px 0 4px; }
.cb-done.is-shown { display: block; }

.cb-done__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e9f6ee;
}

.cb-done__title {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 700;
	color: #222;
}

.cb-done__text {
	font-size: 14px;
	line-height: 1.5;
	color: #6e6e73;
}

@media (max-width: 480px) {
	.cb-modal { padding: 24px 20px; }
	.cb-title { font-size: 20px; }
}
