/* Contact Us Page Styles */
@charset "UTF-8";

/* ë°˜ì‘í˜• CSS Import */
@import url("../../../css/responsive.css");

/* Contact Page Layout */
.contact-page {
    margin: 0 auto;
    padding: 0 6.25rem;
}

/* Main Content */
#bo_list,#bo_v{
    padding-top:10rem;
    padding-bottom: 5rem;
}
.contact-main {
    padding: 200px 0 150px 0;
    border-bottom: 1px solid #000;
}

/* Introduction Section */
.contact-intro {
    text-align: left;
    margin-bottom: 60px;
    padding: 1rem 2.25rem;
}

.contact-slogan {
    font-size: 5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;    
}

.contact-description {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 70px;
    letter-spacing: -.5px;
    line-height: 1;
}

.contact-separator {
    width: 100%;
    height: 1px;
    background-color: #000;
}

/* Contact Form */
.contact-form {
    max-width: 1150px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 30px;
}

.form-row.single .form-group {
    width: 100%;
}

.form-row.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.form-label {
    font-size: 1rem;
    font-weight: 700;
    min-width: 140px;
    color: #000;
    margin-bottom: 8px;
    /* text-transform: lowercase; */
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: transparent;
    border: 1px solid #ccc;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

/* File Upload */
.file-upload-area {
    position: relative;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* background-color: #fff; */
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload-area:hover {
    border-color: #000;
}

.form-file {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.file-text {
    color: #999;
    font-size: 14px;
}

.file-select-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

/* Captcha */
.captcha-group {
    gap: 20px;
}

.captcha-container {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    flex-direction: column;
}

.captcha-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
    min-width: 120px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-image img {
    display: block;
    width: 120px;
    height: 48px;
    border: none;
}

.captcha-image img[src=""] {
    background-color: #f0f0f0;
}

.captcha-image:empty::before {
    content: "Loading...";
    color: #999;
    font-size: 12px;
}

.captcha-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-input {
    /* width: 100px; */
    text-align: center;
}

.captcha-btn {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #b9b9b9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 11px;
}

.captcha-btn:hover {
    border-color: #000;
    background-color: #f5f5f5;
}

.captcha-btn .icon-audio,
.captcha-btn .icon-refresh {
    font-size: 14px;
    color: #666;
    display: inline-block;
}

.captcha-help {
    font-size: 12px;
    color: #000;
    margin-top: 5px;
}

/* Privacy Policy */
.privacy-policy {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    /* background-color: #f9f9f9; */
}

.privacy-content {
    padding: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.privacy-content p {
    margin-bottom: 10px;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-content li {
    margin-bottom: 5px;
}

.privacy-content strong {
    color: #000;
}

/* Consent Checkbox */
.consent-checkbox {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
}

.consent-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.consent-checkbox input[type="checkbox"]:checked + label .checkbox-custom {
    background-color: #000;
    border-color: #000;
}

.consent-checkbox input[type="checkbox"]:checked + label .checkbox-custom::after {
    content: 'V';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.consent-label {
    font-size: 14px;
    width: 100%;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: center;
    gap: 0px;
    margin-top: 40px;
    align-content: space-around;
    flex-direction: row;
}

.btn-cancel, .btn-submit{
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-cancel {
    background-color: #9a9898;
    color: #fff;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-submit {
    background-color: #000;
    color: #fff;
}

.btn-submit:hover {
    background-color: #333;
}

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

/* Footer */
.sitefooter{
    /* border-top:1px solid #000; */
}
.contact-footer {
    margin-top: 80px;
    padding: 40px 0;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    flex: 1;
}

.social-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.social-link:hover {
    color: #000;
}

.footer-center {
    flex: 2;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.sitefooter__cta{
    display:none;
}

/* PC-only line break */
.pc-only {
    display: inline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .contact-main {
        padding: 80px 0;
    }
        
    .contact-intro{
        padding: 1rem 0;
        margin-bottom: 20px;
    }
    
    .contact-page {
        padding: 0 15px;
    }
    
    .contact-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .contact-nav {
        gap: 20px;
    }
    
    .contact-slogan {
        font-size: 32px;
    }
    
    .contact-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .form-group {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }
    
    .form-row.double {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        margin-bottom: 20px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .captcha-input {
        width: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        flex: none;
        text-align: center;
    }
    
    .button-group {
        align-items: flex-start;
        flex-direction: row;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-main {
        padding: 75px 0 35px;
    }
    .contact-slogan {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .contact-description {
        font-size: 14px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .privacy-content {
        padding: 15px;
        font-size: 12px;
    }
}

/* Form Validation Styles */
.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
    /* border-color: #e74c3c; */
}

.form-input:valid,
.form-select:valid,
.form-textarea:valid {
    border-color: #ccc;
}

/* Loading State */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.btn:focus,
.nav-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Contact List Styles */
#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

#bo_list_total {
    display: flex;
    gap: 20px;
    align-items: center;
}

#bo_list_total span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.btn_bo_user {
    display: flex;
    gap: 10px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-admin-menu {
    position: relative;
}

.admin-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    min-width: 150px;
}

.admin-dropdown li {
    list-style: none;
}

.admin-dropdown button,
.admin-dropdown a {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    border: none;
    background: none;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.admin-dropdown button:hover,
.admin-dropdown a:hover {
    background-color: #f5f5f5;
}

/* Contact Table Styles */
.tbl_head01 {
    margin-bottom: 40px;
}

.tbl_head01 table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 20px;
}
.tbl_head01 table caption{
    display:none;
}
.tbl_head01 th {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    font-weight: 600;
    color: #333;
    text-align: center;
}
.tbl_head01 th.all_chk{
    width:50px;
}

.tbl_head01 td {
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    vertical-align: middle;
}

.tbl_head01 tr.even td {
    background-color: #fafafa;
}
.tbl_head01 tr td {
    background-color: #f7fdffab;
}

.tbl_head01 td.td_chk{
    text-align:center;
}
.tbl_head01 td.td_subject{
    display: flex;
    align-items: center;
}
.tbl_head01 tr:hover td {
    background-color: #b4afaf;
}

.empty_table {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Table Cell Styles */
.td_num2 {
    text-align: center;
    width: 60px;
    font-weight: 600;
}

.td_subject {
    text-align: left;
}

.td_subject .bo_cate_link {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 10px;
    margin-right: 8px;
    text-decoration: none;
}

.td_subject .bo_tit {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.td_subject .bo_tit a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.td_subject .bo_tit a:hover {
    color: #000;
    text-decoration: underline;
}

.td_name {
    text-align: center;
    width: 100px;
}

.td_num {
    text-align: center;
    width: 60px;
}

.td_datetime {
    text-align: center;
    width: 100px;
    font-size: 16px;
    color: #666;
}

.new_icon {
    display: inline-block;
    background: #ff4444;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.notice_icon {
    color: #ff4444;
    font-weight: bold;
}

.bo_current {
    color: #007cba;
    font-weight: bold;
}

.contact-inquiry-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.contact-inquiry-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #000;
}

.contact-inquiry-item.even {
    background: #fafafa;
}

.inquiry-checkbox {
    flex-shrink: 0;
    padding-top: 5px;
}

.inquiry-checkbox input[type="checkbox"] {
    display: none;
}

.inquiry-checkbox label {
    cursor: pointer;
    display: block;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.inquiry-checkbox input[type="checkbox"]:checked + label .checkmark {
    background-color: #000;
    border-color: #000;
}

.inquiry-checkbox input[type="checkbox"]:checked + label .checkmark::after {
    content: 'âœ“';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.inquiry-header {
    flex: 1;
    margin-bottom: 15px;
}

.inquiry-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.inquiry-category {
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.inquiry-date {
    font-size: 12px;
    color: #999;
}

.inquiry-new {
    background: #ff4444;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.inquiry-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.inquiry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.inquiry-title a:hover {
    color: #000;
}

.inquiry-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.inquiry-info {
    flex: 1;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 14px;
}

.inquiry-actions {
    flex-shrink: 0;
}

/* Contact View Styles */
#bo_v_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.bo_v_nb {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bo_v_com {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bo_v_info {
    margin-bottom: 30px;
}

#bo_v_title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.bo_v_cate {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
}

/* Contact Information Section */
.contact-info-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #000;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.info-item .info-label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
    font-size: 14px;
}

.info-item .info-value {
    color: #333;
    font-size: 14px;
}

.email-link,
.phone-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover,
.phone-link:hover {
    text-decoration: underline;
}

/* Inquiry Content Section */
.inquiry-content-section {
    margin-bottom: 40px;
}

#bo_v_con {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    line-height: 1.6;
    font-size: 15px;
    min-height: 200px;
}

/* Attachments */
.attachment-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #000;
}

.attachment-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

.attachment-section .section-title i {
    color: #000;
    font-size: 16px;
}

.attachment-container {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.attachment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.attachment-item:last-child {
    border-bottom: none;
}

.attachment-item:hover {
    background: #f8f9fa;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.attachment-info i {
    color: #666;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.file-size {
    font-weight: 500;
}

.file-extension {
    background: #e0e0e0;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.attachment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-download {
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #000;
}

.btn-download:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-download i {
    font-size: 11px;
}

.download-count {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* 파일 타입별 색상 */
.attachment-pdf i {
    color: #dc3545;
}

.attachment-document i {
    color: #007bff;
}

.attachment-spreadsheet i {
    color: #28a745;
}

.attachment-presentation i {
    color: #fd7e14;
}

.attachment-text i {
    color: #6c757d;
}

.attachment-archive i {
    color: #6f42c1;
}

.attachment-image i {
    color: #20c997;
}

.attachment-video i {
    color: #e83e8c;
}

.attachment-audio i {
    color: #ffc107;
}

/* Legacy attachment styles for compatibility */
#bo_v_file {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #000;
}

.attachment-download {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.attachment-download:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.bo_v_file_cnt {
    margin-left: 10px;
    font-size: 11px;
    color: #999;
}

/* Links */
#bo_v_link {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #000;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.link-item i {
    margin-right: 10px;
    color: #666;
    font-size: 16px;
}

.link-url {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    flex: 1;
}

.link-url:hover {
    text-decoration: underline;
}

.link-hit {
    font-size: 11px;
    color: #999;
    margin-left: 10px;
}

/* Action Buttons */
.contact-view-actions,
.contact-list-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.btn {
    /* padding: 12px 24px; */
    /* border: none; */
    /* border-radius: 4px; */
    /* font-size: 14px; */
    /* font-weight: 500; */
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    justify-content: center;
}

.btn-list {
    background-color: #666;
    color: #fff;
}

.btn-list:hover {
    background-color: #555;
}

.btn-write {
    background-color: #000;
    color: #fff;
}

.btn-write:hover {
    background-color: #333;
}

.btn-view {
    background-color: #000;
    color: #fff;
    font-size: 12px;
    padding: 8px 16px;
}

.btn-view:hover {
    background-color: #333;
}

.btn_bo_user .btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn_bo_user .btn_admin {
    background-color: #f5f5f5;
    color: #333;
}

.btn_bo_user .btn_b01 {
    background-color: #f5f5f5;
    color: #333;
}

.btn_bo_user .btn:hover {
    background-color: #e0e0e0;
    border-color: #000;
}

.btn_bo_user .btn_bo_sch {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
}

.btn_bo_user .btn_more_opt {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
}

.more_opt {
    position: absolute;
    /* top: 0; */
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    min-width: 150px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.more_opt li {
    list-style: none;
}

.more_opt button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    border: none;
    background: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.more_opt button:hover {
    background-color: #f5f5f5;
}

/* View Page Buttons */
.bo_v_nb .btn_b01,
.bo_v_com .btn_b01 {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    background: #f5f5f5;
    color: #333;
}

.bo_v_nb .btn_b01:hover,
.bo_v_com .btn_b01:hover {
    background-color: #e0e0e0;
    border-color: #000;
}

#bo_v_bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

/* Navigation */
.bo_v_nav {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.bo_v_nav_prev,
.bo_v_nav_next {
    display: flex;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: center;
}

.bo_v_nav_prev strong,
.bo_v_nav_next strong {
    display: block;
    font-size: 16px;
    color: #666;
    min-width: 70px;
}

.bo_v_nav_prev a,
.bo_v_nav_next a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.bo_v_nav_prev a:hover,
.bo_v_nav_next a:hover {
    color: #000;
    text-decoration: underline;
}

.bo_v_nav_date {
    font-size: 16px;
    color: #999;
    min-width: 100px;
    text-align: right;
}

/* Good/Nogood */
#bo_v_act {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.bo_v_act_gng {
    display: inline-block;
    margin: 0 10px;
}

.bo_v_good,
.bo_v_nogood {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bo_v_good {
    background: #f8f9fa;
    color: #28a745;
}

.bo_v_good:hover {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.bo_v_nogood {
    background: #f8f9fa;
    color: #dc3545;
}

.bo_v_nogood:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Navigation */
.contact-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.nav-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.nav-title {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.nav-title:hover {
    color: #000;
    text-decoration: underline;
}

.nav-date {
    font-size: 12px;
    color: #999;
}

/* Search */
.contact-search-wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.contact-search {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 400px;
}

.contact-search h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: #333;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pagination */
.contact-pagination {
    text-align: center;
    margin: 40px 0;
}

/* Search Styles */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 400px;
}

.bo_sch h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.sch_bar {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sch_input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.sch_btn {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sch_btn:hover {
    background: #333;
}

.bo_sch_cls {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.bo_sch_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design for List and View */
@media (max-width: 768px) {
    #bo_btn_top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .btn_bo_user {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .tbl_head01 table {
        font-size: 12px;
    }
    
    .tbl_head01 th,
    .tbl_head01 td {
        padding: 8px 4px;
    }
    
    .td_name {
        width: 80px;
    }
    
    .td_num {
        width: 50px;
    }
    
    .td_datetime {
        width: 80px;
        font-size: 11px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-item .info-label {
        min-width: auto;
    }
    
    .bo_sch {
        min-width: 90%;
        margin: 20px;
    }
    
    .sch_bar {
        flex-direction: column;
    }
    
    .contact-view-actions,
    .contact-list-footer {
        flex-direction: column;
        align-items: center;
    }
    
    /* Attachment responsive styles */
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .attachment-info {
        width: 100%;
        justify-content: flex-start;
    }
    
    .attachment-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-download {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .file-details {
        flex: 1;
    }
    
    .file-meta {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* Print Styles */
@media print {
    .contact-header,
    .contact-footer,
    .contact-list-actions,
    .contact-view-actions,
    .inquiry-admin-actions,
    .btn {
        display: none;
    }
    
    .contact-main {
        padding: 0;
    }
    
    .contact-inquiry-item {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 20px;
    }
}