/**
 * FAQ Page Styles
 * Clean, minimal, responsive design
 * Version: 2.0 - Compact design with sections support
 */

.tppp-faq-page {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 24px 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.tppp-faq-container {
    width: 100%;
}

/* Header */
.tppp-faq-header {
    text-align: center;
    margin-bottom: 32px;
}

.tppp-faq-page .tppp-faq-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
}

.tppp-faq-page .tppp-faq-subtitle {
    font-size: 15px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Search Bar */
.tppp-faq-search {
    position: relative;
    margin-bottom: 24px;
}

.tppp-faq-search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tppp-faq-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tppp-faq-search-input::placeholder {
    color: #9ca3af;
}

.tppp-faq-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* FAQ Items */
.tppp-faq-items {
    margin-bottom: 32px;
}

/* Section Title */
.tppp-faq-section-title {
    margin: 32px 0 16px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e5e7eb !important;
    display: block !important;
}

.tppp-faq-section-title:first-child {
    margin-top: 0 !important;
}

.tppp-faq-page .tppp-faq-section-title h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1.3 !important;
}

.tppp-faq-page .tppp-faq-item {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
    overflow: hidden;
    transition: all 0.2s ease;
}

.tppp-faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tppp-faq-item.active {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tppp-faq-page .tppp-faq-question {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.tppp-faq-question:hover {
    background: #f9fafb;
}

.tppp-faq-page .tppp-faq-icon {
    flex-shrink: 0 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #667eea !important;
    border-radius: 50% !important;
    color: #ffffff !important;
}

.tppp-faq-page .tppp-faq-icon svg {
    width: 14px !important;
    height: 14px !important;
}

.tppp-faq-page .tppp-faq-question-text {
    flex: 1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tppp-faq-page .tppp-faq-arrow {
    flex-shrink: 0 !important;
    color: #6b7280 !important;
    transition: transform 0.3s ease;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
}

.tppp-faq-item.active .tppp-faq-arrow {
    transform: rotate(180deg);
}

.tppp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tppp-faq-item.active .tppp-faq-answer {
    max-height: 1000px;
}

.tppp-faq-page .tppp-faq-answer-content {
    padding: 0 12px 10px 50px !important;
    color: #4b5563 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.tppp-faq-page .tppp-faq-answer-content p {
    margin: 0 0 8px 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.tppp-faq-page .tppp-faq-answer-content p:last-child {
    margin-bottom: 0 !important;
}

.tppp-faq-answer-content p {
    margin: 0 0 12px 0;
}

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

/* Empty State */
.tppp-faq-empty,
.tppp-faq-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Contact Section */
.tppp-faq-contact {
    text-align: center;
    padding: 32px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 32px;
    border-top: 3px solid #667eea;
}

.tppp-faq-contact-text {
    font-size: 16px;
    color: #4b5563;
    margin: 0 0 20px 0;
}

.tppp-faq-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #667eea;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tppp-faq-contact-button:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tppp-faq-contact-button svg {
    width: 20px;
    height: 20px;
}

/* Contact Modal */
.tppp-faq-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tppp-faq-contact-modal.active {
    display: flex;
    opacity: 1;
}

.tppp-faq-contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.tppp-faq-contact-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: tppp-modal-slide-in 0.3s ease;
}

@keyframes tppp-modal-slide-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tppp-faq-contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    padding: 0;
}

.tppp-faq-contact-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.tppp-faq-contact-modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
    padding-right: 40px;
}

.tppp-faq-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tppp-faq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tppp-faq-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tppp-faq-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.tppp-faq-form-group .required {
    color: #ef4444;
}

.tppp-faq-form-group input,
.tppp-faq-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tppp-faq-form-group input:focus,
.tppp-faq-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tppp-faq-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.tppp-faq-form-messages {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.tppp-faq-form-messages.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.tppp-faq-form-messages.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.tppp-faq-contact-submit {
    padding: 14px 28px;
    background: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tppp-faq-contact-submit:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tppp-faq-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .tppp-faq-contact-modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .tppp-faq-contact-modal-content h3 {
        font-size: 20px;
    }
    
    .tppp-faq-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .tppp-faq-page {
        padding: 20px 16px !important;
    }
    
    .tppp-faq-page .tppp-faq-title {
        font-size: 24px !important;
    }
    
    .tppp-faq-page .tppp-faq-subtitle {
        font-size: 14px !important;
    }
    
    .tppp-faq-search-input {
        padding: 10px 38px 10px 12px !important;
        font-size: 14px !important;
    }
    
    .tppp-faq-page .tppp-faq-section-title {
        margin: 20px 0 10px 0 !important;
    }
    
    .tppp-faq-page .tppp-faq-section-title h2 {
        font-size: 16px !important;
    }
    
    .tppp-faq-page .tppp-faq-question {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    .tppp-faq-page .tppp-faq-icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
    
    .tppp-faq-page .tppp-faq-icon svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .tppp-faq-page .tppp-faq-question-text {
        font-size: 13px !important;
    }
    
    .tppp-faq-page .tppp-faq-answer-content {
        padding: 0 10px 8px 42px !important;
        font-size: 12px !important;
    }
    
    .tppp-faq-page .tppp-faq-answer-content p {
        font-size: 12px !important;
    }
    
    .tppp-faq-contact {
        padding: 24px 16px !important;
    }
    
    .tppp-faq-contact-button {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .tppp-faq-title {
        font-size: 24px;
    }
    
    .tppp-faq-subtitle {
        font-size: 15px;
    }
    
    .tppp-faq-question {
        padding: 14px;
        gap: 10px;
    }
    
    .tppp-faq-icon {
        width: 32px;
        height: 32px;
    }
    
    .tppp-faq-question-text {
        font-size: 14px;
    }
    
    .tppp-faq-answer-content {
        padding: 0 14px 14px 58px;
    }
}

/* Hidden items (search filter) */
.tppp-faq-item.hidden,
.tppp-faq-section-title.hidden {
    display: none;
}

