/* cs-style.css */


html, body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #151515;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    flex-wrap: wrap;
    padding: 140px 5% 80px; 
    max-width: 1400px;
    min-height: calc(100vh - 220px); /* 헤더와 푸터 높이를 제외한 최소 높이를 확보하여 짧은 콘텐츠에서도 푸터가 딸려오지 않도록 합니다. */
    margin: 0 auto;
    gap: 100px;
}

/* --- 왼쪽: 고객 지원 정보 --- */
.support-info {
    flex: 1.5;
    min-width: 320px;
}

.support-info h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
}

.support-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 40px;
}

.contact-details {
    font-size: 1rem;
    color: #cccccc;
    line-height: 2;
}

.contact-details span {
    color: #ffffff;
    font-weight: 500;
}

.support-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.support-buttons a {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #333333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    /*text-align: center;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-buttons a:hover {
    background-color: #b50000;
}

/* --- 오른쪽: FAQ 섹션 --- */
.faq-section {
    flex: 1.5;
    min-width: 320px;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.faq-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.search-wrapper {
    position: relative;
}


#faq-search {
    background-color: transparent;
    border: 1px solid #555555;
    border-radius: 20px;
    padding: 10px 40px 10px 20px;
    color: #ffffff;
    font-size: 1rem;
    width: 200px;
    transition: border-color 0.3s;
}


.search-button {
    position: absolute; /* 버튼을 wrapper 내부에 절대 위치로 변경 */
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: transparent;
    color: #ccc;
    border: none;
    padding: 0 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .search-button:hover {
        color: var(--color-text-primary);
}

.search-button .icon {
        width: 1.25rem;
        height: 1.25rem;
}


.faq-item {
    border-bottom: 1px solid #333333;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    flex: 1; /* 남는 공간을 모두 차지하도록 설정 */
    min-width: 0; /* 내용이 길어져도 줄어들 수 있도록 설정 */
    padding-right: 15px; /* 아이콘과 텍스트 사이에 여백 추가 */
}

.arrow-icon {
    background-color: #b50000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;

    flex-shrink: 0; /* 공간이 부족해도 크기가 줄어들지 않도록 설정 */
    width: 32px;    /* 아이콘 너비 고정 */
    height: 32px;   /* 아이콘 높이 고정 */              
}

.faq-question:hover .arrow-icon {
    background-color: #b50000;
}

.arrow-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: #cccccc;
    line-height: 1.8;
}

.faq-answer p {
    margin-top: 0;
}

.faq-answer img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    /*border-radius: 5px;*/
}



.faq-item.active .faq-answer {
    max-height: 1000px; /* 답변 내용 길이에 따라 조절 */
    padding-bottom: 25px;
}

.faq-item.active .arrow-icon {
    transform: rotate(180deg);
}


/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    .container {
        margin-top:100px;
        padding: 0px 20px;
        height: auto; /* 화면 높이 고정 제거 */
        min-height: 0; /* 모바일에서는 최소 높이 불필요 */
        flex-direction: column; /* 세로 정렬로 변경 */
        gap: 50px; /* 모바일에서 간격 조금 줄이기 */                
    }
    .support-info h1 {
        font-size: 2.5rem;
        text-align: center; /*가운데 정렬*/
    }
    .support-buttons{
        flex-direction: column;
    }
    .faq-header {
        flex-direction: column; /* 세로로 정렬 */
        align-items: center; 
        gap: 15px;
    }
    #faq-search {
        width: 100%;
        padding: 10px 20px 10px 20px;
    }            
    .search-wrapper svg {
        right: -10px;
    }
    .faq-header h2 {
        font-size: 2.5rem;
    }
    .faq-section {
        margin-top:40px;
        width: 100%;
    }
    .support-info, .faq-section {
        min-width: 100%;
    }
}
