@charset "UTF-8";
/* ***************************************************** */
/* 온라인상담 페이지 */
/* ***************************************************** */
.pg_qna .qna-board {
    box-sizing: border-box;
    padding: 130px 0 120px;
}
.pg_qna .qna-inner {
    box-sizing: border-box;
    width: calc(100% - 100px);
    max-width: 1200px;
    margin: 0 auto;
}
.pg_qna * {
    box-sizing: border-box;
}

/* 타이틀 */
.pg_qna .qna-title {
    margin: 0 0 80px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: #000;
    text-align: center;
}

/* 상단 */
.pg_qna .qna-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 30px;
}
.pg_qna .qna-write-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 26px;
    border-radius: 5px;
    background: #313131;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.pg_qna .qna-write-btn:hover {
    background: #000;
}
.pg_qna .qna-write-btn .ico {
    display: inline-flex;
    width: 20px;
    height: 20px;
}
.pg_qna .qna-write-btn .ico img {
    width: 100%;
    height: 100%;
}

.pg_qna .qna-search {
    position: relative;
    width: 340px;
    max-width: 100%;
}
.pg_qna .qna-search-input {
    width: 100%;
    height: 40px;
    padding: 0 48px 0 18px;
    border: 1px solid #444;
    background: #fff;
    font-size: 15px;
    color: #333;
}

.pg_qna .qna-search-input::placeholder {
    color: #c4c4c4;
}
.pg_qna .qna-search-input:focus {
    outline: none;
    border-color: #262626;
}
.pg_qna .qna-search-input::-webkit-search-decoration,
.pg_qna .qna-search-input::-webkit-search-cancel-button,
.pg_qna .qna-search-input::-webkit-search-results-button,
.pg_qna .qna-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}
.pg_qna .qna-search-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: 0;
    cursor: pointer;
}
.pg_qna .qna-search-btn img {
    width: 22px;
    height: 22px;
}

/* 온라인상담 리스트 */
.pg_qna .qna-list {
    border-top: 2px solid #222222;
}
.pg_qna .qna-head,
.pg_qna .qna-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 140px 100px 140px;
    align-items: center;
}
.pg_qna .qna-head {
    padding: 18px 0;
    border-bottom: 1px solid #222222;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.pg_qna .col-meta {
    display: contents;
}
.pg_qna .qna-row {
    min-height: 80px;
    border-bottom: 1px solid #c4c4c4;
    transition: background 0.15s;
}
.pg_qna .qna-row:hover {
    background: #fafafa;
}
.pg_qna .qna-row .col {
    font-size: 18px;
    color: #222;
    text-align: center;
}

.pg_qna .qna-row .col-subject {
    min-width: 0;
    text-align: left;
    padding-right: 10px;
    align-self: stretch;
}
.pg_qna .col-subject > a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
}
.pg_qna .col-subject .subject-txt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    transition: color 0.15s;
}
.pg_qna .col-subject > a:hover .subject-txt {
    color: #c63c37;
}
.pg_qna .ico-lock {
    display: inline-flex;
    flex-shrink: 0;
    width: 18px;
    height: 20px;
}
.pg_qna .ico-lock img {
    width: 100%;
    height: 100%;
}
.pg_qna .lock-mo {
    display: none;
}

/* 답변상태 배지 */
.pg_qna .qna-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 40px;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
}
.pg_qna .qna-badge.is-wait {
    background: #999999;
}
.pg_qna .qna-badge.is-done {
    background: #c53b47;
}

.pg_qna .qna-empty {
    display: block;
    padding: 80px 0;
    text-align: center;
    color: #999;
    border-bottom: 1px solid #ececec;
}

/* 하단:페이지네이션 + Total */
.pg_qna .qna-foot {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}
.pg_qna .qna-pagi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pg_qna .qna-pagi li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 15px;
    color: #666;
    transition: all 0.15s;
}
.pg_qna .pagi-num a {
    border: 1px solid #777777;
}
.pg_qna .pagi-num a:hover {
    border-color: #c53b47;
    color: #c53b47;
}
.pg_qna .pagi-num.is-active a {
    background: #c53b47;
    border-color: #c53b47;
    color: #fff;
}
.pg_qna .qna-pagi .pagi-arrow a {
    width: 30px;
    height: 40px;
}
.pg_qna .pagi-arrow a img {
    width: 86%;
}
.pg_qna .pagi-arrow.is-disabled a {
    opacity: 0.35;
    pointer-events: none;
}
.pg_qna .qna-total {
    order: -1;
    margin: 0 0 18px;
    text-align: right;
    font-size: 15px;
    color: #444;
}

/* ***************************************************** */
/* 온라인상담 상세 페이지 */
/* ***************************************************** */
/* 비밀글 */
.pg_qna .qna-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 40px;
    text-align: center;
}
.pg_qna .qna-lock[hidden],
.pg_qna .qna-view[hidden] {
    display: none;
}
.pg_qna .qna-lock-ico {
    display: inline-flex;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
}
.pg_qna .qna-lock-ico img {
    width: 100%;
    height: 100%;
}
.pg_qna .qna-lock-desc {
    margin: 0 0 40px;
    font-size: 20px;
    line-height: 1.5;
    color: #222;
}
.pg_qna .qna-lock-form {
    width: 360px;
    max-width: 100%;
}
.pg_qna .qna-lock-input {
    width: 100%;
    height: 40px;
    padding: 0 18px;
    border: 1px solid #444;
    background: #fff;
    font-size: 16px;
    color: #333;
}
.pg_qna .qna-lock-input::placeholder {
    color: #c4c4c4;
}
.pg_qna .qna-lock-input:focus {
    outline: none;
    border-color: #262626;
}
.pg_qna .qna-lock-btn {
    width: 240px;
    max-width: 100%;
    height: 48px;
    margin-top: 30px;
    border: 0;
    border-radius: 4px;
    background: #c53b47;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
}
.pg_qna .qna-lock-btn:hover {
    background: #b32f3b;
}

.pg_qna .qna-lock-input:placeholder-shown + .qna-lock-btn {
    background: #e3e3e3;
    color: #000;
}

/* 상세 본문 */
.pg_qna .qna-view-subject {
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    color: #c53b47;
}
.pg_qna .qna-view-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.pg_qna .qna-view-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #555;
}
.pg_qna .qna-view-meta .meta-item {
    position: relative;
}
.pg_qna .qna-view-meta .meta-item:not(:first-child) {
    padding-left: 10px;
}
.pg_qna .qna-view-meta .meta-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 14px;
    background: #d5d5d5;
    transform: translateY(-50%);
}

/* 문의 / 답변 테이블 */
.pg_qna .qna-view-table {
    border-top: 1px solid #c4c4c4;
}
.pg_qna .qna-view-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    border-bottom: 1px solid #c4c4c4;
}
.pg_qna .qna-view-th {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    background: #f5f5f5;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-align: center;
}
.pg_qna .qna-view-row.is-answer .qna-view-th {
    background: #f0cdcb
}
.pg_qna .qna-view-row.is-answer-form .qna-view-th {
    background: #fff;
}
.pg_qna .qna-view-th .req {
    margin-left: 2px;
    color: #c53b47;
}
.pg_qna .br-m {
    display: none;
}
.pg_qna .qna-view-row.is-answer-form .qna-view-td {
    padding: 16px 0;
}
.pg_qna .qna-view-td {
    padding: 16px 30px;
}
.pg_qna .qna-view-photo {
    margin-bottom: 22px;
}
.pg_qna .qna-view-photo img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
}
.pg_qna .qna-view-cont {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* 관리자 답변작성 폼 */
.pg_qna .qna-answer-form {
    display: flex;
    align-items: stretch;
    gap: 16px;
}
.pg_qna .qna-answer-input {
    flex: 1;
    min-width: 0;
    min-height: 190px;
    padding: 16px;
    border: 1px solid #999;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
}
.pg_qna .qna-answer-input::placeholder {
    color: #c4c4c4;
}
.pg_qna .qna-answer-input:focus {
    outline: none;
    border-color: #262626;
}
.pg_qna .qna-answer-submit {
    flex-shrink: 0;
    width: 150px;
    border: 0;
    border-radius: 5px;
    background: #c53b47;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
}
.pg_qna .qna-answer-submit:hover {
    background: #b32f3b;
}

/* 목록 버튼 */
.pg_qna .qna-view-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}
.pg_qna .qna-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 34px;
    border-radius: 5px;
    background: #313131;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.pg_qna .qna-list-btn:hover {
    background: #000;
}
.pg_qna .qna-list-btn .ico {
    display: inline-flex;
    width: 20px;
    height: 20px;
}
.pg_qna .qna-list-btn .ico img {
    width: 100%;
    height: 100%;
}

/* ***************************************************** */
/* 온라인상담 글쓰기 페이지 */
/* ***************************************************** */
.pg_qna .qna-write-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 80px;
    row-gap: 30px;
}
.pg_qna .qna-field {
    display: flex;
    align-items: center;
    gap: 20px;
}
.pg_qna .field-half {
    grid-column: span 1;
}
.pg_qna .field-full {
    grid-column: 1 / -1;
}
.pg_qna .field-textarea,
.pg_qna .field-file {
    align-items: flex-start;
}
.pg_qna .qna-label {
    flex-shrink: 0;
    width: 72px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #444;
}
.pg_qna .field-textarea .qna-label {
    padding-top: 12px;
}
.pg_qna .field-file .qna-label {
    padding-top: 11px;
}
.pg_qna .qna-label .req {
    margin-left: 1px;
    color: #c53b47;
}

.pg_qna .qna-control {
    flex: 1;
    min-width: 0;
}
.pg_qna .qna-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #444444;
    background: #fff;
    font-size: 16px;
    color: #333;
}
.pg_qna .qna-textarea {
    width: 100%;
    min-height: 460px;
    padding: 14px 16px;
    border: 1px solid #444444;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
}
.pg_qna .qna-input::placeholder,
.pg_qna .qna-textarea::placeholder {
    color: #c4c4c4;
}
.pg_qna .qna-input:focus,
.pg_qna .qna-textarea:focus {
    outline: none;
    border-color: #262626;
}
.pg_qna .field-pw .qna-control {
    flex: none;
    width: calc(50% - 40px - 72px);
}

/* 첨부파일 */
.pg_qna .qna-file-top {
    display: flex;
    align-items: center;
    gap: 20px;
}
.pg_qna .qna-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.pg_qna .qna-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 40px;
    padding: 0 22px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #e3e3e3;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    cursor: pointer;
    transition: background 0.2s;
}
.pg_qna .qna-file-btn:hover {
    background: #e0e0e0;
}
.pg_qna .qna-file-note {
    margin: 0;
    font-size: 15px;
    color: #a0a0a0;
}
.pg_qna .qna-file-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pg_qna .qna-file-item {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.pg_qna .qna-file-thumb {
    display: inline-block;
    width: 220px;
    flex-shrink: 0;
}
.pg_qna .qna-file-thumb img {
    display: block;
    width: 100%;
    height: auto;
}
.pg_qna .qna-file-del {
    border: 0;
    padding: 0;
    background: none;
    font-size: 15px;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* 확인 버튼 */
.pg_qna .qna-write-foot {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}
.pg_qna .qna-write-foot .qna-list-btn {
    width: 240px;
    height: 48px;
    font-size: 18px;
}
.pg_qna .qna-submit-btn {
    width: 240px;
    max-width: 100%;
    height: 48px;
    border: 0;
    border-radius: 5px;
    background: #c53b47;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pg_qna .qna-submit-btn:hover {
    background: #b32f3b;
}

/* 모바일 */
@media screen and (max-width: 768px) {
    /* ***************************************************** */
    /* 온라인상담 페이지 */
    /* ***************************************************** */
    .pg_qna .qna-board {
        padding: 90px 0 70px;
    }
    .pg_qna .qna-inner {
        width: calc(100% - 40px);
    }
    .pg_qna .qna-title {
        margin-bottom: 28px;
        font-size: 28px;
    }

    /* 상단 : 세로 스택 */
    .pg_qna .qna-top {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        margin-bottom: 24px;
    }
    .pg_qna .qna-write-btn {
        width: 70%;
        max-width: 300px;
        height: 46px;
        font-size: 16px;
        margin: 0 auto;
    }
    .pg_qna .qna-write-btn .ico {
        width: 22px;
        height: 22px;
    }
    .pg_qna .qna-search {
        width: 100%;
    }
    .pg_qna .qna-search-input {
        height: 40px;
    }

    /* 리스트 : 헤더 숨김, 카드 레이아웃 */
    .pg_qna .qna-list {
        border-top: 1px solid #1a1a1a;
    }
    .pg_qna .qna-head {
        display: none;
    }
    .pg_qna .col-meta {
        display: flex;
    }
    .pg_qna .qna-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        grid-template-areas:
            "num subject state"
            "num meta    state";
        column-gap: 12px;
        row-gap: 6px;
        padding: 18px 2px;
        align-items: center;
    }
    .pg_qna .qna-row .col-num {
        grid-area: num;
        align-self: center;
        font-size: 15px;
    }
    .pg_qna .qna-row .col-subject {
        grid-area: subject;
        align-self: end;
        padding-right: 0;
    }
    .pg_qna .col-subject > a {
        display: block;
    }
    .pg_qna .col-subject .subject-txt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        overflow: hidden;
        font-size: 15px;
        line-height: 1.4;
    }

    .pg_qna .lock-pc {
        display: none;
    }
    .pg_qna .lock-mo {
        display: inline-flex;
        width: 18px;
        height: 20px;
    }

    /* 메타 : 작성자/작성일 한 줄 */
    .pg_qna .qna-row .col-meta {
        grid-area: meta;
        align-self: start;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #999;
    }
    .pg_qna .qna-row .col-writer,
    .pg_qna .qna-row .col-date {
        font-size: 13px;
        color: #999;
        text-align: left;
    }
    .pg_qna .qna-row .col-writer::before {
        content: "작성자 : ";
    }
    .pg_qna .qna-row .col-date::before {
        content: "|";
        margin-right: 6px;
        color: #d5d5d5;
    }

    /* 상태 영역 : 자물쇠 + 배지 */
    .pg_qna .qna-row .col-state {
        grid-area: state;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
        text-align: right;
    }
    .pg_qna .qna-badge {
        flex-direction: column;
        gap: 0;
        min-width: 0;
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 6px;
        font-size: 14px;
        line-height: 1.25;
    }

    /* 페이지네이션 */
    .pg_qna .qna-foot {
        margin-top: 16px;
    }

    .pg_qna .qna-pagi li a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .pg_qna .qna-pagi .pagi-arrow a {
        width: 26px;
        height: 36px;
    }
    .pg_qna .qna-total {
        margin-bottom: 24px;
        font-size: 13px;
    }

    /* ***************************************************** */
    /* 온라인상담 상세 페이지 */
    /* ***************************************************** */
    /* 잠금화면 */
    .pg_qna .qna-lock {
        padding: 40px 0 20px;
    }
    .pg_qna .qna-lock-ico {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }
    .pg_qna .qna-lock-desc {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .pg_qna .qna-lock-input {
        height: 40px;
        font-size: 15px;
    }
    .pg_qna .qna-lock-btn {
        height: 48px;
        margin-top: 20px;
        font-size: 16px;
    }

    /* 상세 본문 */
    .pg_qna .qna-view-subject {
        margin-bottom: 18px;
        font-size: 20px;
    }
    .pg_qna .qna-view-info {
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }
    .pg_qna .qna-view-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 14px;
    }
    .pg_qna .qna-view-meta .meta-item:not(:first-child) {
        padding-left: 0;
    }
    .pg_qna .qna-view-meta .meta-item:not(:first-child)::before {
        display: none;
    }
    .pg_qna .qna-view-row {
        display: block;
    }
    .pg_qna .qna-view-row.is-answer-form {
        display: flex;
        align-items: flex-start;
    }
    .pg_qna .qna-view-row.is-answer-form .qna-view-th {
        flex-shrink: 0;
        width: 68px;
        align-items: flex-start;
    }
    .pg_qna .qna-view-row.is-answer-form .qna-view-td {
        flex: 1;
        min-width: 0;
    }
    .pg_qna .br-m {
        display: inline;
    }
    .pg_qna .qna-view-th {
        justify-content: flex-start;
        padding: 14px 16px;
        font-size: 16px;
        text-align: left;
    }
    .pg_qna .qna-view-row:not(.is-answer-form) .qna-view-th {
        border-bottom: 1px solid #c4c4c4;
    }
    .pg_qna .qna-view-td {
        padding: 20px 4px;
    }
    .pg_qna .qna-view-photo img {
        max-width: 100%;
    }
    .pg_qna .qna-view-cont {
        font-size: 15px;
    }
    .pg_qna .qna-answer-form {
        flex-direction: column;
        gap: 14px;
    }
    .pg_qna .qna-answer-submit {
        width: 100%;
        height: 48px;
    }
    .pg_qna .qna-view-foot {
        justify-content: center;
        gap: 8px;
        margin: 24px 0 0;
    }
    .pg_qna .qna-list-btn {
        width: 100%;
        max-width: 200px;
        height: 48px;
    }

    /* ***************************************************** */
    /* 온라인상담 글쓰기 페이지 */
    /* ***************************************************** */
    .pg_qna .qna-write-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 22px;
    }
    .pg_qna .qna-field {
        gap: 14px;
    }
    .pg_qna .field-half {
        grid-column: 1 / -1;
    }
    .pg_qna .qna-label {
        width: 56px;
        font-size: 16px;
    }
    .pg_qna .field-textarea .qna-label {
        padding-top: 4px;
    }
    .pg_qna .qna-input {
        height: 46px;
        font-size: 15px;
    }
    .pg_qna .qna-textarea {
        min-height: 420px;
        font-size: 15px;
    }
    .pg_qna .field-pw .qna-control {
        flex: 1;
        width: auto;
    }
    .pg_qna .qna-file-top {
        flex-wrap: wrap;
        gap: 14px;
    }
    .pg_qna .qna-file-btn {
        padding: 0 18px;
        font-size: 14px;
    }
    .pg_qna .qna-file-note {
        flex: 0 0 calc(100% + 70px);
        margin-left: -70px;
        font-size: 14px;
    }
    .pg_qna .qna-file-list {
        margin-top: 20px;
    }
    .pg_qna .qna-file-thumb {
        width: 150px;
    }
    .pg_qna .qna-write-foot {
        gap: 8px;
        margin-top: 40px;
    }
    .pg_qna .qna-write-foot .qna-list-btn,
    .pg_qna .qna-submit-btn {
        flex: 1 1 0;
        width: auto;
        max-width: 240px;
        height: 48px;
        padding: 0;
        font-size: 16px;
    }
}
