#question-chat-button {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #2a2a2a;
	color: #fff;
	border: none;
	border-radius: 14px;
	padding: 14px 18px;
	border: 1.5px solid #f08a3c;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

	#question-chat-button:hover {
		transform: translateY(-2px);
		box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
		background: #000;
	}

	#question-chat-button:active {
		transform: translateY(0);
	}

#question-chat {
	position: fixed;
	right: 24px;
	bottom: 88px;
	width: 370px;
	max-height: calc(100dvh - 104px);
	overflow-y: auto;
	max-width: calc(100vw - 32px);
	z-index: 9999;
	background: #fff;
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
	overflow-x: hidden;
	font-family: inherit;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(.98);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

	#question-chat.open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0) scale(1);
	}

.chat-header {
	background: #2a2a2a;
	color: #fff;
	padding: 18px 50px 18px 20px;
	position: relative;
}

	.chat-header strong {
		display: block;
		font-size: 17px;
		margin-bottom: 4px;
	}

	.chat-header span {
		font-size: 13px;
		opacity: .75;
	}

.chat-body {
	padding: 20px;
}

#question-chat h3 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
	color: #2a2a2a;
}

#question-chat p {
	margin: 0 0 16px;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.5;
}

#question-chat textarea,
#question-chat input,
#question-chat select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	padding: 13px 14px;
	font-family: inherit;
	font-size: 14px;
	color: #2a2a2a;
	background: #fff;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

	#question-chat textarea:focus,
	#question-chat input:focus,
	#question-chat select:focus {
		border-color: #f08a3c;
		box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
	}

#question-chat textarea {
	min-height: 120px;
	resize: vertical;
	margin-bottom: 12px;
}

#question-chat input,
#question-chat select {
	margin-bottom: 12px;
}

#question-chat select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #7a746c 50%), linear-gradient(135deg, #7a746c 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 36px;
}

.chat-file-hint {
	margin: 0 0 8px !important;
	font-size: 12px !important;
	color: #7a746c !important;
}

.chat-file {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	cursor: pointer;
	color: #2a2a2a;
	font-size: 14px;
	font-weight: 600;
}

.chat-file input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	margin: 0;
}

.chat-file:hover {
	border-color: #f08a3c;
}

#question-chat .chat-send {
	width: 100%;
	border: 1.5px solid #f08a3c;
	border-radius: 14px;
	padding: 13px 16px;
	background: #2a2a2a;
	color: white;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

	#question-chat .chat-send:hover {
		background: #000;
	}

	#question-chat .chat-send:active {
		transform: scale(.99);
	}

	#question-chat .chat-send:disabled {
		opacity: .55;
		cursor: default;
	}

#question-chat .chat-close {
	position: absolute;
	top: 13px;
	right: 15px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 10px;
	background: rgba(255,255,255,.1);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}

	#question-chat .chat-close:hover {
		background: rgba(255,255,255,.18);
	}

#question-chat #chat-company {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.chat-status {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.4;
	color: #6b7280;
}

	.chat-status.error {
		color: #b91c1c;
	}

	.chat-status.success {
		color: #047857;
	}

.chat-privacy {
	margin-top: 12px;
	font-size: 11px;
	line-height: 1.4;
	color: #9ca3af;
}

	.chat-privacy a {
		color: inherit;
		text-decoration: underline;
	}

#email-step {
	display: none;
}

.chat-success {
	text-align: center;
	padding: 12px 4px 4px;
}

.chat-success-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ecfdf5;
	color: #047857;
	font-size: 25px;
}

@media (max-width: 600px) {
	#question-chat-button {
		right: 16px;
		bottom: 16px;
		padding: 13px 16px;
	}

	#question-chat {
		right: 16px;
		left: 16px;
		bottom: 78px;
		width: auto;
		max-width: none;
	}
}
/* Красная точка — только пока есть непрочитанный намёк (класс .has-dot) */

#question-chat-button {
	position: fixed;
}

	#question-chat-button.has-dot::after {
		content: "";
		position: absolute;
		top: 2px;
		right: 4px;
		width: 10px;
		height: 10px;
		background: #ef4444;
		border: 2px solid #fff;
		border-radius: 50%;
		box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
	}


/* Подсказка над кнопкой */

#question-chat-hint {
	position: fixed;
	right: 24px;
	bottom: 86px;
	z-index: 9998;
	width: 280px;
	max-width: calc(100vw - 32px);
	background: #fff;
	color: #2a2a2a;
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 16px;
	padding: 14px 40px 14px 16px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

	#question-chat-hint.show {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	#question-chat-hint::after {
		content: "";
		position: absolute;
		right: 34px;
		bottom: -7px;
		width: 14px;
		height: 14px;
		background: #fff;
		border-right: 1px solid rgba(17, 24, 39, 0.08);
		border-bottom: 1px solid rgba(17, 24, 39, 0.08);
		transform: rotate(45deg);
	}

#question-chat-hint-close {
	position: absolute;
	top: 7px;
	right: 9px;
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #9ca3af;
	font-size: 18px;
	cursor: pointer;
}

	#question-chat-hint-close:hover {
		background: #f3f4f6;
		color: #2a2a2a;
	}


/* Когда чат открыт — точку не показываем даже с .has-dot */

#question-chat-button.chat-open.has-dot::after {
	display: none;
}


@media (max-width: 600px) {

	#question-chat-hint {
		right: 16px;
		bottom: 78px;
		width: 250px;
	}
}

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

#chat-email::placeholder,
#chat-phone::placeholder {
	color: #9ca3af;
	opacity: 0.7;
}

.chat-success strong {
	overflow-wrap: anywhere;
}
