/* Chatbot Widget Styles */
:root {
    --chatbot-primary: #0084ff;
    --chatbot-primary-dark: #0066cc;
    --chatbot-secondary: #f0f2f5;
    --chatbot-text: #1c1e21;
    --chatbot-text-light: #65676b;
    --chatbot-border: #e4e6ea;
    --chatbot-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    --chatbot-shadow-light: 0 1px 4px rgba(0, 0, 0, 0.1);
    --chatbot-border-radius: 16px;
    --chatbot-border-radius-small: 8px;
    --chatbot-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Widget Container - Aligned with scroll-to-top */
.chatbot-widget {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 9998; /* One level below scroll-to-top */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: var(--chatbot-transition);
}

/* Animation when scroll-to-top appears */
.chatbot-widget.scroll-mode {
    bottom: 120px; /* Move up when scroll-to-top is visible */
}

/* Mobile positioning adjustments */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 20px;
        right: 15px;
    }
    
    .chatbot-widget.scroll-mode {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 15px;
        right: 10px;
    }
    
    .chatbot-widget.scroll-mode {
        bottom: 70px;
    }
}

/* Toggle Button */
.chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--chatbot-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--chatbot-shadow);
    transition: var(--chatbot-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
}

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

.chatbot-toggle.active {
    background: var(--chatbot-primary-dark);
}

.chatbot-toggle-icon {
    color: white;
    transition: var(--chatbot-transition);
}

.chatbot-toggle-icon svg {
    transition: var(--chatbot-transition);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Chatbot Window */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px;
    height: 600px;
    background: white;
    border-radius: var(--chatbot-border-radius);
    box-shadow: var(--chatbot-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--chatbot-transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    z-index: 9999;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
}

.chatbot-window.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--chatbot-primary) 0%, #1e40af 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--chatbot-border-radius) var(--chatbot-border-radius) 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.chatbot-header-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-header-text {
    flex: 1;
}

.chatbot-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chatbot-subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

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

.chatbot-message-avatar.bot {
    background: var(--chatbot-primary);
}

.chatbot-message-avatar.bot svg {
    color: white;
    width: 20px;
    height: 20px;
}

.chatbot-message-avatar.user {
    background: #e5e7eb;
}

.chatbot-message-avatar.user svg {
    color: #6b7280;
    width: 20px;
    height: 20px;
}

.chatbot-header-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.chatbot-header-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-status {
    margin-left: 8px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: #ccc;
    animation: none;
}

.chatbot-action-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--chatbot-transition);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.chatbot-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Messages Container */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

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

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--chatbot-border);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--chatbot-text-light);
}

/* Messages */
.message {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease-out;
    align-items: flex-start;
}

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

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

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

.message.bot-message .message-avatar {
    background: transparent;
}

.message.user-message .message-avatar {
    background: var(--chatbot-text-light);
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-text {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
    box-shadow: var(--chatbot-shadow-light);
    position: relative;
}

.message.user-message .message-text {
    background: var(--chatbot-primary);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.message.bot-message .message-text {
    background: white;
    color: var(--chatbot-text);
    border-radius: 18px 18px 18px 4px;
}

.message-time {
    font-size: 11px;
    color: var(--chatbot-text-light);
    margin-top: 4px;
    text-align: right;
}

.message.bot-message .message-time {
    text-align: left;
}

/* Date Dividers */
.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.date-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--chatbot-border);
    z-index: 1;
}

.date-text {
    background: #f8f9fa;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--chatbot-text-light);
    font-weight: 500;
    position: relative;
    z-index: 2;
    border: 1px solid var(--chatbot-border);
}

/* Typing Indicator */
.chatbot-typing {
    padding: 0 16px;
}

.typing-indicator {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: var(--chatbot-shadow-light);
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--chatbot-text-light);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--chatbot-text-light);
    border-radius: 50%;
    display: inline-block;
    animation: typingDots 1.4s infinite ease-in-out;
}

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

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

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

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

.inline-typing .message-text {
    background: white;
    border: 1px solid var(--chatbot-border);
    min-width: 60px;
}

/* Footer */
.chatbot-footer {
    padding: 16px;
    background: white;
    border-top: 1px solid var(--chatbot-border);
}

/* Quick Actions */
.chatbot-quick-actions {
    margin-bottom: 12px;
}

.quick-action-btn {
    background: var(--chatbot-secondary);
    border: none;
    padding: 8px 12px;
    border-radius: var(--chatbot-border-radius-small);
    cursor: pointer;
    font-size: 13px;
    color: var(--chatbot-text);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--chatbot-transition);
}

.quick-action-btn:hover {
    background: var(--chatbot-border);
}

/* Options */
.chatbot-options {
    padding: 16px;
    border-top: 1px solid var(--chatbot-border);
    background: white;
    display: none;
}

.option-btn {
    width: 100%;
    background: white;
    border: 1px solid var(--chatbot-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--chatbot-transition);
    text-align: left;
    color: var(--chatbot-text);
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.option-btn:last-child {
    margin-bottom: 0;
}

.option-btn:hover {
    background: var(--chatbot-primary);
    color: white;
    border-color: var(--chatbot-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.option-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.option-btn:hover::before {
    left: 100%;
}

.option-description {
    font-size: 12px;
    color: var(--chatbot-text-light);
    margin-top: 4px;
}

/* Form */
.chatbot-form {
    background: var(--chatbot-secondary);
    padding: 16px;
    border-radius: var(--chatbot-border-radius-small);
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
    color: var(--chatbot-text);
}

.form-label.required::after {
    content: " *";
    color: #ff4444;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--chatbot-border);
    border-radius: var(--chatbot-border-radius-small);
    font-size: 14px;
    font-family: inherit;
    transition: var(--chatbot-transition);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--chatbot-primary);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

.form-input.error {
    border-color: #ff4444;
}

.form-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
}

.form-submit {
    background: var(--chatbot-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--chatbot-border-radius-small);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--chatbot-transition);
    width: 100%;
}

.form-submit:hover {
    background: var(--chatbot-primary-dark);
}

.form-submit:disabled {
    background: var(--chatbot-text-light);
    cursor: not-allowed;
}

/* Input Area */
.chatbot-input {
    margin-bottom: 12px;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--chatbot-secondary);
    padding: 4px;
    border-radius: 20px;
}

.message-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    color: var(--chatbot-text);
}

.message-input::placeholder {
    color: var(--chatbot-text-light);
}

.send-btn {
    width: 32px;
    height: 32px;
    background: var(--chatbot-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--chatbot-transition);
}

.send-btn:hover {
    background: var(--chatbot-primary-dark);
}

.send-btn:disabled {
    background: var(--chatbot-text-light);
    cursor: not-allowed;
}

/* Powered By */
.chatbot-powered-by {
    text-align: center;
    color: var(--chatbot-text-light);
    font-size: 11px;
    margin-top: 8px;
}

/* Loading Overlay */
.chatbot-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    background: white;
    padding: 32px;
    border-radius: var(--chatbot-border-radius);
    text-align: center;
    box-shadow: var(--chatbot-shadow);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--chatbot-secondary);
    border-top: 4px solid var(--chatbot-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .chatbot-window {
        width: 420px;
        height: 620px;
    }
}

@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 70vh;
        right: 15px;
        bottom: 20px;
        max-width: 380px;
        position: fixed;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 20px;
    }
    
    .chatbot-toggle-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .chatbot-messages {
        height: calc(70vh - 140px);
        max-height: calc(70vh - 140px);
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .chatbot-header {
        padding: 12px 16px;
    }
    
    .chatbot-header-title {
        font-size: 15px;
    }
    
    .chatbot-action-btn {
        width: 30px;
        height: 30px;
    }
    
    .chatbot-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Option Messages Mobile */
    .option-message {
        margin: 8px 12px 12px 12px;
    }
    
    .option-message-content {
        width: calc(100% - 24px);
        max-width: 320px;
        min-width: 250px;
        padding: 12px 16px;
    }
    
    .option-number {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .option-label {
        font-size: 14px;
    }
    
    .option-description {
        font-size: 12px;
    }
    
    .chatbot-footer {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        height: 65vh;
        right: 10px;
        bottom: 15px;
        max-width: none;
    }
    
    .chatbot-toggle {
        width: 48px;
        height: 48px;
        right: 10px;
        bottom: 15px;
    }
    
    .chatbot-toggle-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .chatbot-messages {
        height: calc(65vh - 120px);
        max-height: calc(65vh - 120px);
    }
    
    .chatbot-header {
        padding: 10px 12px;
    }
    
    .chatbot-header-title {
        font-size: 14px;
    }
    
    .chatbot-action-btn {
        width: 28px;
        height: 28px;
    }
    
    .chatbot-action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Small mobile option messages */
    .option-message {
        margin: 6px 8px 10px 8px;
    }
    
    .option-message-content {
        width: calc(100% - 16px);
        max-width: 280px;
        min-width: 220px;
        padding: 10px 14px;
    }
    
    .option-number {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .option-label {
        font-size: 13px;
    }
    
    .option-description {
        font-size: 11px;
    }
    
    .chatbot-footer {
        padding: 10px 12px;
    }
    
    .message-text {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
    }
    
    .message-avatar svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

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

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Accessibility */
.chatbot-toggle:focus,
.option-btn:focus,
.form-input:focus,
.form-submit:focus,
.send-btn:focus {
    outline: 2px solid var(--chatbot-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --chatbot-border: #333;
        --chatbot-text-light: #555;
    }
    
    .chatbot-toggle {
        border: 2px solid #000;
    }
    
    .option-btn {
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 40px !important;
        height: 40px !important;
        bottom: 25px !important;
        right: 15px !important;
    }
    
    .scroll-to-top i {
        line-height: 40px !important;
        font-size: 12px !important;
    }
}

/* Mobile viewport height fix */
@supports (height: 100dvh) {
    @media (max-width: 768px) {
        .chatbot-window {
            height: 70dvh !important;
        }
        
        .chatbot-messages {
            max-height: calc(70dvh - 160px) !important;
        }
    }
    
    @media (max-width: 480px) {
        .chatbot-window {
            height: 65dvh !important;
        }
        
        .chatbot-messages {
            max-height: calc(65dvh - 140px) !important;
        }
    }
    
    @media (max-width: 360px) {
        .chatbot-window {
            height: 60dvh !important;
        }
        
        .chatbot-messages {
            max-height: calc(60dvh - 120px) !important;
        }
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Transition improvements */
.chatbot-window {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Option Messages */
.option-message {
    margin: 8px 16px 16px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-message:hover {
    transform: translateY(-1px);
}

.option-message-content {
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    width: 320px;
    max-width: 350px;
    min-width: 250px;
    margin: 0 auto;
    box-sizing: border-box;
}

.option-message-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    overflow: hidden;
}

/* .option-label {
    color: #1f2937;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} */


.option-label {
    color: #1f2937;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    overflow: hidden;
}




.option-number {
    background: #3b82f6;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
} 

.option-description {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3;
}

.option-arrow {
    color: #3b82f6;
    margin-left: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.option-message:hover .option-arrow {
    transform: translateX(2px);
}

.option-message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.option-message:hover .option-message-content::before {
    left: 100%;
}



.option-message:hover .option-message-content {
    background: #f0f9ff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.option-message-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    overflow: hidden;
}

.option-number {
    background: #3b82f6;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
} 

/* Additional mobile optimizations */
@media (max-width: 768px) {
    .chatbot-form {
        padding: 12px;
    }
    
    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 12px;
    }
    
    .form-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .quick-action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .chatbot-form {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px;
    }
    
    .form-submit {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
    }
    
    .quick-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .chatbot-powered-by {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .option-message-content {
        padding: 14px 16px;
    }
    
    .chatbot-action-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .form-submit {
        min-height: 44px;
    }
} 