/* FAQ Page Styles */
.faq-main {
    min-height: 100vh;
}

.faq-content {
    display: grid;
    width: 82%;
    grid-template-columns: 1.12fr 0.9fr;
    align-items: flex-start;
    gap: 10rem;
    margin: 0 auto;
}

/* FAQ Section */
.faq-section {
    flex: 1;
}

.faq-section h2 {
    font-size: 1.5rem;
    color: #2E2925;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 2rem;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
}

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

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.9rem 0rem;
    font-size: 2rem;
    font-weight: bold;
    color: #5E5E5E;
    cursor: pointer;
    position: relative;
    font-style: italic;
    line-height: 1.2;
}

.faq-question::after {
    content: '';
    position: absolute;
    right: calc(100% + 0.5rem);
    top: 1.3rem;
    width: 1.7rem;
    height: 1.7rem;
    background: url('../images/arrow-right.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform:  rotate(90deg);
}

.faq-question.active {
    color: #E42261;
}

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

.faq-answer.active {
    /* max-height will be set dynamically by JavaScript */
}

.faq-answer-content {
    padding: 0rem 0 2rem;
}

.faq-answer p {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.2;
    color: #666;
    margin: 0 0 1rem 0;
}

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

/* Contact Form Section */
.contact-section {
    background: #FFF5F7;
    border-radius: 1rem;
    padding: 5.1rem 3.938rem;
}

.contact-section h2 {
    font-size: 3rem;
    line-height: 0.9;
    color: #E42261;
    font-family: 'Dessert Script', 'Arial',sans-serif;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-section p {
    font-size: 1.125rem;
    line-height: 1.15;
    color: #666;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1.8rem;
    font-style: italic;
}

/* General Form Styles */

.form-submit-btn {
    margin-top: 1rem;
    align-self: center;
    width: 100%;
}

/* Where to Buy in FAQ */
.faq-where-to-buy {
    margin: 10rem 0 0rem;
}

.faq-where-to-buy .where-content {
    padding: 2rem 3rem;
}

/* Responsive Design for FAQ Page */
@media (max-width: 1024px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .faq-main {
        padding: 6rem 0 2rem;
    }
    
    .faq-content {
        gap: 3.4rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 0.8rem 0;
    }

}

@media (max-width: 480px) {
    .faq-content {
        width: 100%;
        padding-top: 1rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
        order: 1;
        border-radius: 2rem;

    }

    .contact-section .form {
      width: 90%;
      margin: auto;
    }
    
    .contact-section h2 {
      margin-bottom: 1.5rem;
      font-size: 2.25rem;
    }

    .contact-section p {
      margin-bottom: 1.7rem;
    }

    .faq-item {
      padding-left: 1.5rem;
    }
    .faq-answer p {
      font-size: 1rem;
    }

    .faq-question {
      padding: 0rem 0;
      font-size: 1.25rem;
      line-height: 1.2;
    }
    .faq-question::after {
      right: calc(100% + 0.5rem);
      top: 0.5rem;
      width: 1.1rem;
      height: 1.1rem;
    }

    .faq-where-to-buy .where-content {
        padding: 1.5rem 2rem;
    }
}