/* Chatbot Widget Container */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
}

/* Chatbot Button */
.chatbot-button {
    width: 60px;
    height: 60px;
    background: #46799b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.1);
    background: #3a6a8a;
}

.chat-icon {
    width: 100%;
}

/* Chatbot Content */
.chatbot-content {
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 70px;
    right: 0;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #46799b;
    color: white;
    gap: 12px;
    position: relative;
}

.header-logo {
    height: 30px;
    width: auto;
}

.header-title {
    flex: 1;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 10px;
}

/* Header Actions */
.header-actions {
    position: relative;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 150px;
    overflow: hidden;
}

.dropdown-menu button {
    width: 100%;
    padding: 8px 15px;
    text-align: left;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    transition: background 0.2s;
}

.dropdown-menu button:hover {
    background: #5da6d1;
}

.dropdown-menu button i {
    width: 18px;
    text-align: center;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s;
}

/* Animation for dropdown */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat Body */
.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
}

/* Registration Form */
.registration-form {
    padding: 20px;
    flex: 1;
    overflow-y: hidden;
}

.registration-form h2 {
    text-align: center;
    color: #46799b;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.input-group {
    margin-bottom: 15px;
}


.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 0.9em;
}
#phone{
    width: 108%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}
.input-group input {
    width: 90%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}

.input-group input:focus {
    outline: none;
    border-color: #46799b;
}

.required-field::after {
    content: " *";
    color: #e53935;
}

.error-message {
    color: #e53935;
    font-size: 0.8em;
    margin-top: 5px;
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #46799b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #11334b;
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    line-height: 1.4;
    font-size: 0.9em;
}

.user-message {
    align-self: flex-end;
    background: #46799b;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background: #e5e5ea;
    color: black;
    border-bottom-left-radius: 5px;
}
        .date-header {
            text-align: center;
            margin: 10px 0;
            color: #666;
            font-size: 0.9em;
        }
.timestamp {
    font-size: 0.7em;
    color: #a5a0a0;
    margin-top: 5px;
    text-align: right;
    display: block;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9em;
}

#sendButton {
    margin-left: 10px;
    padding: 10px 15px;
    background: #46799b;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 100%) {
    .chatbot-content {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chatbot-button {
        bottom: 10px;
        right: 10px;
    }
}

        /* Main Categories Container */
        .main-categories-container {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin: 15px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        /* Header Text */
        .main-categories-header {
            font-size: 1.5em;
            color: #333;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .main-categories-prompt {
            color: #666;
            margin-bottom: 15px;
            font-size: 0.95em;
        }

        /* Button Grid */
        .main-categories-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 20px;
        }

        .main-categories-btn {
            background: #46799b; /* Slightly darker blue for main categories */
            color: white;
            border: none;
            padding: 6px;
            border-radius: 8px;
            font-size: 0.95em;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            width: 47%;
        }

        .main-categories-btn:hover {
            background: #3a6a8a;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        /* Sub-category Button Styles */
        @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

        /* Base Menu Styles */
        .menu-container {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            margin: 15px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .menu-header {
            margin-bottom: 20px;
        }

        .menu-title {
            font-size: 1.2em;
            color: #2c3e50;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .menu-prompt {
            color: #7f8c8d;
            font-size: 0.95em;
        }

        .selected-item {
            color: #46799b;
            font-weight: 600;
        }

        /* Grid Layout */
        .menu-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }

        .main-menu .menu-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        }

        .sub-menu .menu-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        }

        /* Buttons */
        .menu-btn {
            background: #5a8fb3;
            color: white;
            border: none;
            padding: 6px;
            border-radius: 8px;
            font-size: 0.95em;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .main-menu .menu-btn {
            background: #46799b;
            padding: 18px;
            font-size: 1em;
        }

        .menu-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

        /* Back Button */
        .back-btn {
            width: 100%;
            padding: 14px;
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 8px;
            margin-top: 20px;
            cursor: pointer;
            font-size: 0.95em;
            transition: background 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .back-btn:hover {
            background: #5a6268;
        }

        /* Confirmation Style */
        .confirmation-container {
            background: #f0f8ff;
            border-radius: 12px;
            padding: 20px;
            margin: 15px 0;
        }

        .confirmation-header {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .confirmation-header i {
            color: #4CAF50;
            font-size: 1.3em;
        }

        .selected-service {
            color: #46799b;
            font-weight: 600;
            font-size: 1.1em;
            margin: 15px 0;
        }

        .followup-prompt {
            color: #7f8c8d;
            margin-bottom: 15px;
        }

        /* Timestamp */
        .message-time {
            text-align: right;
            color: #95a5a6;
            font-size: 0.8em;
            margin-top: 15px;
            font-style: italic;
        }

        /* Mobile Responsiveness */
        @media (max-width: 100%) {
            .menu-grid {
                grid-template-columns: 1fr !important;
            }
            
            .menu-btn {
                padding: 14px !important;
            }
            
            .main-menu .menu-btn {
                padding: 16px !important;
            }
        }
