.faq-section {
    margin: 20px 0;
}
.faq-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.faq-item {
    padding-top: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
}
.faq-item p {
    display: none;
    margin: 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 0 0 4px 4px;
    line-height: 35px;
}
.faq-item h3 {
    position: relative;
    padding-right: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.faq-item h3 img {
    width: 20px; 
    height: 20px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item.active h3 img {
    transform: translateY(-50%) rotate(180deg);
}

.faq-item.active h3 img:first-child {
    display: none;
}

.faq-item h3 img:last-child {
    display: none;
}

.faq-item.active h3 img:last-child {
    display: inline;
}

#faq-container {
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    padding: 20px 15px 15px 15px;
    border-radius: 8px;
    margin-top: 10px;
}

#faq-container #add-faq {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background 0.2s;
}
#faq-container #add-faq:hover {
    background: #135e96;
}

#faq-container .faq-item {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 15px 12px 12px 12px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
}
#faq-container .faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

#faq-container .faq-item input,
#faq-container .faq-item textarea {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 7px 10px;
    border: 1px solid #c3c3c3;
    border-radius: 4px;
    font-size: 14px;
    background: #f6f8fa;
    transition: border 0.2s;
}
#faq-container .faq-item input:focus,
#faq-container .faq-item textarea:focus {
    border-color: #2271b1;
    background: #fff;
    outline: none;
}

#faq-container .faq-item .remove-faq {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    position: absolute;
    left: 12px;
    top: 12px;
    transition: background 0.2s;
}
#faq-container .faq-item .remove-faq:hover {
    background: #c0392b;
}

@media (max-width: 600px) {
    #faq-container {
        padding: 10px 5px 5px 5px;
    }
    #faq-container .faq-item {
        padding: 10px 5px 5px 5px;
    }
}
