/* General Container Styles */
.faq-container {
    max-width: 900px;
    margin: 6em auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    background-color: #0d1b2a;
    color: #a9bcd0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.faq-container h1 {
    font-size: 2.5em;
    color: #00cffd;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #00cffd;
    padding-bottom: 10px;
}

/* FAQ Item Styles */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #00cffd;
    border-radius: 5px;
    background-color: #112233;
}

.faq-question {
    width: 100%;
    background: transparent;
    color: #00cffd;
    font-size: 1.2em;
    text-align: left;
    border: none;
    outline: none;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
}

.faq-question:hover {
    background-color: #00cffd;
    color: #0d1b2a;
}

.faq-toggle-icon {
    font-size: 1.5em;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    font-size: 1em;
    line-height: 1.6;
    margin-top: 10px;
    color: #d9d9d9;
}

/* Answer Open State */
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust based on content size */
    padding: 10px 15px;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

/* Links */
.faq-answer a {
    color: #00cffd;
    text-decoration: none;
    transition: color 0.3s;
}

.faq-answer a:hover {
    color: #d9d9d9;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .faq-container {
        padding: 15px;
    }

    .faq-container h1 {
        font-size: 2em;
    }

    .faq-question {
        font-size: 1em;
    }

    .faq-answer p {
        font-size: 0.9em;
    }
}


/* FAQ Search */
.faq-search {
    text-align: center;
    margin-bottom: 20px;
}

#faq-search-bar {
    width: 100%;
    max-width: 600px;
    padding: 10px 15px;
    font-size: 1em;
    border: 1px solid #00cffd;
    border-radius: 5px;
    outline: none;
    background-color: #112233;
    color: #a9bcd0;
    transition: border 0.3s;
}

#faq-search-bar:focus {
    border-color: #00ffff;
}

/* FAQ Categories */
.faq-category h2 {
    font-size: 1.8em;
    color: #00cffd;
    margin-bottom: 15px;
}

/* Feedback Section */
.faq-feedback {
    margin-top: 30px;
    text-align: center;
    color: #a9bcd0;
}

.feedback-btn {
    padding: 10px 15px;
    margin: 5px;
    background-color: #00cffd;
    color: #0d1b2a;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.feedback-btn:hover {
    background-color: #00ffff;
    transform: scale(1.05);
}

.feedback-btn:active {
    transform: scale(0.95);
}

.feedback-message {
    margin-top: 10px;
    font-size: 0.9em;
    color: #38b6ff;
    opacity: 0;
    transition: opacity 0.5s;
}

.feedback-message.visible {
    opacity: 1;
}

/* Call to Action */
.faq-cta {
    margin-top: 40px;
    text-align: center;
    background-color: #112233;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.faq-cta h3 {
    color: #00cffd;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.faq-cta p {
    color: #a9bcd0;
    margin-bottom: 20px;
}

.faq-contact-btn {
    padding: 10px 20px;
    background-color: #00cffd;
    color: #0d1b2a;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-contact-btn:hover {
    background-color: #00ffff;
}
