/*--------------------------------------------------------------
# Chat AI — widget plutitor, pe tot site-ul
--------------------------------------------------------------*/
.og-chat-wrap {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 9998;
}

.og-chat-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 999px;
	background-color: var(--color-primary);
	color: var(--color-white);
	box-shadow: 0 4px 16px rgba(11, 16, 32, 0.2);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.og-chat-toggle svg {
	width: 24px;
	height: 24px;
}

.og-chat-toggle:hover {
	background-color: var(--color-primary-dark);
	transform: scale(1.05);
}

.og-chat-panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	display: flex;
	flex-direction: column;
	width: 340px;
	max-width: calc(100vw - 2rem);
	height: 600px;
	max-height: calc(100vh - 7rem);
	border-radius: 16px;
	background-color: var(--color-white);
	box-shadow: 0 8px 32px rgba(11, 16, 32, 0.2);
	overflow: hidden;
}

.og-chat-panel[hidden] {
	display: none;
}

.og-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 1rem;
	background-color: var(--color-dark);
	color: var(--color-white);
	font-size: 13.5px;
	font-weight: 700;
}

.og-chat-header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.og-chat-newsession,
.og-chat-close {
	-webkit-appearance: none;
	appearance: none;
	padding: 0;
	border: none;
	outline: none;
	background: none;
	color: var(--color-white);
	line-height: 1;
	cursor: pointer;
}

.og-chat-newsession::-moz-focus-inner,
.og-chat-close::-moz-focus-inner {
	border: 0;
}

.og-chat-newsession {
	font-size: 1.15rem;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.og-chat-newsession:hover {
	opacity: 1;
	transform: rotate(-45deg);
}

.og-chat-close {
	font-size: 1.7rem;
}

.og-chat-messages {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1rem;
	overflow-y: auto;
}

.og-chat-msg {
	max-width: 85%;
	padding: 0.55rem 0.8rem;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
}

.og-chat-msg-bot {
	align-self: flex-start;
	background-color: rgba(11, 16, 32, 0.05);
	color: var(--color-dark);
	border-bottom-left-radius: 4px;
}

.og-chat-msg-user {
	align-self: flex-end;
	background-color: var(--color-primary);
	color: var(--color-white);
	border-bottom-right-radius: 4px;
}

.og-chat-typing {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0.7rem 0.9rem;
}

.og-chat-typing span {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background-color: rgba(11, 16, 32, 0.4);
	animation: og-chat-bounce 1.2s infinite ease-in-out;
}

.og-chat-typing span:nth-child(2) {
	animation-delay: 0.2s;
}

.og-chat-typing span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes og-chat-bounce {
	0%, 60%, 100% {
		transform: translateY(0);
		opacity: 0.4;
	}
	30% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

.og-chat-cta {
	padding: 0 1rem 0.6rem;
}

.og-chat-cta a {
	display: block;
	padding: 0.5rem;
	border-radius: 8px;
	background-color: rgba(0, 137, 150, 0.08);
	color: var(--color-primary);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.og-chat-form {
	display: flex;
	gap: 0.5rem;
	padding: 0.75rem;
	border-top: 1px solid rgba(11, 16, 32, 0.08);
}

.og-chat-form input {
	flex: 1;
	padding: 0.6rem 0.8rem;
	border: 1px solid rgba(11, 16, 32, 0.15);
	border-radius: 999px;
	font-size: 13px;
	font-family: inherit;
}

.og-chat-form input:focus {
	outline: none;
	border-color: var(--color-primary);
}

.og-chat-form button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 999px;
	background-color: var(--color-primary);
	color: var(--color-white);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

@media screen and (max-width: 480px) {
	.og-chat-panel {
		position: fixed;
		top: 0;
		left: 0;
		right: auto;
		bottom: auto;
		z-index: 1;
		width: 100vw;
		max-width: none;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
	}
}

.og-chat-msg-btn {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	background-color: var(--color-primary);
	color: var(--color-white);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.og-chat-msg-btn:hover {
	background-color: var(--color-primary-dark);
	color: var(--color-white);
}

.og-chat-msg-btn:visited {
	color: var(--color-white);
}

/*--------------------------------------------------------------
# Formular inline de contact, în fallback-ul chat-ului
--------------------------------------------------------------*/
.og-chat-lead-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.7rem;
}

.og-chat-lead-form input[type="text"],
.og-chat-lead-form input[type="email"],
.og-chat-lead-form input[type="tel"] {
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(11, 16, 32, 0.15);
	border-radius: 8px;
	font-size: 12.5px;
	font-family: inherit;
	background-color: var(--color-white);
}

.og-chat-lead-form input:focus {
	outline: none;
	border-color: var(--color-primary);
}

.og-chat-lead-gdpr {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	font-size: 10.5px;
	line-height: 1.4;
	color: rgba(11, 16, 32, 0.6);
	cursor: pointer;
}

.og-chat-lead-gdpr input {
	flex-shrink: 0;
	margin-top: 0.15rem;
}

.og-chat-lead-form button {
	padding: 0.5rem;
	border: none;
	border-radius: 8px;
	background-color: var(--color-primary);
	color: var(--color-white);
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.og-chat-lead-form button:hover {
	background-color: var(--color-primary-dark);
}

.og-chat-lead-form button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.og-chat-lead-eroare {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	color: #dc2626;
}

.og-chat-lead-confirmare {
	margin-top: 0.6rem;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--color-primary);
}
