.chatbot-toggle-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #002b7f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 99998;
    transition: transform 0.2s ease, background 0.2s ease;
}

.chatbot-toggle-button:hover {
    transform: translateY(-3px);
    background: #0f4bbd;
}

.chatbot-panel {
    position: fixed;
    right: 24px;
    bottom: 102px;
    width: 340px;
    max-width: calc(100% - 32px);
    min-height: 420px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 99997;
    display: none;
    flex-direction: column;
    font-family: "Outfit", sans-serif;
}

.chatbot-panel.open {
    display: flex;
}

.chatbot-header {
    background: #002b7f;
    color: #fff;
    padding: 18px 18px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.chatbot-close-button {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fbff;
}

.chatbot-message {
    margin-bottom: 14px;
    display: flex;
}

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

.chatbot-message.user .message-bubble {
    background: #0f4bbd;
    color: #fff;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 16px;
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.chatbot-message.bot .message-bubble {
    background: #ffffff;
    color: #1d2331;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 16px;
    border-top-left-radius: 4px;
    border-top-right-radius: 16px;
    box-shadow: 0 12px 24px rgba(21, 34, 78, 0.06);
}

.message-bubble {
    max-width: 88%;
    padding: 14px 16px;
    line-height: 1.5;
    font-size: 14px;
}

.chatbot-footer {
    padding: 14px 16px 16px;
    background: #fff;
    border-top: 1px solid #e9eff7;
}

.chatbot-input-form {
    display: flex;
    gap: 10px;
}

.chatbot-input-field {
    flex: 1;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #dce4f4;
    font-size: 14px;
    outline: none;
    color: #1d2331;
}

.chatbot-input-field:focus {
    border-color: #0f4bbd;
    box-shadow: 0 0 0 3px rgba(15, 75, 189, 0.12);
}

.chatbot-send-button {
    min-width: 48px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: #0f4bbd;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.chatbot-contact-wrapper {
    padding: 16px;
    border-top: 1px solid #e9eff7;
}

.chatbot-contact-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f5f9ff;
    border: 1px solid #dbe9ff;
    border-radius: 16px;
    padding: 16px;
}

.chatbot-contact-title {
    font-weight: 700;
    color: #0f4bbd;
    font-size: 14px;
}

.chatbot-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-contact-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #dce4f4;
    font-size: 14px;
    outline: none;
}

.chatbot-contact-input:focus {
    border-color: #0f4bbd;
    box-shadow: 0 0 0 3px rgba(15, 75, 189, 0.12);
}

.chatbot-contact-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: none;
    border-radius: 14px;
    background: #0f4bbd;
    color: #fff;
    cursor: pointer;
    padding: 0 16px;
    font-weight: 700;
}

.chatbot-contact-saved {
    font-size: 14px;
    color: #102a52;
    background: #eaf1ff;
    border: 1px solid #dbe9ff;
    border-radius: 14px;
    padding: 14px;
}

.chatbot-quick-actions {
    display: none !important;
    padding: 0 16px 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.chatbot-quick-action {
    border: 1px solid #dce4f4;
    background: #fff;
    color: #0f4bbd;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.chatbot-quick-action:hover {
    background: #0f4bbd;
    color: #fff;
}

.chatbot-status {
    font-size: 12px;
    color: #6f7a92;
    padding: 0 16px 12px;
}

@media (max-width: 480px) {
    .chatbot-panel {
        right: 14px;
        bottom: 90px;
        width: calc(100% - 28px);
        max-height: 76vh;
    }

    .chatbot-toggle-button {
        right: 14px;
        bottom: 14px;
    }
}