/* Floating Chat Bot Styles */
.chat-bot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.chat-bot-toggler {
    width: 60px;
    height: 60px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.chat-bot-toggler i {
    color: white;
    font-size: 24px;
}

.chat-bot-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chat-bot.active .chat-bot-box {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: #2c3e50;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    color: white;
}

.chat-body {
    height: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Updated chat bot input form styles */
.chat-input-form {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    gap: 10px; /* Add gap between input and button */
    align-items: center; /* Center align items vertically */
}

.chat-input-form input {
    flex: 1;
    height: 40px; /* Fixed height */
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chat-input-form button {
    min-width: 40px; /* Minimum width */
    height: 40px; /* Same height as input */
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.chat-input-form button i {
    font-size: 16px; /* Smaller icon size */
}

.message.error {
    background: #ffebee;
    color: #c62828;
    font-size: 0.9em;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 8px;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.9em;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 8px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 110px; /* Position above chat bot */
    right: 30px;
    z-index: 999;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.35);
}

.whatsapp-float i {
    font-size: 32px;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile specific adjustments */
@media screen and (max-width: 480px) {
    .chat-bot-box {
        width: calc(100vw - 60px);
        right: -20px;
    }
    .whatsapp-float {
        bottom: 95px;
        right: 20px;
    }
    .chat-input-form {
        padding: 10px;
    }
    
    .chat-input-form input {
        height: 36px; /* Slightly smaller on mobile */
        font-size: 13px;
    }
    
    .chat-input-form button {
        min-width: 36px; /* Match input height */
        height: 36px;
    }
    
    .chat-input-form button i {
        font-size: 14px;
    }
}
