@import url(https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/nanumsquare.css);

/* 기본 스타일은 원본 유지 */
.customer-center {
    /* max-width를 1200px로 조정하여 큰 화면에서 여백 확보 */
    max-width: 1200px; 
    align-items: center;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 20px; /* 작은 화면을 위한 좌우 패딩 추가 */
}

.cc-hero {
    width: 100%;
    height: 187px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(90deg, #1987fa, #10c2a0);
    border-radius: 8px;
    color: white;
}

.cc-title {
    font-size: 48px;
    font-weight: 700;
}

.cc-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* 버튼이 많아지거나 화면이 줄어들 때 줄바꿈되도록 설정 */
}

.cc-btn {
    background: white;
    color: var(--primary, #1987fa);
    border: none;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
}

.cc-search-area {
    display: flex;
    justify-content: center;
    /* 고정 너비를 100%로 변경하여 유연하게 조절 */
    width: 100%; 
    height: auto; /* 높이를 자동으로 조절 */
    margin-bottom: 40px; /* 하단 마진 조정 */
}

.cc-search-box {
    display: flex;
    align-items: center;
    gap: 43px;
    padding: 39px 65px;
    border: 2px dashed var(--accent, #00c8f8);
    border-radius: 12px;
    width: 100%;
}

.cc-search-icon {
    width: 43px;
    height: 45px;
}

.cc-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray300);
    border-radius: 9999px;
    font-size: 20px;
    color: var(--gray500);
    outline: none;
    /* 고정 너비를 제거하고 최소 너비 설정 */
    min-width: 80%;
    height: 56px;
    text-align: center;
}

.cc-search-btn {
    background: var(--primary, #1987fa);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 18px;
    cursor: pointer;
    /* width: 96px; */
    min-width: 12%;
    max-width: 16%;
    height: 56px;
}

.cc-quick-qa {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%; /* 너비 100% 설정 */
}

.cc-qa-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 23px;
}

.cc-qa-cats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap; /* 화면이 작을 때 버튼들이 줄바꿈되도록 설정 */
}

.cc-cat-btn {
    display: flex;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: var(--wht);
    border: 1px solid var(--gray300);
    border-radius: 9999px;
    padding: 7px 12px;
    font-size: 14px;
    color: var(--gray300);
    cursor: pointer;
}

.cc-qa-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    /* 좌우 패딩을 제거하여 유연하게 만듦 */
    padding: 0;
}

.cc-qa-item {
    width: 100%;
    height: auto; /* 높이를 자동으로 조절 */
    min-height: 93px;
    /* flex-basis를 48% 정도로 설정하여 2단 레이아웃 유지 */
    flex: 1 1 48%; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px; /* 패딩 값 조정 */
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 18px;
    color: var(--blk);
    cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Responsive Adjustments */
/* ------------------------------------------------------------------ */

/* 태블릿 사이즈 이하 */
@media (max-width: 1024px) {
    .cc-search-box {
        gap: 20px;
        padding: 30px;
    }

    .cc-search-input {
        font-size: 16px;
    }
}

/* 모바일 사이즈 */
@media (max-width: 768px) {
    .customer-center {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .cc-title {
        font-size: 36px;
    }

    .cc-search-box {
        flex-direction: column; /* 검색 박스 아이템들을 세로로 정렬 */
        padding: 20px;
        gap: 15px;
    }

    .cc-search-btn {
        width: 100%; /* 검색 버튼 너비를 100%로 설정 */
    }

    .cc-qa-item {
        /* 아이템을 한 줄에 하나씩(1단 레이아웃) 표시 */
        flex: 1 1 100%; 
        font-size: 16px;
        padding: 20px;
    }
}

/* 작은 모바일 사이즈 */
@media (max-width: 480px) {
    .cc-title {
        font-size: 28px;
    }

    .cc-search-input {
        font-size: 14px;
        height: 48px;
    }
    
    .cc-search-btn {
        height: 48px;
        font-size: 16px;
    }
}