/**
 * FAQ Page Specific Styles
 * Silk By Ali E-commerce Website
 */

/* FAQ Section Styles */
.faq-section {
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.03;
    z-index: -1;
}

/* FAQ Hero */
.faq-hero {
    position: relative;
    overflow: hidden;
}

.faq-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
}

.faq-hero .container {
    position: relative;
    z-index: 2;
}

/* FAQ Category Styles */
.faq-category {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-category-header {
    background: linear-gradient(135deg, var(--primary-color), #c71f70);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-category-header::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: all 0.6s ease;
}

.faq-category-header:hover::before {
    left: 100%;
}

.faq-category-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    position: relative;
}

/* Custom Accordion Styles */
.custom-accordion {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-item {
    border: none;
    background: white;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background: white;
    border: none;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: rgba(232, 62, 140, 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(232, 62, 140, 0.25);
}

.accordion-button::after {
    background-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg) scale(1.2);
}

.accordion-body {
    padding: 20px 25px;
    color: #555;
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f9f9f9;
}

.accordion-body ul {
    padding-left: 20px;
}

.accordion-body ul li {
    margin-bottom: 8px;
}

.accordion-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accordion-body a:hover {
    color: #c71f70;
    text-decoration: underline;
}

/* FAQ Search Box */
.faq-search-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.faq-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--light-pink);
    border-radius: 0 0 0 100%;
    opacity: 0.2;
    z-index: 0;
}

.faq-search-form {
    position: relative;
    z-index: 1;
}

.faq-search-form .form-control {
    height: 55px;
    padding-left: 20px;
    padding-right: 50px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.faq-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(232, 62, 140, 0.15);
}

.faq-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-search-btn:hover {
    background: #c71f70;
    transform: scale(1.05);
}

/* FAQ Contact Info */
.faq-contact-info {
    background: linear-gradient(135deg, var(--light-pink), var(--light-blue));
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-contact-info::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50% 0 0 0;
}

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

.faq-contact-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.faq-contact-info .btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-contact-info .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Quick Links */
.faq-quick-links {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-quick-links h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-color);
}

.faq-quick-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.quick-link-item {
    display: block;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f9f9f9;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 35px;
}

.quick-link-item:last-child {
    margin-bottom: 0;
}

.quick-link-item i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.quick-link-item:hover {
    background: var(--light-pink);
    color: var(--primary-color);
    transform: translateX(5px);
}

.quick-link-item:hover i {
    transform: translateY(-50%) translateX(3px);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animation Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .faq-quick-links {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .faq-search-box,
    .faq-contact-info {
        padding: 25px;
    }
    
    .faq-category-header {
        padding: 12px 20px;
    }
    
    .accordion-button {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 15px 20px;
    }
}
