/* WK7 Chatbot Styles */

.wk7-chatbot-fab {
	position: fixed;
	bottom: 1.5rem;
	z-index: 9998;
}

.wk7-chatbot-fab-left {
	left: 1.5rem;
}

.wk7-chatbot-fab-right {
	right: 1.5rem;
}

.wk7-chatbot-fab-button {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	border-radius: 9999px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.wk7-chatbot-fab-button:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

.wk7-chatbot-fab-button:active {
	transform: translateY(0) scale(0.97);
}

.wk7-chatbot-fab-avatar {
	width: 3.5rem;
	height: 3.5rem;
	object-fit: cover;
	border-radius: 9999px;
	border: 3px solid rgba(255, 255, 255, 0.85);
	display: block;
}

.wk7-chatbot {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
}

.wk7-chatbot-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 200ms ease;
}

.wk7-chatbot-panel {
	position: absolute;
	bottom: 5.5rem;
	right: 1.5rem;
	width: 380px;
	max-width: calc(100vw - 3rem);
	max-height: 600px;
	background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	border-radius: 1.25rem;
	box-shadow: 0 35px 65px -25px rgba(0, 0, 0, 0.55);
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: transform 180ms ease, opacity 180ms ease;
}

.wk7-chatbot-panel[data-state="open"] {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.wk7-chatbot-backdrop[data-state="open"] {
	opacity: 1;
}

.wk7-chatbot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.25rem 1rem;
}

.wk7-chatbot-header-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.wk7-chatbot-header-avatar {
	width: 2.25rem;
	height: 2.25rem;
	object-fit: cover;
	border-radius: 9999px;
	border: 2px solid rgba(255, 255, 255, 0.65);
}

.wk7-chatbot-heading {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
}

.wk7-chatbot-subheading {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.7);
}

.wk7-chatbot-close {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	width: 2rem;
	height: 2rem;
	border-radius: 0.5rem;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 150ms ease;
}

.wk7-chatbot-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.wk7-chatbot-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.25rem;
	min-height: 200px;
}

.wk7-chatbot-messages {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0.5rem 0;
}

.wk7-chatbot-message {
	display: flex;
	align-items: flex-start;
}

.wk7-chatbot-message-user {
	justify-content: flex-end;
}

.wk7-chatbot-message-bot {
	justify-content: flex-start;
}

.wk7-chatbot-message-bubble {
	max-width: 75%;
	padding: 0.75rem 1rem;
	border-radius: 1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.wk7-chatbot-message-user .wk7-chatbot-message-bubble {
	background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
	color: #fff;
	border-bottom-right-radius: 0.25rem;
}

.wk7-chatbot-message-bot .wk7-chatbot-message-bubble {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-bottom-left-radius: 0.25rem;
}

.wk7-chatbot-typing-indicator {
	display: flex;
	gap: 0.375rem;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	border-bottom-left-radius: 0.25rem;
	max-width: 60px;
}

.wk7-chatbot-typing-indicator span {
	width: 8px;
	height: 8px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	animation: wk7-typing-bounce 1.4s infinite ease-in-out both;
}

.wk7-chatbot-typing-indicator span:nth-child(1) {
	animation-delay: -0.32s;
}

.wk7-chatbot-typing-indicator span:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes wk7-typing-bounce {
	0%, 80%, 100% {
		transform: scale(0.8);
		opacity: 0.5;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

.wk7-chatbot-footer {
	padding: 1rem 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wk7-chatbot-input-wrapper {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.wk7-chatbot-input {
	flex: 1;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #1a1a2e;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	outline: none;
	transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.wk7-chatbot-input:focus {
	border-color: #ff6b35;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wk7-chatbot-input::placeholder {
	color: rgba(26, 26, 46, 0.5);
}

.wk7-chatbot-send-btn {
	background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
	color: #fff;
	border: none;
	padding: 0.75rem;
	border-radius: 0.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 150ms ease, box-shadow 150ms ease;
	min-width: 44px;
	min-height: 44px;
}

.wk7-chatbot-send-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.wk7-chatbot-send-btn:active {
	transform: translateY(0);
}

.wk7-chatbot-send-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Lead Form */
.wk7-chatbot-lead-form {
	background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 100%);
	border: 2px solid #ff6b35;
	border-radius: 1rem;
	padding: 1.5rem;
	margin: 1rem 0;
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.wk7-lead-form-intro {
	margin-bottom: 1.25rem;
}

.wk7-lead-form-intro p {
	margin: 0 0 0.5rem 0;
	color: #1a1a2e;
	line-height: 1.5;
}

.wk7-lead-form-intro strong {
	color: #ff6b35;
	font-size: 1.1rem;
}

.wk7-form-field {
	margin-bottom: 1rem;
}

.wk7-form-field label {
	display: block;
	margin-bottom: 0.375rem;
	color: #1a1a2e;
	font-weight: 600;
	font-size: 0.875rem;
}

.wk7-form-field input {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 0.5rem;
	font-size: 1rem;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	background: #fff;
	color: #1a1a2e;
}

.wk7-form-field input:focus {
	outline: none;
	border-color: #ff6b35;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wk7-form-field input::placeholder {
	color: #999;
}

.wk7-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.wk7-form-actions {
	margin-top: 1.25rem;
}

.wk7-lead-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.875rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: all 150ms ease;
	border: none;
	background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.wk7-lead-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.wk7-lead-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Responsive */
@media (max-width: 600px) {
	.wk7-chatbot-fab {
		bottom: 1rem;
	}

	.wk7-chatbot-panel {
		bottom: 4.5rem;
		right: 1rem;
		left: 1rem;
		width: auto;
		max-width: none;
	}
}
