/* 페이지 로드 전 기본 스타일 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F8F9FA;
}

/* 헤더 스타일 - 다른 페이지와 일관성 유지 */
.nl-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nl-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #191F28;
    position: relative;
}

.back-btn svg {
    position: relative;
    z-index: 1;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #191F28;
    margin: 0;
    letter-spacing: -0.02em;
}

/* 1:1 채팅 문의 스타일 */
.chat-support-section {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.chat-support-card {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0F0 100%);
    border: 1px solid rgba(229, 9, 20, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.chat-icon-large {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #191F28;
    margin-bottom: 8px;
}

.chat-description {
    font-size: 0.95rem;
    color: #8B95A1;
    margin-bottom: 24px;
    line-height: 1.6;
}

.chat-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4E5968;
}

.info-icon {
    font-size: 1.1rem;
}

.chat-start-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.9) 0%, rgba(204, 8, 18, 0.95) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-start-btn::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: left 0.5s ease;
}

.chat-start-btn:hover::before {
    left: 100%;
}

.chat-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-icon {
    font-size: 1.2rem;
}

/* FAQ 페이지 전용 스타일 */
.search-section {
    text-align: center;
    padding: 20px 0;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.search-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #F2F4F6;
    border-radius: 12px;
    font-size: 1rem;
    background: #FFFFFF;
    color: #191F28;
}

.search-input:focus {
    outline: none;
    border-color: #E50914;
}

.search-btn {
    width: 48px;
    height: 48px;
    border: 1px solid #E5E8EB;
    background: #FFFFFF;
    color: #8B95A1;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #F8F9FA;
    color: #4E5968;
    border-color: #D3D8DD;
}

.search-btn:active {
    background: #F2F4F6;
    transform: scale(0.97);
}

.search-description {
    font-size: 0.8rem;
    color: #8B95A1;
    margin: 0;
}

/* 카테고리 필터 */
.category-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 20px;
    padding: 4px;
    background: linear-gradient(135deg, #F8F9FA 0%, #F5F6F8 100%);
    border-radius: 14px;
    position: relative;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 카테고리 구분선 */
.category-tab:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #E5E8EB, transparent);
}

.category-tab {
    position: relative;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6B7684;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-align: center;
    letter-spacing: -0.02em;
}

/* 호버 효과 */
.category-tab:hover:not(.active) {
    background: rgba(229, 9, 20, 0.04);
    color: #191F28;
}

/* 활성 탭 */
.category-tab.active {
    background: white;
    color: #E50914;
    box-shadow:
        0 2px 8px rgba(229, 9, 20, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.06);
    font-weight: 700;
    margin: 0;
}

.category-tab.active::after {
    display: none;
}









/* 필터 컨테이너 애니메이션 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-filters {
    animation: slideIn 0.4s ease-out;
}

/* 탭 전환 효과 */
.faq-list {
    transition: opacity 0.3s ease;
}

.faq-list.loading {
    opacity: 0.5;
}

/* 클릭 효과 */
.category-tab:active {
    transform: scale(0.96);
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .category-filters {
        padding: 3px;
        margin-top: 16px;
    }

    .category-tab {
        padding: 10px 8px;
        font-size: 0.85rem;
    }



    .category-tab:not(:last-child)::after {
        height: 16px;
    }


}



/* FAQ 아이템 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F2F4F6;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

/* 질문 구분선 */
.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: #F0F2F4;
    transition: opacity 0.3s ease;
}

.faq-item:last-child .faq-question::after {
    display: none;
}

.faq-item.open .faq-question::after {
    opacity: 0;
}

.faq-question:hover {
    background: linear-gradient(to right, rgba(229, 9, 20, 0.02) 0%, rgba(229, 9, 20, 0.01) 100%);
}

.faq-question:active {
    background: rgba(229, 9, 20, 0.03);
}

.faq-text {
    font-size: 1rem;
    font-weight: 600;
    color: #191F28;
    flex: 1;
    padding-right: 12px;
}

.faq-toggle {
    color: #E50914;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0;
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 답변 내부 컨테이너 */
.faq-answer-inner {
    margin: 16px 20px 20px 20px;
    padding: 20px 20px 20px 24px;
    background: linear-gradient(135deg, #FAFBFC 0%, #F8F9FA 100%);
    border-radius: 12px;
    border: 1px solid rgba(229, 9, 20, 0.08);
    position: relative;
    overflow: hidden;
}

/* 답변 상단 액센트 */
.faq-answer-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #E50914 0%, rgba(229, 9, 20, 0.3) 100%);
    border-radius: 4px 0 0 4px;
}

.faq-answer p {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #4E5968;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

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

.faq-answer ul,
.faq-answer ol {
    margin: 12px 0;
    padding-left: 20px;
    list-style: none;
}

.faq-answer ul li,
.faq-answer ol li {
    position: relative;
    margin: 8px 0;
    font-size: 0.92rem;
    color: #4E5968;
    line-height: 1.6;
}

/* 커스텀 불릿 포인트 */
.faq-answer ul li::before {
    content: '•';
    position: absolute;
    left: -16px;
    color: #E50914;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* 커스텀 넘버링 */
.faq-answer ol {
    counter-reset: faq-counter;
}

.faq-answer ol li {
    counter-increment: faq-counter;
}

.faq-answer ol li::before {
    content: counter(faq-counter);
    position: absolute;
    left: -24px;
    width: 20px;
    height: 20px;
    background: #E50914;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 2px;
}

/* 강조 텍스트 */
.faq-answer strong {
    color: #191F28;
    font-weight: 700;
    background: linear-gradient(180deg, transparent 60%, rgba(229, 9, 20, 0.1) 60%);
    padding: 0 2px;
}

/* 링크 스타일 */
.faq-answer a {
    color: #E50914;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
    transition: all 0.2s ease;
}

.faq-answer a:hover {
    border-bottom-color: #E50914;
    background: rgba(229, 9, 20, 0.05);
    padding: 0 4px;
    margin: 0 -4px;
    border-radius: 4px;
}

/* 애니메이션 효과 */
.faq-item.open .faq-answer {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 바로가기 링크 스타일 */
.faq-quick-action {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(229, 9, 20, 0.06);
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #E50914;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: none;
}

.quick-action-btn::after {
    content: '→';
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s ease;
    font-weight: 400;
}

.quick-action-btn:hover {
    color: #cc0812;
}

.quick-action-btn:hover::after {
    transform: translateX(3px);
}

.quick-action-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.quick-action-label {
    letter-spacing: -0.01em;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .faq-answer-inner {
        margin: 12px 16px 16px 16px;
        padding: 16px;
    }

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

    .faq-answer ul li,
    .faq-answer ol li {
        font-size: 0.88rem;
    }

    .quick-action-btn {
        font-size: 0.85rem;
    }

    .quick-action-icon {
        font-size: 0.9rem;
    }
}

/* 연락처 정보 */
.contact-info {
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F8F9FA;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: #F8F9FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-size: 1rem;
    font-weight: 600;
    color: #191F28;
    margin: 0 0 4px 0;
}

.contact-detail {
    font-size: 0.9rem;
    font-weight: 600;
    color: #E50914;
    margin: 0 0 2px 0;
}

.contact-time {
    font-size: 0.7rem;
    color: #8B95A1;
    margin: 0;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #F2F4F6;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #F8F9FA;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #F2F4F6;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #191F28;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #F2F4F6;
    border-radius: 8px;
    font-size: 1rem;
    background: #FFFFFF;
    color: #191F28;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #E50914;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}
