/* =============================================
   Contact Board Skin - style.css
   ============================================= */

/* ---- 공통 ---- */
#bo_contact,
#bo_contact_list,
#bo_contact_view {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Noto Sans KR', '맑은 고딕', sans-serif;
    color: #333;
}

/* ---- 문의하기 폼 ---- */
.contact_title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 2px solid #222;
}

.contact_desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
}

.contact_form_wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact_label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

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

.contact_input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.contact_input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.08);
}

.contact_input::placeholder {
    color: #aaa;
}

.contact_textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
    min-height: 140px;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
}

.contact_textarea:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.08);
}

.contact_textarea::placeholder {
    color: #aaa;
}

/* ---- 문의유형 라디오 ---- */
.contact_radio_group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact_radio_label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    transition: all 0.2s;
    user-select: none;
}

.contact_radio_label:hover {
    border-color: #1976d2;
    background: #f0f6ff;
}

.contact_radio_label input[type="radio"] {
    display: none;
}

.contact_radio_label:has(input[type="radio"]:checked) {
    border-color: #1976d2;
    background: #1976d2;
    color: #fff;
    font-weight: 600;
}

/* ---- 개인정보동의 ---- */
.contact_privacy {
    gap: 12px;
}

.privacy_box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.privacy_title {
    font-size: 13px;
    font-weight: 700;
    background: #f5f5f5;
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    color: #444;
}

.privacy_content {
    padding: 14px 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

.privacy_content p {
    margin: 0 0 10px 0;
}

.privacy_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 10px 0;
}

.privacy_table th,
.privacy_table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
}

.privacy_table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.privacy_note {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0 0 !important;
}

.contact_checkbox_label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.contact_checkbox_label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1976d2;
}

/* ---- 제출 버튼 ---- */
.contact_submit_wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.contact_btn_submit {
    display: inline-block;
    padding: 14px 60px;
    background: #1976d2;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.contact_btn_submit:hover {
    background: #1565c0;
}

/* ---- 목록 스킨 ---- */
.contact_list_title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #222;
}

.contact_search_wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.contact_search_select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.contact_search_input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.contact_search_input:focus {
    border-color: #1976d2;
}

.contact_btn_search {
    padding: 8px 20px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact_btn_search:hover {
    background: #333;
}

.contact_list_info {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.contact_list_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-top: 2px solid #333;
}

.contact_list_table th {
    background: #f5f5f5;
    padding: 12px 10px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
    text-align: center;
    white-space: nowrap;
}

.contact_list_table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    text-align: center;
}

.contact_list_table td.td_subject {
    text-align: left;
}

.contact_list_row:hover {
    background: #f9f9f9;
}

.contact_list_link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.contact_list_link:hover {
    color: #1976d2;
    text-decoration: underline;
}

.inquiry_badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.inquiry_badge_lg {
    font-size: 14px;
    padding: 5px 14px;
}

.contact_no_data {
    padding: 40px;
    color: #888;
    font-size: 15px;
}

.contact_paging {
    margin-top: 20px;
    text-align: center;
}

.contact_admin_btn {
    margin-top: 16px;
    text-align: right;
}

.btn_admin_back {
    display: inline-block;
    padding: 8px 16px;
    background: #757575;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
}

.btn_admin_back:hover {
    background: #555;
}

/* ---- 상세보기 스킨 ---- */
.contact_view_header {
    border-bottom: 2px solid #222;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.contact_view_title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.contact_view_meta {
    font-size: 13px;
    color: #888;
    display: flex;
    gap: 20px;
}

.meta_item strong {
    color: #555;
    margin-right: 4px;
}

.contact_view_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 28px;
    border-top: 1px solid #ddd;
}

.contact_view_table th {
    background: #f9f9f9;
    padding: 14px 16px;
    font-weight: 600;
    color: #444;
    width: 110px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    white-space: nowrap;
    vertical-align: middle;
}

.contact_view_table td {
    padding: 14px 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.contact_view_table td a {
    color: #1976d2;
    text-decoration: none;
}

.contact_view_table td a:hover {
    text-decoration: underline;
}

.contact_view_content {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
}

.contact_view_content_title {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    background: #f0f0f0;
    padding: 10px 18px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.contact_view_content_body {
    padding: 20px 18px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    min-height: 120px;
    /*white-space: pre-wrap;*/
    word-break: break-all;
}

.contact_view_btn_wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact_btn_list {
    display: inline-block;
    padding: 10px 28px;
    background: #555;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.contact_btn_list:hover {
    background: #333;
}

.contact_btn_delete {
    display: inline-block;
    padding: 10px 28px;
    background: #e53935;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.contact_btn_delete:hover {
    background: #c62828;
}

/* ---- 반응형 ---- */

@media (max-width: 1024px) {
	#bo_contact,
	#bo_contact_list,
	#bo_contact_view { max-width:100%; padding:0 40px;}
}

@media (max-width: 768px) {
	#bo_contact,
	#bo_contact_list,
	#bo_contact_view { max-width:100%; padding:0 20px;}
}

@media (max-width: 640px) {
    #bo_contact,
    #bo_contact_list,
    #bo_contact_view {
        padding: 0 12px;
        margin: 20px auto;
    }

    .contact_radio_group {
        gap: 8px;
    }

    .contact_radio_label {
        padding: 6px 12px;
        font-size: 13px;
    }

    .contact_list_table {
        font-size: 12px;
    }

    .contact_list_table th,
    .contact_list_table td {
        padding: 8px 6px;
    }

    .contact_search_wrap {
        flex-wrap: wrap;
    }

    .contact_search_select {
        width: 100%;
    }

    .contact_search_input {
        flex: unset;
        width: 100%;
    }

    .contact_btn_search {
        width: 100%;
    }

    .contact_view_table th,
    .contact_view_table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .contact_view_table th {
        background: #f5f5f5;
        border-bottom: none;
        padding-bottom: 4px;
    }

    .contact_view_meta {
        flex-direction: column;
        gap: 4px;
    }
}

