﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}
.faq-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    animation: fadeIn 0.6s ease-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-width: 900px;
    margin: 2rem auto;
}

.faq-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .faq-header img {
        width: 60px;
        margin-bottom: 10px;
    }

    .faq-header h1 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 600;
        color: #0078D4;
        text-align: center;
    }
.form-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #444;
}

.form-control, textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 0.5rem;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus, textarea:focus {
        border-color: #0078D4;
        box-shadow: 0 0 0 3px rgba(0,120,212,0.2);
        outline: none;
    }

textarea {
    height: 120px;
    resize: vertical;
}
.faq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 1rem;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    button:hover {
        transform: scale(1.05);
    }

    button:focus {
        outline: 2px solid #0078D4;
        outline-offset: 2px;
    }

.send-btn {
    background-color: #0078D4;
    color: #fff;
}

    .send-btn:hover {
        background-color: #005fa3;
    }

.close-btn {
    background-color: #e0e0e0;
    color: #333;
}

    .close-btn:hover {
        background-color: #c2c2c2;
    }

.faq-groupbox {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    background-color: #fafafa;
}

.faq-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0078D4;
}

.chat-box {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #F9F9F9;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    max-height: 400px;
    overflow-y: auto;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

    .chat-item.user {
        background-color: #FCF5EB;
        align-self: flex-start;
        border-left: 4px solid #e0b97f;
    }

    .chat-item.bot {
        background-color: #25D366;
        color: #fff;
        align-self: flex-end;
        border-left: 4px solid #1da851;
        width: 99%;
        margin-left: auto;
        text-align: left;
    }

.erro-msg {
    background-color: #ffe3e3;
    color: #c92a2a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

#feedback {
    margin-bottom: 1rem;
    text-align: center;
    color: #0078D4;
    font-weight: 600;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

    #loader.active {
        opacity: 1;
        visibility: visible;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #0078D4;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

#loader-message {
    font-weight: 600;
    font-size: 1rem;
    color: #0078D4;
    text-align: center;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .faq-box {
        max-width: 90%;
    }

    .faq-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .faq-box {
        padding: 1.5rem;
    }

    .faq-header h1 {
        font-size: 1.4rem;
    }

    button {
        flex: 1 1 100%;
    }
}