.qna-container { max-width: 70rem; margin: 2.5rem auto; padding: 0 1.5rem; }

/* 타이틀 */
.page-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.page-title-row h1 { font-size: 1.75rem; font-weight: 800; display: flex; align-items: center; gap: 0.6rem; }
.page-title-row h1 i { color: var(--primary); }
.page-title-row p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.35rem; }

/* 탭 */
.qna-tabs { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 2px solid #e2e8f0; }
.qna-tab {
    padding: 0.75rem 1.5rem; font-size: 0.95rem; font-weight: 600; cursor: pointer;
    border: none; background: none; color: var(--text-muted); position: relative;
    transition: color 0.2s;
}
.qna-tab.active { color: var(--primary); }
.qna-tab.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--primary);
}
.qna-tab:hover { color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 아코디언 - FAQ */
.faq-category { margin-bottom: 2rem; }
.faq-category-title {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid #e2e8f0;
}
.accordion-item {
    border: 1px solid #f1f5f9; border-radius: 0.6rem; margin-bottom: 0.5rem;
    overflow: hidden; transition: box-shadow 0.2s;
}
.accordion-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.accordion-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; cursor: pointer; background: white;
    font-size: 0.92rem; font-weight: 600; color: var(--text-main);
    transition: background 0.2s;
}
.accordion-header:hover { background: #fafbfc; }
.accordion-header .q-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--primary); color: white; font-size: 0.72rem; font-weight: 700;
    margin-right: 0.75rem; flex-shrink: 0;
}
.accordion-header .arrow {
    transition: transform 0.3s; font-size: 0.75rem; color: var(--text-muted);
}
.accordion-item.open .accordion-header .arrow { transform: rotate(180deg); }
.accordion-body {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    background: #f8fafc;
}
.accordion-body-inner {
    padding: 1rem 1.25rem 1.25rem 3.5rem;
    font-size: 0.88rem; line-height: 1.7; color: #475569;
}

/* 1:1 문의 */
.inquiry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.btn-inquiry {
    padding: 0.55rem 1.2rem; border: none; border-radius: 0.6rem;
    background: var(--primary); color: white; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.btn-inquiry:hover { opacity: 0.9; }

.inquiry-table { width: 100%; border-collapse: collapse; }
.inquiry-table th {
    padding: 0.7rem 1rem; font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
    border-bottom: 2px solid var(--primary); text-align: left;
}
.inquiry-table td {
    padding: 0.8rem 1rem; font-size: 0.88rem; border-bottom: 1px solid #f1f5f9;
}
.inquiry-table tr:hover { background: #fafafa; }
.inquiry-table .col-no { width: 3.5rem; text-align: center; }
.inquiry-table .col-status { width: 5.5rem; text-align: center; }
.inquiry-table .col-date { width: 7rem; text-align: center; }

.status-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.7rem; border-radius: 0.4rem;
    font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.status-badge::before {
    content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; flex-shrink: 0;
}
.status-waiting { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-waiting::before { background: #f59e0b; }
.status-answered { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-answered::before { background: #10b981; }

/* 비공개 아이콘 */
.private-icon { color: #94a3b8; font-size: 0.72rem; margin-left: 0.25rem; }

.inquiry-title-link { color: var(--text-main); text-decoration: none; }
.inquiry-title-link:hover { color: var(--primary); }

.login-prompt {
    text-align: center; padding: 3rem; color: var(--text-muted);
}
.login-prompt a {
    display: inline-block; margin-top: 0.75rem; padding: 0.5rem 1.5rem;
    background: var(--primary); color: white; border-radius: 0.5rem;
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
}

.empty-msg { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 0.9rem; }

/* 모달 공통 */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    z-index: 1000; align-items: center; justify-content: center;
}
.modal-box {
    background: white; width: 100%; max-width: 36rem; border-radius: 1.25rem;
    padding: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.modal-header h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.modal-close {
    background: none; border: 1px solid var(--border); width: 2rem; height: 2rem;
    border-radius: 0.5rem; font-size: 1.1rem; cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #f1f5f9; }
.form-group { margin-bottom: 0.85rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 0.6rem;
    font-size: 0.88rem; font-family: inherit; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 10rem; resize: vertical; }
/* 파일 input 커스텀 */
.file-upload-wrap {
    display: flex; align-items: center; gap: 0.75rem;
}
.file-upload-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border: 1px solid var(--primary); border-radius: 0.5rem;
    background: white; color: var(--primary); font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.file-upload-btn:hover { background: var(--primary); color: white; }
.file-upload-btn i { font-size: 0.8rem; }
.file-upload-name {
    font-size: 0.82rem; color: var(--text-muted); overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; max-width: 15rem;
}
.file-upload-wrap input[type="file"] { display: none; }
.form-group input[type="file"] { padding: 0.4rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
.btn-cancel {
    padding: 0.55rem 1.2rem; border: 1px solid var(--border); border-radius: 0.6rem;
    background: white; color: var(--text-main); font-size: 0.85rem; font-weight: 600; cursor: pointer;
}

/* 문의 상세 모달 */
.detail-section { margin-bottom: 1.25rem; }
.detail-section h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-main); }
.detail-content {
    background: #f8fafc; border-radius: 0.6rem; padding: 1rem;
    font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap;
}
.reply-content {
    background: #f0f4ff; border-radius: 0.6rem; padding: 1rem;
    font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap;
    border-left: 3px solid var(--primary);
}
.attachment-link { font-size: 0.82rem; color: var(--primary); text-decoration: none; }
.attachment-link:hover { text-decoration: underline; }
