/* FAQ Page Styles */

.faq {
    padding: 5rem 0;
    background: #F4F2F0;
    border-radius: 5rem;

}

.faq-title {
    margin-bottom: 2.25rem;
    font-size: 3.5rem;
    font-weight: 600;
    color: #2A1E1A;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.05em;

}

.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 {
    margin-bottom: 1rem;
}

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

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #2A1E1A;
    border: 1px solid #E4DED8;
    cursor: pointer;
    position: relative;
    line-height: 1.2;
}

.faq-question::after {
    content: '';
    position: absolute;
    right: 1.313rem;
    top: 0.688rem;
    width: 3rem;
    height: 3rem;
    background: url('../images/plus.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}

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

.faq-question.active {
    background: #FFFFFF;
    border-color: #FFF;
}

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

.faq-answer.active {
    background: #FFF;
}

.faq-answer-content {
    position: relative;
    padding: 1.5rem 2rem;
}

.faq-answer-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2rem;
    width: 80%;
    height: 1px;
    display: block;
    background: #E4DED8;
}

.faq-answer p {
    font-size: 1.125rem;
    line-height: 1.2;
    color: #2A1E1A;
    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', sans-serif;
    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%;
}

/* 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 {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }

}

@media (max-width: 480px) {
    .faq {
        padding: 4rem 0;
        border-radius: 2.3rem;
    }
    .faq-content {
        width: 100%;
    }
    
    .faq .container {
      padding: 0;
    }
    .faq-title {
        margin-bottom: 1.45rem;
        font-size: 2rem;
        text-align: center;
    }

    .faq-item {
      margin-bottom: -1px;

    }
    .faq-answer p {
      font-size: 0.75rem;
    }

    .faq-question {
      padding: 0.9rem 3rem 0.9rem 1rem;
      font-size: 1.25rem;
      line-height: 1.1;
      border-right: none;
      border-left: none;
    }
    .faq-question::after {
      top: 1.5rem;
      right: 1rem;
      width: 1.5rem;
      height: 1.5rem;
    }
    
    .faq-answer-content {
      padding: 1rem;
    }

    .faq-answer-content::before {
      left: 1rem;
      width: calc(100% - 2rem);
    }
}