@charset "utf-8";
/* FAQ page styles based on common.css patterns */

/* === FAQ Page Layout === */
.faq-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 2px solid #00b300;
}

.faq-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.faq-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* === FAQ Categories === */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.faq-category-button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.faq-category-button:hover {
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    border-color: #00b300;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.3);
    text-decoration: none;
}

.faq-category-button svg {
    margin-left: 10px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.faq-category-button:hover svg {
    transform: translateX(5px);
}

/* === FAQ Sections === */
.faq-section {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-section-header {
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    padding: 20px 30px;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.faq-section-content {
    padding: 30px;
}

/* === FAQ Items (Accordion) === */
.faq-accordion {
    border: none;
    background: none;
}

.faq-accordion-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.faq-accordion-item:last-child {
    border-bottom: none;
}

.faq-accordion-item details {
    margin: 0;
}

.faq-accordion-item summary {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    list-style: none;
    position: relative;
}

.faq-accordion-item summary::-webkit-details-marker {
    display: none;
}

.faq-accordion-item summary::before {
    content: '';
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-accordion-item summary::after {
    content: '+';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.faq-accordion-item details[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-accordion-item summary:hover {
    color: #00b300;
    background: rgba(0, 179, 0, 0.05);
}

.faq-accordion-item details[open] summary {
    color: #00b300;
    font-weight: 600;
}

.faq-accordion-item details[open] summary::before {
    background: linear-gradient(135deg, #00d900 0%, #00b300 100%);
}

/* === FAQ Content === */
.faq-content {
    padding: 20px 35px 20px 0;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    animation: fadeInDown 0.3s ease-out;
}

.faq-content p {
    margin-bottom: 15px;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

.faq-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-content li {
    margin-bottom: 8px;
    list-style: disc;
    color: #666;
}

.faq-content a {
    color: #00b300;
    text-decoration: none;
    font-weight: 500;
}

.faq-content a:hover {
    color: #00d900;
    text-decoration: underline;
}

/* === Search Box === */
.faq-search {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.faq-search h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.faq-search-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.faq-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    outline: none;
    border-color: #00b300;
    box-shadow: 0 0 0 3px rgba(0, 179, 0, 0.1);
}

.faq-search-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.4);
}

/* === Contact Section === */
.faq-contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
    border-left: 4px solid #00b300;
}

.faq-contact h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.faq-contact p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.faq-contact-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 179, 0, 0.3);
}

.faq-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* === Animations === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-section {
    animation: fadeInUp 0.6s ease-out;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .faq-container {
        padding: 15px;
    }
    
    .faq-header {
        padding: 30px 0;
    }
    
    .faq-header h1 {
        font-size: 2rem;
    }
    
    .faq-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .faq-category-button {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .faq-section-header {
        padding: 15px 20px;
        font-size: 1.5rem;
    }
    
    .faq-section-content {
        padding: 20px;
    }
    
    .faq-accordion-item summary {
        padding: 15px 0;
        font-size: 14px;
    }
    
    .faq-content {
        padding: 15px 25px 15px 0;
        font-size: 14px;
    }
    
    .faq-search {
        padding: 20px;
    }
    
    .faq-search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .faq-search-input,
    .faq-search-button {
        width: 100%;
    }
    
    .faq-contact {
        padding: 25px 20px;
    }
    
    .faq-contact h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-header h1 {
        font-size: 1.8rem;
    }
    
    .faq-section-header {
        font-size: 1.3rem;
    }
    
    .faq-accordion-item summary {
        padding: 12px 0;
    }
    
    .faq-accordion-item summary::before {
        width: 18px;
        height: 18px;
        margin-right: 12px;
    }
    
    .faq-accordion-item summary::after {
        left: 5px;
        font-size: 14px;
    }
    
    .faq-content {
        padding: 12px 20px 12px 0;
    }
}

/* === Legacy Support === */
/* Support for existing classes in the original file */
.h02 {
    color: #00b300;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.h03 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.h04 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
}

.ac01 {
    background: rgba(0, 179, 0, 0.05);
    border-left: 4px solid #00b300;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

/* === Focus states for accessibility === */
.faq-category-button:focus,
.faq-accordion-item summary:focus,
.faq-search-input:focus,
.faq-search-button:focus,
.faq-contact-button:focus {
    outline: 2px solid #00b300;
    outline-offset: 2px;
}

/* === Print styles === */
@media print {
    .faq-category-button,
    .faq-search,
    .faq-contact {
        display: none;
    }
    
    .faq-accordion-item details {
        page-break-inside: avoid;
    }
    
    .faq-accordion-item summary::before,
    .faq-accordion-item summary::after {
        display: none;
    }
}
