/* 고객센터 배경 래퍼 */
.support-wrapper {
    background-color: #fff;
    min-height: 600px;
    padding: 160px 0;
}

/* 고객센터 전체 레이아웃 */
.support-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 10px;
}

/* ============================================
   왼쪽 사이드바
   ============================================ */
.support-sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-menu li {
    margin-bottom: 0;
}

.sidebar-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 0;
    border-bottom: 1px solid #E5E5E5;
    transition: color 0.2s;
}

.sidebar-menu li:last-child a {
    border-bottom: none;
}

.sidebar-menu a:hover {
    color: #000;
}

.sidebar-menu a.active {
    color: #000;
    font-weight: 600;
}

.sidebar-menu .arrow {
    color: #999;
    font-size: 12px;
}

/* ============================================
   오른쪽 메인 컨텐츠
   ============================================ */
.support-content {
    flex: 1;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 컨텐츠 헤더 */
.content-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
}

.content-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    display: inline-block;
}

.content-desc {
    font-size: 13px;
    color: #999;
    margin: 0;
    display: inline-block;
    margin-left: 15px;
}

/* ============================================
   테이블 스타일
   ============================================ */
.support-table {
    width: 100%;
    border-collapse: collapse;
}

.support-table thead {
    border-top: 1px solid #000;
    border-bottom: 1px solid #E5E5E5;
}

.support-table th {
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.support-table th.col-num {
    width: 80px;
}

.support-table th.col-title {
    text-align: center;
}

.support-table th.col-date,
.support-table th.col-status {
    width: 100px;
}

.support-table tbody tr {
    border-bottom: 1px solid #E5E5E5;
}

.support-table td {
    padding: 15px 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.support-table td.title-cell {
    text-align: left;
}

.support-table td.title-cell a {
    color: #333;
    text-decoration: none;
}

.support-table td.title-cell a:hover {
    text-decoration: underline;
}

.support-table .empty-row {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 상태 배지 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.waiting {
    background: #FFF3CD;
    color: #856404;
}

.status-badge.answered {
    background: #D4EDDA;
    color: #155724;
}

/* ============================================
   페이지네이션
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: #333;
}

.page-btn.disabled {
    color: #ccc;
    pointer-events: none;
}

/* ============================================
   상세 페이지
   ============================================ */
.detail-view {
    border-top: 1px solid #000;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.detail-date {
    font-size: 14px;
    color: #999;
}

.detail-content {
    padding: 30px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    min-height: 200px;
    border-bottom: 1px solid #E5E5E5;
}

.detail-footer {
    padding-top: 20px;
    text-align: center;
}

.btn-list {
    display: inline-block;
    padding: 12px 40px;
    background: #fff;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-list:hover {
    background: #333;
    color: #fff;
}

/* 답변 섹션 */
.answer-section {
    background: #F8F8F8;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.answer-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(100, 136, 118, 1);
    margin-bottom: 10px;
}

.answer-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.answer-date {
    font-size: 12px;
    color: #999;
}

/* ============================================
   1:1 문의 폼
   ============================================ */
.inquiry-form {
    margin-bottom: 40px;
}

.inquiry-form .form-group {
    margin-bottom: 20px;
}

.inquiry-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.inquiry-form .form-group input,
.inquiry-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.inquiry-form .form-group input::placeholder,
.inquiry-form .form-group textarea::placeholder {
    color: #999;
}

.inquiry-form .form-group input:focus,
.inquiry-form .form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.inquiry-form .form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    text-align: right;
}

.btn-submit {
    display: inline-block;
    padding: 14px 40px;
    background: rgba(100, 136, 118, 1);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-submit:hover {
    background: #567868;
    color: #fff;
}

.btn-cancel {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #333;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    margin-right: 10px;
}

.btn-cancel:hover {
    background: #333;
    color: #fff;
}

/* 문의하기 버튼 섹션 */
.inquiry-btn-section {
    margin-top: 30px;
    text-align: right;
}

/* 문의 폼 섹션 */
.inquiry-form-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E5E5E5;
}

/* 문의 내역 섹션 */
.inquiry-list-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E5E5E5;
}

/* ============================================
   반응형 디자인
   ============================================ */
@media (max-width: 900px) {
    .support-wrapper {
        background-color: #fff;
        padding: 20px 0 100px;
        min-height: auto;
    }

    .support-container {
        flex-direction: column;
        padding: 0 16px;
        gap: 0;
    }

    .support-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .sidebar-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .sidebar-menu {
        display: flex;
        gap: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-bottom: 1px solid #E5E5E5;
    }

    .sidebar-menu li {
        flex: 1;
    }

    .sidebar-menu a {
        justify-content: center;
        padding: 15px 10px;
        border-bottom: 2px solid transparent;
        font-size: 14px;
    }

    .sidebar-menu li:last-child a {
        border-bottom: 2px solid transparent;
    }

    .sidebar-menu a.active {
        border-bottom-color: #000;
    }

    .sidebar-menu .arrow {
        display: none;
    }

    .support-content {
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .content-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .content-title {
        font-size: 18px;
        display: block;
    }

    .content-desc {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }

    .support-table th,
    .support-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .support-table th.col-num,
    .support-table td:first-child {
        width: 50px;
    }

    .support-table th.col-date,
    .support-table th.col-status {
        width: 80px;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-content {
        padding: 20px 0;
        min-height: 150px;
    }

    .btn-list {
        width: 100%;
        text-align: center;
    }

    .inquiry-form .form-group input,
    .inquiry-form .form-group textarea {
        padding: 12px 14px;
    }

    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .support-table th.col-date {
        display: none;
    }

    .support-table td:last-child:not(.title-cell):not(.empty-row) {
        display: none;
    }

    .support-table th.col-status,
    .support-table td .status-badge {
        display: inline-block;
    }
}
