/* FAQ 페이지 전용 스타일 */

/* FAQ 토글 체크박스 숨김 */
.faq-toggle {
    display: none;
}

/* 메인 컨테이너 */
.faq-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 페이지 헤더 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #bb877a 0%, #9f806f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1rem;
    color: #666;
}

/* FAQ 리스트 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
}

/* FAQ 아이템 */
.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* FAQ 질문 */
.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #faf8f8;
}

.faq-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #bb877a 0%, #9f806f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-question-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.faq-toggle-icon {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #999;
    transition: transform 0.3s ease;
}

/* 체크박스 체크 시 화살표 회전 */
#faq-1:checked ~ .faq-container .faq-list .faq-item:nth-child(1) .faq-toggle-icon,
#faq-2:checked ~ .faq-container .faq-list .faq-item:nth-child(2) .faq-toggle-icon,
#faq-3:checked ~ .faq-container .faq-list .faq-item:nth-child(3) .faq-toggle-icon,
#faq-4:checked ~ .faq-container .faq-list .faq-item:nth-child(4) .faq-toggle-icon,
#faq-5:checked ~ .faq-container .faq-list .faq-item:nth-child(5) .faq-toggle-icon,
#faq-6:checked ~ .faq-container .faq-list .faq-item:nth-child(6) .faq-toggle-icon,
#faq-7:checked ~ .faq-container .faq-list .faq-item:nth-child(7) .faq-toggle-icon,
#faq-8:checked ~ .faq-container .faq-list .faq-item:nth-child(8) .faq-toggle-icon {
    transform: rotate(180deg);
}

/* FAQ 답변 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    display: flex;
    gap: 16px;
    padding: 0 24px;
}

/* 체크박스 체크 시 답변 표시 */
#faq-1:checked ~ .faq-container .faq-list .faq-item:nth-child(1) .faq-answer,
#faq-2:checked ~ .faq-container .faq-list .faq-item:nth-child(2) .faq-answer,
#faq-3:checked ~ .faq-container .faq-list .faq-item:nth-child(3) .faq-answer,
#faq-4:checked ~ .faq-container .faq-list .faq-item:nth-child(4) .faq-answer,
#faq-5:checked ~ .faq-container .faq-list .faq-item:nth-child(5) .faq-answer,
#faq-6:checked ~ .faq-container .faq-list .faq-item:nth-child(6) .faq-answer,
#faq-7:checked ~ .faq-container .faq-list .faq-item:nth-child(7) .faq-answer,
#faq-8:checked ~ .faq-container .faq-list .faq-item:nth-child(8) .faq-answer {
    max-height: 500px;
    padding: 24px 24px 32px 24px;
}

.faq-answer-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #faf8f8;
    color: #9f806f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-answer-text {
    flex: 1;
    padding-top: 8px;
}

.faq-answer-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 12px 0;
}

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

/* FAQ 탭 스타일 */
.faq-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.faq-tab {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #e5d4cf;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-tab:hover { 
    color: #c76b52;
}

.faq-tab.active {
    background: #bb877a;
    color: white;
    border-color: transparent;
}

/* JS 동적 렌더링용 클래스 (faq-q-mark, faq-q-text 등) */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
}

.faq-q-mark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #bb877a 0%, #9f806f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-q-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}

.faq-arrow {
    flex-shrink: 0;
    color: #999;
    transition: transform 0.3s ease;
}

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

.faq-a-mark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f0f0ff;
    color: #9f806f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-a-text {
    flex: 1;
    padding-top: 8px;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 28px 24px;
}

/* 빈 상태 스타일 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1rem;
    background: white;
    border-radius: 12px;
    border:1px solid #ece2df;
}

/* Contact Section */
.faq-contact {
    background: white;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    border:1px solid #ece2df;
}

.faq-contact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.faq-contact p {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 32px;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-inquiry {
    background: #bb877a;
    color: white;
    border: none;
}

.btn-call {
    background: white;
    color: #c76b52;
    border: 2px solid #c76b52;
}

.btn-call:hover {
    background: #c76b52;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .faq-container {
        padding: 30px 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .faq-question {
        padding: 20px;
        gap: 12px;
    }

    .faq-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .faq-question-text {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    #faq-1:checked ~ .faq-container .faq-list .faq-item:nth-child(1) .faq-answer,
    #faq-2:checked ~ .faq-container .faq-list .faq-item:nth-child(2) .faq-answer,
    #faq-3:checked ~ .faq-container .faq-list .faq-item:nth-child(3) .faq-answer,
    #faq-4:checked ~ .faq-container .faq-list .faq-item:nth-child(4) .faq-answer,
    #faq-5:checked ~ .faq-container .faq-list .faq-item:nth-child(5) .faq-answer,
    #faq-6:checked ~ .faq-container .faq-list .faq-item:nth-child(6) .faq-answer,
    #faq-7:checked ~ .faq-container .faq-list .faq-item:nth-child(7) .faq-answer,
    #faq-8:checked ~ .faq-container .faq-list .faq-item:nth-child(8) .faq-answer {
        padding: 20px 20px 28px 20px;
    }

    .faq-answer-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

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

    .faq-contact {
        padding: 36px 24px;
    }

    .faq-contact h3 {
        font-size: 1.3rem;
    }

    .faq-contact p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .faq-question {
        padding: 16px;
        gap: 10px;
    }

    .faq-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 16px;
        gap: 12px;
    }

    #faq-1:checked ~ .faq-container .faq-list .faq-item:nth-child(1) .faq-answer,
    #faq-2:checked ~ .faq-container .faq-list .faq-item:nth-child(2) .faq-answer,
    #faq-3:checked ~ .faq-container .faq-list .faq-item:nth-child(3) .faq-answer,
    #faq-4:checked ~ .faq-container .faq-list .faq-item:nth-child(4) .faq-answer,
    #faq-5:checked ~ .faq-container .faq-list .faq-item:nth-child(5) .faq-answer,
    #faq-6:checked ~ .faq-container .faq-list .faq-item:nth-child(6) .faq-answer,
    #faq-7:checked ~ .faq-container .faq-list .faq-item:nth-child(7) .faq-answer,
    #faq-8:checked ~ .faq-container .faq-list .faq-item:nth-child(8) .faq-answer {
        padding: 16px 16px 24px 16px;
    }

    .faq-answer-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

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

    .faq-contact {
        padding: 32px 20px;
    }

    .faq-contact h3 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}
