/* ════════════════════════════════════════════
   온라인 상담 / 문의 조회 (모바일 우선 · 360px~1280px)
   ════════════════════════════════════════════ */

/* ── 서브 타이틀 ─────────────────────────── */
.inquiry-sub-title {
    padding: 32px 16px 24px;
    text-align: center;
    background: #faf8f6;
    border-bottom: 1px solid #ede5e0;
}

.inquiry-sub-title p {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #b5837c;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.inquiry-sub-title h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin: 0;
}

/* ── 레이아웃 ────────────────────────────── */
#inquiry-main,
#inquiry-view-main {
    padding: 28px 16px 56px;
    background: #fff;
}

.inquiry-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* ── 안내 배너 ───────────────────────────── */
.inquiry-notice-bar {
    background: #faf8f6;
    border: 1px solid #ede5e0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

.inquiry-notice-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inquiry-notice-bar li {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
}

.inquiry-notice-bar li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #b5837c;
    font-weight: 700;
}

.inquiry-notice-bar strong {
    color: #3d2e2a;
    font-weight: 700;
}

/* ── 에러 메시지 ─────────────────────────── */
.inquiry-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.inquiry-error svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════
   폼 공통
   ════════════════════════════════════════════ */
.inquiry-form,
.inquiry-view-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inquiry-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inquiry-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

.inquiry-required {
    color: #b5837c;
    margin-left: 2px;
}

.inquiry-optional {
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
    margin-left: 4px;
}

.inquiry-field__desc {
    font-size: 11px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

/* 입력 필드 */
.inquiry-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #faf8f6;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.inquiry-input:focus {
    border-color: #b5837c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(181, 131, 124, 0.1);
}

.inquiry-input::placeholder {
    color: #bbb;
}

/* 텍스트에어리어 */
.inquiry-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #faf8f6;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.inquiry-textarea:focus {
    border-color: #b5837c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(181, 131, 124, 0.1);
}

.inquiry-textarea::placeholder {
    color: #bbb;
}

.inquiry-char-count {
    font-size: 11px;
    color: #aaa;
    text-align: right;
    margin-top: 2px;
}

/* 라디오 그룹 (문의유형) */
.inquiry-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inquiry-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.inquiry-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #b5837c;
    cursor: pointer;
    flex-shrink: 0;
}

.inquiry-radio span {
    font-size: 13px;
    color: #333;
    user-select: none;
    -webkit-user-select: none;
}

/* 비밀번호 + 토글 */
.inquiry-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.inquiry-pw-wrap .inquiry-input {
    padding-right: 44px;
}

.inquiry-pw-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    transition: color 0.2s;
}

.inquiry-pw-toggle:hover {
    color: #b5837c;
}

.inquiry-pw-toggle svg {
    width: 18px;
    height: 18px;
}

/* 개인정보 동의 */
.inquiry-field--agree {
    margin-top: 4px;
}

.inquiry-agree {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.inquiry-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #b5837c;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.inquiry-agree a {
    color: #b5837c;
    font-weight: 600;
    text-decoration: underline;
}

/* ── 제출 버튼 ───────────────────────────── */
.inquiry-submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.inquiry-submit-btn {
    width: 100%;
    padding: 14px 0;
    background: #b5837c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: -0.3px;
    transition: background 0.2s;
}

.inquiry-submit-btn:hover {
    background: #9e6e67;
}

.inquiry-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.inquiry-submit-guide {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* ── 공통 버튼 ───────────────────────────── */
.inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.inquiry-btn--primary {
    background: #b5837c;
    color: #fff;
}

.inquiry-btn--primary:hover {
    background: #9e6e67;
    color: #fff;
}

.inquiry-btn--outline {
    background: #fff;
    color: #3d2e2a;
    border: 1.5px solid #c8b0a8;
}

.inquiry-btn--outline:hover {
    border-color: #b5837c;
    color: #b5837c;
}

/* ════════════════════════════════════════════
   접수 완료 화면
   ════════════════════════════════════════════ */
.inquiry-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.inquiry-done__icon {
    width: 64px;
    height: 64px;
    color: #b5837c;
    margin-bottom: 20px;
}

.inquiry-done__icon svg {
    width: 100%;
    height: 100%;
}

.inquiry-done__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: -0.4px;
}

.inquiry-done__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 20px;
}

.inquiry-done__id {
    font-size: 22px;
    color: #b5837c;
    font-weight: 700;
}

.inquiry-done__notice {
    background: #faf8f6;
    border: 1px solid #ede5e0;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: left;
    width: 100%;
    max-width: 480px;
    margin-bottom: 24px;
}

.inquiry-done__notice strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #3d2e2a;
    margin-bottom: 6px;
}

.inquiry-done__notice p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.7;
}

.inquiry-done__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ════════════════════════════════════════════
   문의 조회 폼
   ════════════════════════════════════════════ */
.inquiry-view-form-wrap {
    max-width: 480px;
    margin: 0 auto 40px;
}

.inquiry-view-guide {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

.inquiry-view-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* ════════════════════════════════════════════
   조회 결과
   ════════════════════════════════════════════ */
.inquiry-result {
    border: 1px solid #ede5e0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
}

.inquiry-result__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #faf8f6;
    border-bottom: 1px solid #ede5e0;
}

.inquiry-result__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.3px;
}

.inquiry-result__status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

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

.inquiry-status--replied {
    background: #d1fae5;
    color: #065f46;
}

.inquiry-result__meta {
    margin: 0;
    padding: 0 20px;
    border-bottom: 1px solid #ede5e0;
}

.inquiry-result__meta-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5ede9;
    font-size: 13px;
}

.inquiry-result__meta-row:last-child {
    border-bottom: none;
}

.inquiry-result__meta-row dt {
    flex: 0 0 80px;
    font-weight: 700;
    color: #888;
}

.inquiry-result__meta-row dd {
    margin: 0;
    color: #1a1a1a;
    flex: 1;
}

.inquiry-not-entered {
    color: #bbb;
    font-size: 12px;
}

.inquiry-result__content,
.inquiry-result__reply {
    padding: 20px;
    border-bottom: 1px solid #ede5e0;
}

.inquiry-result__content h3,
.inquiry-result__reply h3 {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inquiry-result__content-body,
.inquiry-result__reply-body {
    font-size: 13px;
    color: #333;
    line-height: 1.8;
    background: #faf8f6;
    border-radius: 8px;
    padding: 14px 16px;
}

.inquiry-result__reply-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #b5837c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inquiry-result__pending {
    padding: 16px 20px;
    font-size: 12px;
    color: #999;
    text-align: center;
    border-bottom: 1px solid #ede5e0;
}

.inquiry-result__footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════
   반응형
   ════════════════════════════════════════════ */
@media (min-width: 480px) {
    .inquiry-sub-title { padding: 36px 20px 28px; }
    .inquiry-sub-title h1 { font-size: 22px; }

    #inquiry-main,
    #inquiry-view-main { padding: 36px 20px 64px; }

    .inquiry-submit-btn { width: auto; min-width: 240px; }
}

@media (min-width: 768px) {
    .inquiry-sub-title { padding: 48px 20px 32px; }
    .inquiry-sub-title h1 { font-size: 26px; }

    #inquiry-main,
    #inquiry-view-main { padding: 48px 20px 72px; }

    .inquiry-notice-bar li { font-size: 13px; }
    .inquiry-label { font-size: 14px; }
    .inquiry-input,
    .inquiry-textarea { font-size: 14px; }
}

@media (max-width: 479px) {
    .inquiry-view-fields {
        grid-template-columns: 1fr;
    }

    .inquiry-done__btns {
        flex-direction: column;
        width: 100%;
    }

    .inquiry-btn {
        width: 100%;
    }

    .inquiry-result__footer {
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .inquiry-radio-group {
        flex-direction: column;
    }
}

/* ════════════════════════════════════════════
   문의 게시판 (inquiry-view 목록 상태)
   ════════════════════════════════════════════ */
.inquiry-board-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 검색 폼 */
.inquiry-board-search {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.inquiry-board-search__input {
    width: 120px;
    height: 40px;
    padding: 0 12px;
}

.inquiry-board-search__select {
    width: 140px;
    height: 40px;
    padding: 0 10px;
    cursor: pointer;
}

.inquiry-board-search__btn {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
}

.inquiry-board-search__date {
    width: 140px;
    height: 40px;
    padding: 0 10px;
    cursor: pointer;
}

.inquiry-board-search__dash {
    color: #aaa;
    font-size: 13px;
    flex-shrink: 0;
}

/* 테이블 래퍼 (모바일 스크롤) */
.inquiry-board-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ede5e0;
    border-radius: 10px;
}

/* 테이블 */
.inquiry-board-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 13px;
}

.inquiry-board-table thead th {
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: #888;
    background: #faf8f6;
    border-bottom: 1px solid #ede5e0;
    white-space: nowrap;
}

.inquiry-board-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #f5ede9;
    color: #333;
    vertical-align: middle;
}

.inquiry-board-table tbody tr:last-child td {
    border-bottom: none;
}

.inquiry-board-table tbody tr:hover {
    background: #fdf9f8;
}

.col-id     { width: 56px;  text-align: center; }
.col-type   { width: 100px; }
.col-name   { width: 72px;  }
.col-status { width: 88px;  }
.col-date   { width: 96px;  color: #888; font-size: 12px; }
.col-action { width: 56px;  text-align: center; }

/* 조회 버튼 */
.inquiry-board-view-btn {
    display: inline-block;
    padding: 4px 12px;
    background: #b5837c;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.inquiry-board-view-btn:hover {
    background: #9e6e67;
    color: #fff;
}

/* 빈 상태 */
.inquiry-board-empty {
    text-align: center;
    padding: 48px 20px;
    color: #bbb;
    font-size: 13px;
}

/* 페이지네이션 */
.inquiry-board-paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.inquiry-board-paging .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.inquiry-board-paging .page-numbers.current {
    background: #b5837c;
    color: #fff;
    border-color: #b5837c;
}

.inquiry-board-paging .page-numbers:hover:not(.current) {
    border-color: #b5837c;
    color: #b5837c;
}

/* 목록으로 돌아가기 */
.inquiry-board-back {
    display: inline-block;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.inquiry-board-back:hover {
    color: #b5837c;
}

/* 새 상태값 배지 */
.inquiry-status--contacted {
    background: #dbeafe;
    color: #1e40af;
}

.inquiry-status--absent {
    background: #fee2e2;
    color: #991b1b;
}

@media (min-width: 480px) {
    .inquiry-board-wrap { padding: 0 20px; }
}
