/* Toggle Button */
.chatbot-toggle-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	z-index: 9999;
	transition: all 0.3s ease;
	border: none;
	padding: 0;
	user-select: none;
}

.chatbot-toggle-button:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.chatbot-toggle-button:active {
	transform: scale(0.95);
}

.chatbot-toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.chatbot-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #ff6b6b;
	color: white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	border: 2px solid white;
}

/* Chatbot Container */
.chatbot-form-container {
	position: fixed;
	bottom: 100px;
	right: 20px;
	width: 420px;
	max-width: calc(100vw - 40px);
	height: 600px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	overflow: hidden;
	display: none;
	flex-direction: column;
	z-index: 10000;
	animation: slideUp 0.3s ease-out;
}

.chatbot-form-container.active {
	display: flex;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideDown {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(20px);
	}
}

.chatbot-form-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	position: relative;
}

.chatbot-messages {
	flex: 0 0 auto;
	padding: 15px;
	background: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
	max-height: 200px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.chatbot-message {
	margin-bottom: 15px;
	animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.chatbot-message-bot {
	margin-bottom: 12px;
   
}

.chatbot-message-bot .message-content {
	background: #e0e7ff;
	padding: 14px 16px;
	border-radius: 14px;
	border-left: 4px solid #667eea;
	line-height: 1.5;
	color: #333;
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
	font-size: 14px;
     max-width: 80%;
}

.chatbot-message-bot .message-content p {
	margin: 0 0 8px 0;
	font-size: 14px;
}

.chatbot-message-bot .message-content p:last-child {
	margin-bottom: 0;
}

/* User message (opposite side) */
.chatbot-message-user {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.chatbot-message-user .message-content {
	background: #667eea;
	color: white;
	padding: 14px 16px;
	border-radius: 14px;
	border-left: none;
	max-width: 80%;
	text-align: right;
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
	font-size: 14px;
}

.chatbot-message-user .message-content p {
	margin: 0;
}

/* Typing Indicator */
.chatbot-typing {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	animation: slideIn 0.3s ease-in-out;
}

.chatbot-typing .typing-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #667eea;
	animation: typing 1.4s infinite;
}

.chatbot-typing .typing-dot:nth-child(2) {
	animation-delay: 0.2s;
}

.chatbot-typing .typing-dot:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes typing {
	0%, 60%, 100% {
		transform: translateY(0);
		opacity: 0.7;
	}
	30% {
		transform: translateY(-10px);
		opacity: 1;
	}
}
.chatbot-steps {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	overflow-y: auto;
	background: #fff;
}

.chatbot-step {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.chatbot-step.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.chatbot-step .chatbot-message-bot {
	margin-bottom: 20px;
}

/* Options */
.chatbot-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.chatbot-option-btn {
	padding: 12px 16px;
	background: #f0f0f0;
	border: 2px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	text-align: left;
	color: #333;
}

.chatbot-option-btn:hover {
	background: #e8e8e8;
	border-color: #667eea;
	transform: translateX(4px);
}

.chatbot-option-btn:active {
	transform: translateX(2px);
}

.chatbot-option-btn:disabled,
.chatbot-continue-btn:disabled,
.chatbot-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Multiple select options */
.chatbot-options-multiple {
	display: grid;
	gap: 12px;
}

.chatbot-checkbox {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 10px;
	border-radius: 8px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	transition: all 0.2s ease;
	font-size: 14px;
	
}
label {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
	color: #000!important;
}


.chatbot-checkbox:hover {
	background: #f0f0f0;
	border-color: #667eea;
}

.chatbot-checkbox input[type="checkbox"] {
	margin-right: 10px;
	cursor: pointer;
	accent-color: #667eea;
}

/* Form Fields */
.chatbot-form-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chatbot-field {
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.chatbot-field:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.chatbot-submit-btn,
.chatbot-continue-btn {
	padding: 12px 16px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
	margin-top: 10px;
}

.chatbot-submit-btn:hover,
.chatbot-continue-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chatbot-submit-btn:active,
.chatbot-continue-btn:active {
	transform: translateY(0);
}

/* Submission Summary */
.submission-summary {
	background: #f0f0f0;
	padding: 15px;
	border-radius: 8px;
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.6;
}

.submission-summary dt {
	font-weight: 600;
	color: #555;
	margin-top: 8px;
}

.submission-summary dd {
	margin-left: 0;
	color: #777;
}

/* Close Button */
.chatbot-close-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
	padding: 0;
}

.chatbot-close-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

/* Loading state */
.chatbot-loading {
	text-align: center;
	padding: 20px;
}

.chatbot-loading::after {
	content: '';
	animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
	0%, 20% {
		content: '';
	}
	40% {
		content: '.';
	}
	60% {
		content: '..';
	}
	80%, 100% {
		content: '...';
	}
}

/* Responsive */
@media (max-width: 768px) {
	.chatbot-form-container {
		width: calc(100vw - 40px);
		height: 70vh;
		bottom: 90px;
		right: 20px;
		left: 20px;
		max-width: calc(100vw - 40px);
	}

	.chatbot-toggle-button {
		width: 54px;
		height: 54px;
		font-size: 24px;
	}

	.chatbot-form-wrapper {
		height: auto;
	}
}
