.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

/* Toggle bot button (3D glowing orb container) */
.chatbot-toggle-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4facfe, #00f2fe, #005be6);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 91, 230, 0.4), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    animation: blinkRadiant 2s infinite alternate ease-in-out;
    padding: 0;
    overflow: hidden;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.05);
}

@keyframes blinkRadiant {
    0% {
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.4), 0 10px 20px rgba(0, 91, 230, 0.4), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.8), 0 15px 30px rgba(0, 91, 230, 0.6), inset 0 -2px 10px rgba(0, 0, 0, 0.1);
        transform: scale(1.05) translateY(-2px);
    }
}

.chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 420px;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
}

.chatbot-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.2) translate(50px, 80px);
}

.chatbot-header {
    background: linear-gradient(135deg, #005be6, #00f2fe);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    font-size: 20px;
    background: white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.chatbot-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.chatbot-title span {
    font-size: 12px;
    color: #e0fcff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-title span::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff88;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.chatbot-body {
    padding: 20px;
    max-height: 400px;
    height: 400px;
    overflow-y: auto;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    scroll-behavior: smooth;
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 10px;
    max-width: 90%;
    animation: slideUpFade 0.4s ease forwards;
}
.chat-message.bot-message {
    max-width: 100%;
    width: 100%;
}

.chat-message.bot-message .message-content {
    width: 100%;
    box-sizing: border-box;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    background-color: #f0f4f8;
    color: #1e293b;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.chatbot-form-card{
    width: calc(100% - 10px);
    max-width: none;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, #2C67F2, #184cc6);
    color: white;
    border-top-right-radius: 4px;
}

/* Form Styling */
.chatbot-form input {
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    /* Consistent spacing */
    transition: border-color 0.2s;
}

.chatbot-form input:focus {
    border-color: #005be6;
    outline: none;
}

/* TURNSTILE CONTAINER - FIXED WIDTH AND ALIGNMENT */
.chatbot-turnstile-container {
    width: 100%;
    min-height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* 2. Target the EXTRA DIV Cloudflare generates (the one from your inspector) */
#chatbot-turnstile > div {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
}

#chatbot-turnstile iframe {
    border: none !important;
    display: block !important;
}

/* Submit Button */
.chatbot-submit-btn {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    background-color: #122164;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chatbot-submit-btn:hover {
    background-color: #0e1a4f;
}

/* Options / Chips */
.chatbot-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 42px;
}

.chatbot-chip-btn {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(44, 103, 242, 0.4);
    color: #2C67F2;
    cursor: pointer;
    background: white;
    text-align: left;
    transition: all 0.2s ease;
}

.chatbot-chip-btn:hover {
    background: linear-gradient(135deg, #2C67F2, #184cc6);
    color: white;
    transform: translateY(-2px);
}

/* Utility */
.hp-wrapper {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}