.chatbot-container {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Exit intent triggered styles */
.chatbot-container.exit-intent {
    animation: exitIntentPulse 2s ease-in-out;
    box-shadow: 0 8px 35px rgba(71, 178, 228, 0.4);
    border: 2px solid #47b2e4;
}

@keyframes exitIntentPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 35px rgba(71, 178, 228, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 35px rgba(71, 178, 228, 0.4);
    }
}

/* Attention-grabbing animation for exit intent */
.chatbot-container.exit-intent .chat-header {
    background: linear-gradient(45deg, #47b2e4, #ff6b6b, #47b2e4);
    background-size: 200% 200%;
    animation: gradientShift 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.chat-header {
    background: #47b2e4;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    margin: 4px 0;
}

.user-message {
    background: #47b2e4;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background: #f0f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    padding: 10px 20px;
    background: #47b2e4;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-input button:disabled {
    background: #ccc;
}

.typing-indicator {
    display: none;
    padding: 10px;
    color: #666;
    font-style: italic;
}

/* Phone input container styling */
.phone-input-container {
    margin-top: 8px;
}

.phone-input-container input[type="tel"] {
    border: 2px solid #47b2e4;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.phone-input-container input[type="tel"]:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 8px rgba(71, 178, 228, 0.3);
}

.phone-input-container button {
    background: linear-gradient(45deg, #47b2e4, #2196F3);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(71, 178, 228, 0.3);
}

.phone-input-container button:hover:not(:disabled) {
    background: linear-gradient(45deg, #2196F3, #47b2e4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 178, 228, 0.4);
}

.phone-input-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Voice call prompt styling */
.phone-input-container div[style*="background: #f0f8ff"] {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%) !important;
    border: 1px solid #47b2e4;
    border-radius: 12px;
    padding: 15px;
    margin-top: 12px;
    box-shadow: 0 2px 10px rgba(71, 178, 228, 0.1);
}

.phone-input-container p[style*="font-weight: bold"] {
    color: #2196F3 !important;
    font-size: 16px !important;
}

.phone-input-container p[style*="font-size: 12px"] {
    color: #666 !important;
    font-style: italic;
}
