@charset "utf-8";

/* ==============================================
   FAQ 스킨 전용 스타일
   ============================================== */

/* ===== 상단 FAQ 히어로 ===== */
.faq-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}
.faq-hero .sec_eyebrow {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.faq-hero h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    color: var(--brand);
    margin: 14px 0 12px;
}
.faq-hero p {
    font-size: 14.5px;
    color: var(--txt-s);
    line-height: 1.8;
}

/* ===== FAQ 탭 메뉴 ===== */
.faq-tabs-wrapper {
    max-width: 800px;
    margin: 0 auto 32px;
}

.faq-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.faq-tabs::-webkit-scrollbar {
    display: none;
}

.faq-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-s, #64748b);
    background: var(--bg, #f1f5f9);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.faq-tab:hover {
    background: var(--border, #e2e8f0);
    color: var(--txt, #0f172a);
}
.faq-tab.active {
    background: var(--brand, #001E45);
    color: #fff;
}
.faq-tab.active:hover {
    background: var(--brand-d, #002d66);
}

/* ===== FAQ 컨테이너 ===== */
.faq-container {
    max-width: var(--wrap) !important;
    margin: 30px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* ===== FAQ 목록 ===== */
.faq_list {
    max-width: 800px;
    margin: 0 auto 40px;
}

/* FAQ 아이템 */
.faq_item {
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
}

/* 질문 영역 */
.faq_question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}
.faq_question:hover {
    background: var(--bg);
}
.faq_question .q_mark {
    width: 30px;
    height: 30px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.faq_question span:not(.q_mark) {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: var(--txt);
}
.faq_question i {
    color: var(--txt-s);
    transition: transform 0.3s;
    font-size: 14px;
}
.faq_item.open .faq_question i {
    transform: rotate(180deg);
}

/* 답변 영역 */
.faq_answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg);
}
.faq_item.open .faq_answer {
    max-height: 500px;
}
.faq_answer_inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px 22px 22px;
    border-top: 1px solid var(--border);
}
.faq_answer .a_mark {
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.faq_answer_content {
    flex: 1;
    line-height: 1.7;
}
.faq_answer_content p {
    font-size: 15px;
    color: var(--txt-s);
    margin: 0 0 8px 0;
    line-height: 1.7;
}
.faq_answer_content p:last-child {
    margin-bottom: 0;
}

/* 빈 목록 */
.faq_empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--txt-s);
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

/* ==============================================
   ★ 하단 CTA 배너
   ============================================== */
.faq-cta-banner {
    background: var(--brand-light);
    border-radius: 24px;
    padding: 24px 32px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* 전화 아이콘 (클릭 가능) */
.faq-cta-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--txt-s);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.2s ease;
}
.faq-cta-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.faq-cta-icon:active {
    transform: scale(0.95);
}

.faq-cta-icon svg {
    width: 24px;
    height: 24px;
}

/* 전화번호 (클릭 가능) */
.faq-cta-phone {
    font-size: 26px;
    font-weight: 700;
    color: var(--txt);
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}
.faq-cta-phone:hover {
    color: var(--brand);
}
.faq-cta-phone:active {
    opacity: 0.7;
}

.faq-cta-info {
    font-size: 12px;
    color: var(--txt-s);
    font-weight: 500;
    line-height: 1.5;
}
.faq-cta-info p {
    margin: 0;
}

/* 카카오톡 버튼 */
.faq-cta-btn.kakao-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: #FEE500;
    border: 1px solid #FEE500;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    color: #371D1E;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.faq-cta-btn.kakao-btn:hover {
    background: #FEE500;
    border-color: #FEE500;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.4);
}
.faq-cta-btn.kakao-btn:active {
    transform: scale(0.98);
}
.faq-cta-btn.kakao-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}
.faq-cta-btn.kakao-btn svg path {
    fill: #371D1E;
}

/* ==============================================
   반응형
   ============================================== */
@media (max-width: 768px) {
    .faq-hero {
        margin-bottom: 30px;
    }
    .faq-hero h1 {
        font-size: 24px;
    }
    .faq-container {
        padding: 0 16px !important;
    }

    .faq-tabs-wrapper {
        margin-bottom: 24px;
    }
    .faq-tabs {
        gap: 6px;
        padding-bottom: 2px;
    }
    .faq-tab {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 8px;
    }

    .faq_question {
        padding: 14px 18px;
        gap: 10px;
    }
    .faq_question span:not(.q_mark) {
        font-size: 13px;
    }
    .faq_answer_inner {
        padding: 14px 18px 18px 18px;
        gap: 10px;
    }
    .faq_answer .a_mark {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .faq_answer_content p {
        font-size: 13px;
    }

    .faq-cta-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 20px;
        gap: 16px;
    }
    .faq-cta-left {
        gap: 14px;
    }
    .faq-cta-icon {
        width: 48px;
        height: 48px;
    }
    .faq-cta-icon svg {
        width: 20px;
        height: 20px;
    }
    .faq-cta-phone {
        font-size: 20px;
    }
    .faq-cta-btn.kakao-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
    }
}