#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    background: var(--chatbot-toggle-bg, rgba(30, 30, 30, 0.77)); /* Default dark transparent */
    border-radius: 50%; /* Explicitly keep circular */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.2px);
    -webkit-backdrop-filter: blur(10.2px);
    border: 1px solid var(--chatbot-toggle-border, rgba(30, 30, 30, 0.62)); /* Default dark transparent */
    transition: all 0.3s ease; /* Keep smooth transitions */
}

#chatbot-toggle:hover {
    background: var(--chatbot-toggle-hover-bg, rgba(30, 30, 30, 0.9)); /* Slightly darker default on hover */
    transform: scale(1.1); /* Restore hover scale effect */
}

#chatbot-toggle span {
    font-size: 24px;
    color: white;
}

#chatbot-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chatbot-header {
    background: #007cba; /* This will be overridden by inline style from PHP */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header h4 {
    margin: 0;
    font-size: 16px;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
}

#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin-bottom: 15px;
}

.user-message {
    text-align: right;
}

.bot-message {
    text-align: left;
}

.message-content {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message .message-content {
    background: #007cba; /* This will be overridden by inline style from PHP */
    color: white;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e1e1e1;
}

#chatbot-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e1e1e1;
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px; /* This will be overridden by inline style from PHP */
}

#chatbot-input:focus {
    border-color: #007cba; /* This will be overridden by inline style from PHP */
}

#chatbot-send {
    background: #007cba; /* This will be overridden by inline style from PHP */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px; /* This will be overridden by inline style from PHP */
    transition: background 0.3s ease;
}

#chatbot-send:hover {
    background: #005a87; /* This will be overridden by inline style from PHP */
}

.contact-widget {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-widget:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--chatbot-primary-color, #007cba); /* Uses primary color variable */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.contact-widget .contact-icon {
    font-size: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
}

.contact-widget .contact-info {
    flex: 1;
}

.contact-widget .contact-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-widget .contact-value {
    color: #6c757d;
    font-size: 13px;
}

.contact-widget .contact-action {
    font-size: 18px;
    color: var(--chatbot-primary-color, #007cba); /* Uses primary color variable */
    font-weight: bold;
}

.email-widget:hover .contact-icon {
    background: #fff3cd;
}

.phone-widget:hover .contact-icon {
    background: #d1ecf1;
}

/* Responsive design */
@media (max-width: 480px) {
    .contact-widget {
        padding: 10px 12px;
    }
    
    .contact-widget .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
        margin-right: 10px;
    }
    
    .contact-widget .contact-label {
        font-size: 13px;
    }
    
    .contact-widget .contact-value {
        font-size: 12px;
    }
}



/* Mobile responsiveness */
@media (max-width: 768px) {
    #chatbot-container {
        width: 300px;
        height: 400px;
    }
    
    #chatbot-widget {
        bottom: 10px;
        right: 10px;
    }
}
