/* ===== HEAD ===== */
.faq-head {margin-bottom: 24px;text-align: center;}
.faq-head-sub {
    font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; color: #1255a4; margin-bottom: 6px;
}
.faq-head-title {font-size: 26px;font-weight: 800;color: #0d1b3e;margin: 0 0 6px;}
.faq-head-desc { font-size: 13px; color: #999; margin: 0; }

/* ===== 카테고리 탭 ===== */
.faq-cat-wrap {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}
.faq-cat {
    padding: 7px 18px;
    border: 1.5px solid #dde6f5;
    border-radius: 30px;
    background: #fff;
    font-size: 13px; font-weight: 600; color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.faq-cat:hover { border-color: #1255a4; color: #1255a4; }
.faq-cat.active { background: #1255a4; border-color: #1255a4; color: #fff; }

/* ===== 검색 ===== */
.faq-search-wrap {
    position: relative; margin-bottom: 24px;
}
.faq-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1.5px solid #dde6f5;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: 'Paperozi', sans-serif;
}
.faq-search-input:focus { border-color: #1255a4; }
.faq-search-wrap svg {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    width: 17px; height: 17px; pointer-events: none;
}

/* ===== FAQ 아이템 ===== */
.faq-list {
    border: 1.5px solid #e4eaf5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}
.faq-item { border-bottom: 1px solid #f0f4fb; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
    width: 100%; display: flex; align-items: center;
    gap: 12px; padding: 16px 20px;
    background: none; border: none; cursor: pointer;
    text-align: left; transition: background 0.15s;
}
.faq-q:hover { background: #f8fafd; }

/* 카테고리 배지 */
.faq-cat-badge {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 4px;
    white-space: nowrap; flex-shrink: 0;
}
.faq-cat-badge.booking { background: #e8f0fe; color: #1255a4; }
.faq-cat-badge.cancel  { background: #fff0f0; color: #e53e3e; }
.faq-cat-badge.ticket  { background: #e8faf0; color: #1a8a4a; }
.faq-cat-badge.member  { background: #fef6e8; color: #c97400; }
.faq-cat-badge.etc     { background: #f0f0f0; color: #666; }

.faq-q-text {
    flex: 1; font-size: 14px; font-weight: 600;
    color: #1a2a4a; line-height: 1.4;
}
.faq-arrow {
    width: 15px; height: 15px; color: #bbb; flex-shrink: 0;
    transition: transform 0.25s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-item.open .faq-q { background: #f5f8ff; }
.faq-item.open .faq-q-text { color: #1255a4; }

/* 답변 */
.faq-a {
    display: none;
    padding: 0 20px 18px 20px;
    font-size: 13.5px; color: #555; line-height: 1.8;
    background: #fafcff;
    border-top: 1px solid #f0f4fb;
}
.faq-a p { margin: 12px 0 0; }
.faq-a ul, .faq-a ol { margin: 10px 0 0; padding-left: 20px; }
.faq-a li { margin-bottom: 5px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

.faq-a-box {
    margin-top: 12px;
    padding: 13px 16px;
    background: #f0f4fb;
    border: 1px solid #dde6f5;
    border-radius: 8px;
    font-size: 13px; color: #444; line-height: 1.8;
}

/* 답변 테이블 */
.faq-a-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; margin-top: 12px;
    border: 1.5px solid #e4eaf5; border-radius: 8px; overflow: hidden;
}
.faq-a-table thead tr { background: #f0f4fb; }
.faq-a-table thead th {
    padding: 9px 14px; text-align: left;
    font-weight: 700; color: #0d1b3e; border-bottom: 1.5px solid #dde6f5;
}
.faq-a-table tbody tr { border-bottom: 1px solid #f0f4fb; }
.faq-a-table tbody tr:last-child { border-bottom: none; }
.faq-a-table tbody td { padding: 9px 14px; color: #555; }
.faq-a-table .red { color: #e53e3e; font-weight: 700; }

/* 검색 없음 */
.faq-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 50px 20px; gap: 14px;
}
.faq-empty svg { width: 48px; height: 48px; }
.faq-empty p { font-size: 14px; color: #bbb; margin: 0; }

/* 글쓰기 버튼 */
.faq-btn-wrap { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.faq-btn-write {
    background: #1255a4; color: #fff;
    font-size: 14px; font-weight: 700;
    padding: 10px 24px; border-radius: 7px;
    text-decoration: none; transition: background 0.2s;
}
.faq-btn-write:hover { background: #0e4491; }

/* ===== 쓰기/수정 폼 ===== */
.faqw-form {
    background: #fff; border: 1.5px solid #e4eaf5;
    border-radius: 16px; overflow: hidden; margin-bottom: 24px;
}
.faqw-row {
    display: flex; align-items: center;
    border-bottom: 1px solid #f0f4fb; min-height: 54px;
}
.faqw-row-top { align-items: flex-start; }
.faqw-label {
    width: 120px; min-width: 120px;
    padding: 14px 16px;
    font-size: 13px; font-weight: 700; color: #555;
    background: #f8fafd; align-self: stretch;
    display: flex; align-items: center;
    border-right: 1px solid #f0f4fb; flex-shrink: 0;
}
.faqw-row-top .faqw-label { align-items: flex-start; padding-top: 16px; }
.faqw-req { color: #1255a4; margin-left: 2px; }
.faqw-input-wrap {
    flex: 1; padding: 10px 14px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.faqw-input, .faqw-select, .faqw-textarea {
    width: 100%; padding: 9px 12px;
    font-size: 14px; color: #1a2a4a;
    border: 1.5px solid #dde6f5; border-radius: 8px;
    outline: none; transition: border-color 0.2s;
    font-family: inherit; box-sizing: border-box; background: #fff;
}
.faqw-input:focus, .faqw-select:focus, .faqw-textarea:focus { border-color: #1255a4; }
.faqw-textarea { resize: vertical; min-height: 200px; line-height: 1.75; }
.faqw-input-sm { width: 100px; }
.faqw-hint { font-size: 12px; color: #bbb; }
.faqw-select {
    width: auto; min-width: 130px; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231255a4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
    padding-right: 30px;
}

/* 라디오 */
.faqw-radio-wrap { display: flex; gap: 20px; }
.faqw-radio {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; font-size: 13px; color: #555; font-weight: 600;
}
.faqw-radio input { display: none; }
.faqw-radio-box {
    width: 18px; height: 18px; border: 1.5px solid #c5d7f5;
    border-radius: 50%; background: #f5f8ff; flex-shrink: 0;
    transition: border-color 0.2s;
}
.faqw-radio input:checked + .faqw-radio-box {
    border-color: #1255a4; background: #1255a4;
    box-shadow: inset 0 0 0 3px #fff;
}

/* 폼 액션 */
.faqw-actions {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px; background: #f8fafd;
    border-top: 1.5px solid #f0f4fb;
}
.faqw-btn-cancel {
    padding: 10px 26px; border-radius: 7px;
    font-size: 14px; font-weight: 700; color: #888;
    border: 1.5px solid #dde6f5; background: #fff;
    text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.faqw-btn-cancel:hover { border-color: #1255a4; color: #1255a4; }
.faqw-btn-submit {
    padding: 10px 30px; border-radius: 7px;
    font-size: 14px; font-weight: 800; color: #fff;
    background: #1255a4; border: none; cursor: pointer;
    transition: background 0.2s;
}
.faqw-btn-submit:hover { background: #0e4491; }
.faqw-btn-delete {
    padding: 10px 20px; border-radius: 7px;
    font-size: 14px; font-weight: 700; color: #e53e3e;
    background: #fff; border: 1.5px solid #fdc5c5; cursor: pointer;
    transition: background 0.2s;
}
.faqw-btn-delete:hover { background: #fff0f0; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .faq-q { padding: 14px 16px; gap: 8px; }
    .faq-q-text { font-size: 13px; }
    .faq-a { padding: 0 16px 16px; }
    .faq-head-title { font-size: 22px; }
    .faqw-label { width: 90px; min-width: 90px; font-size: 12px; padding: 12px 10px; }
    .faqw-actions { flex-direction: column; gap: 10px; align-items: stretch; }
    .faqw-btn-cancel, .faqw-btn-submit { text-align: center; width: 100%; }
}
@media (max-width: 480px) {
    .faq-cat { font-size: 12px; padding: 6px 13px; }
    .faq-cat-badge { font-size: 10px; padding: 2px 7px; }
    .faq-a-table { font-size: 12px; }
    .faq-a-table th, .faq-a-table td { padding: 8px 10px; }
}
