/* FAQ Page Styles - Modern Compact E-commerce Design */

/* CSS Variables for consistent theming */
:root {
    --faq-primary: #1a1a1a;
    --faq-secondary: #666;
    --faq-accent: #d4af37;
    --faq-accent-hover: #b8941f;
    --faq-bg: #f8f9fa;
    --faq-card-bg: rgba(255, 255, 255, 0.95);
    --faq-border: rgba(0, 0, 0, 0.08);
    --faq-shadow: rgba(0, 0, 0, 0.1);
    --faq-error: #dc3545;
    --faq-success: #28a745;
    --faq-warning: #ffc107;
    --faq-info: #17a2b8;
}

/* FAQ Container */
.faq--container {
    min-height: 60vh;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--faq-bg);
    position: relative;
}

.faq--container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.faq--wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* FAQ Card */
.faq--card {
    background: var(--faq-card-bg);
    border-radius: 1rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--faq-border);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq--card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

/* FAQ Header */
.faq--header {
    background: var(--faq-card-bg);
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq--header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.2) 50%,
        transparent 100%
    );
}

.faq--header-content {
    position: relative;
    z-index: 2;
}

.faq--title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--faq-primary);
    margin: 0 0 0.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.faq--subtitle {
    font-size: 0.9rem;
    color: var(--faq-secondary);
    margin: 0;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.005em;
    opacity: 0.9;
}

/* FAQ Body */
.faq--body {
    padding: 2rem;
    background: white;
}

/* Search Section */
.faq--search-section {
    margin-bottom: 1.5rem;
}

.faq--search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.faq--search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faq-secondary);
    font-size: 0.875rem;
    z-index: 3;
}

.faq--search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--faq-border);
    border-radius: 0.5rem;
    background: white;
    color: var(--faq-primary);
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.faq--search-input::placeholder {
    color: var(--faq-secondary);
    opacity: 0.7;
}

.faq--search-input:focus {
    border-color: var(--faq-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.faq--search-input:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* FAQ Items */
.faq--items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq--item {
    background: rgba(248, 249, 250, 0.5);
    border: 1px solid var(--faq-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.faq--item:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.faq--item.active {
    border-color: rgba(212, 175, 55, 0.3);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq--question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq--question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq--question-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--faq-primary);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.005em;
    line-height: 1.4;
    flex: 1;
    padding-right: 1rem;
}

.faq--toggle-icon {
    font-size: 0.875rem;
    color: var(--faq-accent);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

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

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

.faq--item.active .faq--answer {
    max-height: 300px;
    padding: 0 1.25rem 1.25rem;
}

.faq--answer p {
    font-size: 0.8rem;
    color: var(--faq-secondary);
    line-height: 1.6;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    opacity: 0.9;
}

/* Contact Section */
.faq--contact-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--faq-border);
}

.faq--contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0.75rem;
    border: 1px solid var(--faq-border);
    position: relative;
    overflow: hidden;
}

.faq--contact-icon {
    width: 50px;
    height: 50px;
    background: var(--faq-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.faq--contact-icon i {
    font-size: 1.25rem;
    color: white;
}

.faq--contact-content {
    flex: 1;
}

.faq--contact-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--faq-primary);
    margin: 0 0 0.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.01em;
}

.faq--contact-text {
    font-size: 0.8rem;
    color: var(--faq-secondary);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    opacity: 0.9;
}

.faq--contact-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.faq--contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    position: relative;
    overflow: hidden;
}

.faq--contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

.faq--contact-btn:hover::before {
    left: 100%;
}

.faq--contact-btn-primary {
    background: var(--faq-accent);
    color: white;
    border: none;
}

.faq--contact-btn-primary:hover {
    background: var(--faq-accent-hover);
    transform: translateY(-1px);
}

.faq--contact-btn-secondary {
    background: white;
    color: var(--faq-primary);
    border: 1px solid var(--faq-border);
}

.faq--contact-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.faq--contact-btn i {
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq--container {
        padding: 1rem 0;
        min-height: 50vh;
    }
    
    .faq--wrapper {
        padding: 0 0.75rem;
    }
    
    .faq--card {
        border-radius: 0.75rem;
    }
    
    .faq--header {
        padding: 1.25rem 1.25rem 0.875rem;
    }
    
    .faq--title {
        font-size: 1.375rem;
    }
    
    .faq--subtitle {
        font-size: 0.85rem;
    }
    
    .faq--body {
        padding: 1.5rem;
    }
    
    .faq--search-box {
        max-width: none;
    }
    
    .faq--search-input {
        padding: 0.625rem 0.875rem 0.625rem 2.25rem;
        font-size: 0.8rem;
    }
    
    .faq--search-box i {
        left: 0.625rem;
        font-size: 0.8rem;
    }
    
    .faq--items {
        gap: 0.625rem;
    }
    
    .faq--question {
        padding: 0.875rem 1rem;
    }
    
    .faq--question-text {
        font-size: 0.85rem;
        padding-right: 0.75rem;
    }
    
    .faq--toggle-icon {
        font-size: 0.8rem;
    }
    
    .faq--item.active .faq--answer {
        padding: 0 1rem 1rem;
    }
    
    .faq--answer p {
        font-size: 0.75rem;
    }
    
    .faq--contact-section {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    
    .faq--contact-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        text-align: center;
    }
    
    .faq--contact-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .faq--contact-icon i {
        font-size: 1.125rem;
    }
    
    .faq--contact-title {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .faq--contact-text {
        font-size: 0.75rem;
        margin-bottom: 0.875rem;
    }
    
    .faq--contact-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .faq--contact-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }
}

@media (max-width: 480px) {
    .faq--container {
        padding: 0.75rem 0;
    }
    
    .faq--wrapper {
        padding: 0 0.5rem;
    }
    
    .faq--card {
        border-radius: 0.5rem;
    }
    
    .faq--header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .faq--title {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }
    
    .faq--subtitle {
        font-size: 0.8rem;
    }
    
    .faq--body {
        padding: 1.25rem;
    }
    
    .faq--search-section {
        margin-bottom: 1.25rem;
    }
    
    .faq--search-input {
        padding: 0.5rem 0.75rem 0.5rem 2rem;
        font-size: 0.75rem;
        border-radius: 0.375rem;
    }
    
    .faq--search-box i {
        left: 0.5rem;
        font-size: 0.75rem;
    }
    
    .faq--items {
        gap: 0.5rem;
    }
    
    .faq--item {
        border-radius: 0.5rem;
    }
    
    .faq--question {
        padding: 0.75rem 0.875rem;
    }
    
    .faq--question-text {
        font-size: 0.8rem;
        padding-right: 0.625rem;
        line-height: 1.3;
    }
    
    .faq--toggle-icon {
        font-size: 0.75rem;
    }
    
    .faq--item.active .faq--answer {
        padding: 0 0.875rem 0.875rem;
    }
    
    .faq--answer p {
        font-size: 0.7rem;
        line-height: 1.5;
    }
    
    .faq--contact-section {
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
    
    .faq--contact-card {
        gap: 0.875rem;
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .faq--contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .faq--contact-icon i {
        font-size: 1rem;
    }
    
    .faq--contact-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .faq--contact-text {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .faq--contact-buttons {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .faq--contact-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        gap: 0.25rem;
        border-radius: 0.375rem;
        justify-content: center;
    }
    
    .faq--contact-btn i {
        font-size: 0.7rem;
    }
}

/* Animation */
.faq--card {
    animation: faqFadeInUp 0.6s ease-out;
}

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

/* Focus styles for accessibility */
.faq--search-input:focus,
.faq--question:focus,
.faq--contact-btn:focus {
    outline: 2px solid var(--faq-accent);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .faq--card,
    .faq--item,
    .faq--contact-btn,
    .faq--search-input,
    .faq--card:hover,
    .faq--item:hover,
    .faq--contact-btn:hover {
        animation: none;
        transition: none;
        transform: none;
    }
    
    .faq--toggle-icon {
        transition: none;
    }
}
