@charset "utf-8";

/* ==========================================================================
   견적문의 게시판 - 깔끔한 스타일
   ========================================================================== */

/* Pretendard 폰트 로드 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* 전역 설정 */
#bo_w {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* 기본 폼 스타일 */
.form_inpt {
    background: transparent;
}

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

.bo_w_info > li {
    margin-bottom: 25px;
    padding: 0;
}

.bo_w_info > li:last-child {
    margin-bottom: 0;
}

/* 카테고리 선택 스타일 */
.category_select_wrapper {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.category_select_wrapper .wli_tit {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.category_select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 50px;
    appearance: none;
}

.category_select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 사용자 정보 행 스타일 */
.user_info_row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.user_info_half {
    flex: 1;
}

.user_info_half .wli_tit {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.user_info_half .frm_input {
    width: 100%;
}

/* 연락처 정보 행 스타일 */
.contact_info_row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact_info_half {
    flex: 1;
}

.contact_info_half .wli_tit {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact_info_half .frm_input,
.contact_info_half .frm_select {
    width: 100%;
}

/* 레이블 스타일 */
.wli_tit {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.wli_tit strong {
    color: #dc3545;
    margin-left: 4px;
}

/* 입력 필드 공통 스타일 */
.frm_input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.frm_input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.frm_input::placeholder {
    color: #8e8e93;
    font-weight: 400;
}

/* 선택 필드 스타일 */
.frm_select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 50px;
    appearance: none;
}

.frm_select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 제목 입력 */
.bo_w_tit .wli_cnt {
    position: relative;
}

.bo_w_tit .frm_input {
    font-size: 15px;
    font-weight: 500;
    padding: 16px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    height: auto;
    box-sizing: border-box;
}

/* 내용 입력 영역 */
.content_section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.content_section .wli_tit {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

/* 추가 섹션 스타일 */
.additional_section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.additional_section .wli_tit {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.optional {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
}

/* 파일 섹션 스타일 */
.file_section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.file_section .wli_tit {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

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

/* 파일 업로드 */
.bo_w_flie {
    margin-bottom: 15px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}

.file_wr {
    margin-bottom: 10px;
}

.file_label {
    display: inline-block;
    padding: 12px 18px;
    background: #667eea;
    color: white;
    border-radius: 10px;
    margin-right: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file_label:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.file_text {
    margin-left: 8px;
}

.file_size {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.file_desc {
    margin-top: 10px;
    font-size: 14px;
}

.link_label {
    display: inline-block;
    padding: 8px 12px;
    background: #17a2b8;
    color: white;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.frm_file {
    display: none;
}

/* 버튼 스타일 */
.bo_w_btn {
    margin-top: 40px;
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn_submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn_submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn_cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn_cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* 임시저장 버튼 */
.btn_frmline {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 12px;
}

/* 자동저장 팝업 */
#autosave_pop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

#autosave_pop strong {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}

#autosave_pop ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

#autosave_pop li {
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.autosave_close {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #bo_w {
        padding: 20px;
        margin: 15px;
        border-radius: 16px;
    }
    
    .category_select_wrapper {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .category_select {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .frm_input,
    .frm_select {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .user_info_row,
    .contact_info_row {
        flex-direction: column;
        gap: 15px;
    }
    
    .user_info_half,
    .contact_info_half {
        flex: none;
    }
    
    .content_section,
    .additional_section,
    .file_section {
        padding: 20px;
    }
    
    .bo_w_btn {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    
    .btn_submit,
    .btn_cancel {
        padding: 16px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #bo_w {
        padding: 15px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .category_select_wrapper {
        padding: 15px;
    }
    
    .category_select {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .frm_input {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .wli_tit {
        font-size: 14px;
    }
    
    .btn_submit,
    .btn_cancel {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* 접근성 개선 */
.sound_only {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* 포커스 상태 개선 */
.frm_input:focus,
.category_select:focus,
.btn_submit:focus,
.btn_cancel:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .category_select_wrapper {
        border: 3px solid #333;
    }
    
    .frm_input,
    .category_select {
        border: 3px solid #333;
    }
}

/* 모션 감소 설정 지원 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}