/* Basic styling for the company website */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 2rem;
}

header h1 {
    margin: 0;
}

header p {
    margin: 1rem 0;
}

#chatButton {
    background-color: #fff;
    color: #4CAF50;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

#chatButton:hover {
    background-color: #f0f0f0;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#faq {
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

.faq-item h3 {
    margin: 0 0 0.5rem 0;
    color: #4CAF50;
}

.faq-item p {
    margin: 0;
}

#contact {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
    margin-top: 2rem;
}

/* Chat widget styles */
#chatWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

#chatHeader {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#closeChat {
    cursor: pointer;
    font-size: 20px;
}

#chatMessages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    max-width: 80%;
}

.message.user {
    background-color: #4CAF50;
    color: white;
    margin-left: auto;
    text-align: right;
}

.message.bot {
    background-color: #e0e0e0;
    color: #333;
}

#chatInputContainer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#chatInput {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#sendButton {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
}

#sendButton:hover {
    background-color: #45a049;
}

/* Responsive design */
@media (max-width: 600px) {
    header {
        padding: 1rem;
    }

    main {
        margin: 1rem auto;
    }

    #chatWidget {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        bottom: 10px;
        right: 10px;
    }
}