/* css/hsj-inquiry.css */


.hsb-actions a {
    border-radius: 0 !important;
    width: 15%;
    color: #fff !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.hsb-actions a:hover {
    background: #1771F8 !important;
    opacity: 0.8;
}

.hsb-status.answered {
    background: #3A3A3A;
    color: #fff;
    padding: 5px !important;
    display: inline !important;
    border-radius: 50px  !important;
        font-size: 14px !important;
}
/* 테이블 스타일 */
.hsj-inquiry-list-wrap .hsj-inquiry-table {
    font-size: 16px;
    color: #1F2328;
    border-color: #E8EAED !important;
}

.hsj-inquiry-table>thead th:nth-child(2),
.hsj-inquiry-table>tbody td:nth-child(2) {
    text-align: left;
}

.hsj-inquiry-table>thead th,
.hsj-inquiry-table>tbody td {
    text-align: center;
}

.hsj-inquiry-table>thead th {
    font-weight: 600;
    background-color: #F6F7F8;
    border-color: #AFB6C0;
}

.hsj-inquiry-table>tbody td {
    font-weight: 400;
    border-color: #E8EAED;
}

.hsj-inquiry-table>tbody tr:first-child td {
    border-bottom-color: #E8EAED;
    border-top-color: #AFB6C0;
}

.hsj-inquiry-table>tbody tr {
    color: #1F2328 !important;
}

.hsj-inquiry-table>tbody tr:hover {
    color: #1771F8 !important;
}

/*간격*/
.hsj-inquiry-table>thead th:first-child {
    width: 10%;
}

.hsj-inquiry-table>thead th:nth-child(2) {
    width: 60%;
}

.hsj-inquiry-table>thead th:nth-child(3), .hsj-inquiry-table>thead th:nth-child(4),.hsj-inquiry-table>thead th:nth-child(5) {
    width: 10%;
}

.hsj-inquiry-list-wrap .hsj-inquiry-table th,
.hsj-inquiry-list-wrap .hsj-inquiry-table td {
    text-align: center;
}

.hsj-inquiry-list-wrap .hsj-inquiry-table th {
    background: #f0f0f0;
    font-weight: 600;
}

.hsj-inquiry-list-wrap .hsj-inquiry-table tr:nth-child(even) {
    background: #ffffff;
}

.hsj-inquiry-list-wrap .hsj-inquiry-table tr:nth-child(odd) {
    background: #fafafa;
}

.hsj-inquiry-list-wrap .hsj-inquiry-table a {
    color: #0073aa;
    text-decoration: none;
}

.hsj-inquiry-list-wrap .hsj-inquiry-table a:hover {
    text-decoration: underline;
}

/* 상태 배지 */
.hsj-inquiry-list-wrap .hsj-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}



.hsj-inquiry-list-wrap .hsj-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* 버튼 */
.hsj-write-button .button,
.hsj-form-wrap .button,
.hsj-view-wrap .button,
.hsj-edit-wrap .button,
.hsj-reply-wrap .button {
    display: inline-block;
    padding: 12px 70px;
    background: #1771F8;
    color: #fff !important;
    text-decoration: none;
    border: solid 1px #1771F8;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
    line-height: 24px;
        font-weight: 500;
}

.hsj-view-wrap .button2 {
    padding: 12px 80px;
    background: #fff;
    text-decoration: none;
    color: #1F2328 !important;
    border: 1px solid #CCD0D7;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
    line-height: 24px;
}

.hsj-write-button .button:hover,
.hsj-form-wrap .button:hover,
.hsj-view-wrap .button:hover,
.hsj-edit-wrap .button:hover,
.hsj-reply-wrap .button:hover {
    opacity: 0.8;
    background: #1771F8;
    border: solid 1px #1771F8;
}

/* 폼 요소 */

.hsj-form-wrap, .hsj-edit-wrap {
    font-size: 16px;
    line-height: 24px;
    color: #1F2328
}

.hsj-form-wrap form>div, .hsj-edit-wrap form>div {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    border-bottom: 1px solid #E8EAED;
}

.hsj-form-wrap form label, .hsj-edit-wrap form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    width: 220px;
      font-size: 16px;
    line-height: 24px;
    color:#1f2328;
}

.hsj-form-wrap form .wp-editor-wrap, .hsj-edit-wrap form .wp-editor-wrap {
    width: 100%;
    box-sizing: border-box;
}

.hsj-form-wrap .hjs-input, .hsj-edit-wrap #hsj_title {
    border: 1px solid #CCD0D7;
    border-radius: 0px;
    background-color: white;
    font-size: 16px !important;
    width: 30%;
    font-weight: 400;
    line-height: 24px !important;
    padding: 12px 16px;
    margin-bottom: 20px !important;
    color: #1F2328;
}

.hsj-form-wrap .hjs-input::placeholder {
    color: #768293;
    opacity: 1;
}

#hsj_captcha_input {
    width: 405px;
}

.hsj-form-wrap form .wp-editor-wrap {
    margin-top: 5px;
}

#hsj-editor iframe {
    height: 300px !important;
}

#hsj-editor {
    width: 80%;
    margin-bottom: 20px;
}

.warning-text {
    display: flex;
    align-items: center;
    gap: 20px;
}

.warning-text p {
    display: flex;
    align-items: center;
}

.warning-text p b {
background: black;
    color: white;
    padding: 0px 9px;
    border-radius: 56px;
    margin-right: 8px;
    font-size: 14px;
}

.warning-text p span {
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
}


/* 보안문자 */
.hsj-form-wrap .hsj-captcha-code {
    display: inline-block;
    padding: 6px 12px;
    background: #333;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    border-radius: 0px;
    margin-bottom: 5px;
}

/* 라디오 버튼 */
.hsj-form-wrap form input[type="radio"] {
    margin-right: 5px;
}

.hsj-agree {
    display: flex;
    flex-direction: column;
    width: 80%;
}

.hsj-agree-actions {
    display: flex;
    gap: 20px;
    justify-content: start;
    margin: 20px 0px 32px 0px;
}

.hsj-agree-actions div {
    display: flex;
}

.hsj-agree label {
    width: 90px !important;
}

/* 페이징 */
.hsj-pagination {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hsj-pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
}

.hsj-pagination li {
    display: flex;
    margin: 4px;
}

.hsj-pagination a.page-numbers,
.hsj-pagination span.page-numbers {
    display: inline-block;
    text-decoration: none;
    color: #1F2328;
    font-size: 14px;
    font-weight: 500;
    padding: 0px 20px;
    border: solid 1px #E8EAED;
}

.hsj-pagination .current {
    background-color: #1F2328;
    color: #fff !important;
    border-color: #1F2328 !important;
}

.hsj-write-button {
display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 12px;
}

.hsj-write-button a {
    border-radius: 0 !important;
    text-align: center;
    padding: 12px 80px !important;
}

.hsj-write-button a:hover {
    background-color: #1771F8 !important;
    color: white !important;
    opacity: 0.9;
}

/* 관리자 답변 */
.hsj-view-wrap .hsj-admin-reply {
    display: flex;
    flex-direction: column;
    color: #1F2328;
}

.hsj-view-wrap .hsj-admin-reply strong {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 24px;
}

.hsj-view-wrap .hsj-admin-reply img {
    width: 24px;
    height: 24px;
}

.hsj-view-wrap .hsj-admin-reply div {
    padding: 24px 20px;
    background-color: #F6F7F8;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

/* 액션 버튼 그룹 */
.hsj-view-wrap .hsj-actions {
    margin-top: 20px;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hsj-box {
    display: flex;
}
.hsj-view-wrap .hsj-actions .button {
    margin-left: 10px;
}

.faq-form-actions {
    display: flex;
    gap: 12px;
    border-bottom: 0 !important;
    justify-content: center;
    margin-top: 60px;
}

#faq-back-list {
    border: solid 1px #CCD0D7;
    background-color: #ffffff !important;
    color: #1F2328 !important;
}
#faq-back-list:hover {
    border: solid 1px #1771F8;
}

.hsj-reply-wrap .button:hover {
    opacity: 0.8;
    background: #fff;
    border: solid 1px #1771F8;
}

.hsj-view-wrap {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.hsj-title {
    font-size: 28px;
    line-height: 34px !important;
    color: #1F2328;
    font-weight: 700;
    margin-bottom: 0px;
}

.hsj-meta {
    font-size: 16px;
    line-height: 24px;
    color: #768293;
    margin-bottom: 0px;
    font-weight: 400;
    margin-top: 8px;
    padding-bottom: 30px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hsj-meta span:nth-child(2) {
    color: #E8EAED;
}

.hsj-replied {
    font-size: 14px;
    line-height: 22px;
    color: #fff;
    font-weight: 500;
    background-color: #3A3A3A;
    border-radius: 20px;
    padding: 0px 8px;
}

.hsj-divider {
    border-top: 1px solid #E8EAED;
    margin: 24px 0;
}

.hsj-content {
    border-top: solid 1px #AFB6C0;
    border-bottom: solid 1px #E8EAED;
    padding: 30px 0;
}

.hsj-content p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #1F2328;
}


/* 비밀번호 입력 폼 */
.hsj-password-form,
.hsj-actions form {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hsj-input,
.hsj-input-inline {
    padding: 10px;
    border: 1px solid #CCD0D7;
    border-radius: 4px;
    font-size: 14px;
}

.hsj-label {
    margin-right: 8px;
}

.hsj-password-note {
    font-size: 12px;
    color: #768293;
}

/* 버튼 스타일 */
.hsj-actions button {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
}

.hsj-btn-primary {
    background-color: #1771F8;
    color: #fff;
    border: none;
}

.hsj-btn-outline {
    background-color: transparent;
    color: #1F2328;
    border: 1px solid #CCD0D7;
}

.hsj-btn-confirm {
    background-color: #1771F8;
    color: #fff;
    border: none;
}

/* 비밀번호 보호 영역 */
.hsj-protected-wrap {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hsj-protected-icon {
    display: flex;
    justify-content: center;
    width: 80px;
    margin: 0 auto;
    border-radius: 50px;

}

.hsj-protected-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
    color: #1F2328;
    margin-top: 32px;
    margin-bottom: 20px;
}

.hsj-protected-desc {
    font-size: 16px;
    font-weight: 500;
    color: #1F2328;
    margin-bottom: 56px;
    line-height: 24px;
}

.hsj-protected-error {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.hsj-protected-form {
    margin: 0 auto;
    width: 800px;
}

.hsj-protected-input {
    background: #fff !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
    width: 50% !important;
    border-radius: 0 !important;
    padding: 10px !important;
}

.hsj-protected-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 50%;
    margin: 10px auto;
}

.hsj-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    width: 50%;
    border-radius: 0px;
}

.hsj-btn-primary {
    background: #3366ff;
    color: #fff;
    border: 1px solid #3366ff;
}

.hsj-btn-primary:hover {
    background: #2547cc;
    border-color: #2547cc;
}

.hsj-btn-secondary {
    background: #fff;
    color: #1F2328;
    border: 1px solid #ccd0d7;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.hsj-btn-secondary:hover {
    background: #f7f7f7;
    color: #1F2328;
}

/* ===== View: 수정/삭제 입력 & 버튼 영역 ===== */
.hsj-view-wrap .hsj-action-row { margin-top: 32px; }

/* 라벨-인풋 행 */
.hsj-view-wrap .hsj-field {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  column-gap: 24px;
  row-gap: 8px;
  text-align: left;
}
.hsj-view-wrap .hsj-field-label {
  font-weight: 600;
  color: #1F2328;
  line-height: 24px;
  padding-top: 8px;    
  font-size: 16px;
}
.hsj-view-wrap .hsj-field-input { max-width: 560px; }

.hsj-view-wrap .hsj-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px !important;
  line-height: 24px !important;
  border: 1px solid #ccd0d7;
  border-radius: 0px;
  background: #fff;
  box-sizing: border-box;
}
.hsj-view-wrap .hsj-input::placeholder { color:#768293; }

/* 도움문구 (아이콘 + 텍스트) */
.hsj-view-wrap .hsj-help {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1F2328;
  font-size: 16px;
}
.hsj-view-wrap .hsj-help-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: 2px solid #1F2328;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  line-height: 1; color: #1F2328;
}

/* 구분선 */
.hsj-view-wrap .hsj-divider {
  margin: 28px 0;
  border-top: 1px solid #E6E8EB;
}

/* 하단 버튼들 */
.hsj-view-wrap .hsj-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;    /* 좌/중/우 3등분 */
  gap: 16px;
  align-items: center;
}
.hsj-view-wrap .hsj-btn-group-right {
  grid-column: 3 / 4;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.hsj-view-wrap .hsj-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  font-size: 16px;
  line-height: 24px;
  border-radius: 0px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.hsj-view-wrap .hsj-btn-wide { min-width: 240px; }

/* 스타일 변형 */
.hsj-view-wrap .hsj-btn-primary {
  background: #1967FF; color: #fff; border: 1px solid #1967FF;
}
.hsj-view-wrap .hsj-btn-primary:hover { background:#1250C4; border-color:#1250C4; }

.hsj-view-wrap .hsj-btn-outline {
  background:#fff; color:#1F2328; border:1px solid #CCD0D7;
}
.hsj-view-wrap .hsj-btn-outline:hover { background:#F7F8FA; }

.hsj-view-wrap .hsj-btn-secondary {
  background:#fff; color:#1F2328; border:1px solid #CCD0D7;
  justify-self: start;              /* 왼쪽 그리드 칸의 왼쪽 정렬 */
}
.hsj-view-wrap .hsj-btn-secondary:hover { background:#F7F8FA; }

/* 에러 텍스트(있을 경우) */
.hsj-view-wrap .hsj-error { color:#D32F2F; margin-top:10px; }

.hsj-privacy {
    border: 1px solid #CCD0D7;
    padding: 14px;
    max-height: 160px;
    overflow: auto;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1f2328;
    background: #F6F7F8;;
}
.hsj-btn-secondary {
    background: #3366ff !important;
}
/* 반응형 */
@media (max-width: 768px) {
  .hsj-view-wrap .hsj-field { grid-template-columns: 1fr; }
  .hsj-view-wrap .hsj-action-buttons {
    grid-template-columns: 1fr; gap: 12px;
  }
  .hsj-view-wrap .hsj-btn-group-right {
    grid-column: auto; justify-content: stretch;
  }
  .hsj-view-wrap .hsj-btn-wide { min-width: 100%; }
}

/* 반응형 */
@media (max-width: 1024px) {

    .warning-text {
        flex-direction: column;
        gap: 0px;
        align-items: start;
    }

    #hsj_captcha_input {
        margin-bottom: 10px !important;
    }

    .hsj-inquiry-table>thead th:nth-child(2) {
        width: 40%;
    }
}

@media (max-width: 768px) {

    .hsj-form-wrap form>div {
        flex-direction: column;
        align-items: start;
    }

    .hsj-form-wrap .hjs-input,
    #hsj-editor,
    #hsj_captcha_input,
    .faq-form-actions .button,
    .hsj-secret {
        width: 100%;
    }

    .hsj-agree-actions {
        flex-direction: column;
        gap: 10px;
        margin: 0px 0 32px 0;
    }

    .faq-form-actions {
        margin-top: 40px;
    }

    .hsj-view-wrap {
        padding: 20px 10px;
    }

    .hsj-actions,.hsj-box {
        gap: 10px;
        flex-direction: column;
        width: 100%;
    }
    .hsj-view-wrap .button2 {
        width: 100%;
    }
    .hsj-view-wrap .hsj-actions .button {
        margin-left: 0px;
    }

    .hsj-protected-form {
        width: 100%;
    }

    .hsj-protected-desc {
        margin-bottom: 40px;
    }

    .hsj-protected-input {
        width: 100% !important;
    }

    .hsj-protected-actions {
        width: 100% !important;
        flex-direction: column;
    }

    .hsj-btn {
        width: 100% !important;
    }
    .hsj-agree-actions {
        margin-top: 20px;
    }
    .hsj-agree-actions p {
        margin-bottom: 0px;
    }
    .hsj-protected-title {
        font-size: 22px;
        line-height: 26px;

    }
    .hsj-agree {
        width: 100%;
    }
    .hsj-inquiry-table>thead th:nth-child(2) {
        width: 60%;
    }
    .hsb-actions a {
        width: 30%;

    }

}