/* 
   견적문의 글쓰기 페이지 전용 스타일시트
   Created: 2025
   Description: 모던하고 깔끔한 글쓰기 폼 디자인
*/

/* 전체 컨테이너 */
#bo_w {
    max-width: 1400px; /* 1200px에서 1400px로 확장 */
    margin: 0 auto;
    padding: 40px 20px; /* 좌우 패딩도 약간 증가 */
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.03),
        0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(240, 242, 245, 0.8);
    position: relative;
    overflow: hidden;
}

#bo_w::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.form_inpt {
    padding: 0;
}

/* 제목 영역 */
#bo_w h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 25px;
    font-family: 'Noto Sans KR', sans-serif;
}

#bo_w h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 3px;
}

/* 기본 리스트 스타일 제거 */
.bo_w_info {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* 카테고리 선택 영역 */
.category-section {
    margin-bottom: 40px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8fafe 0%, #faf8ff 100%);
    border-radius: 20px;
    border: 1px solid #e8ebf7;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.06),
        0 3px 10px rgba(102, 126, 234, 0.04);
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px 20px 0 0;
}

.category-label {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Sans KR', sans-serif;
}

.category-label::before {
    content: '🏗️';
    font-size: 24px;
}

.category-grid {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.category-item {
    position: relative;
    flex: 1;
    min-width: 0;
}

.category-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.category-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 4px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.category-item label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.category-item input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.category-item input[type="radio"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(72, 187, 120, 0.4);
}

.category-item label:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.category-item label:hover::before {
    left: 100%;
}

/* 한줄로 배치할 때 사용하는 스타일 */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.form-row .write-form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

/* 입력 필드 공통 스타일 */
.write-form-group {
    margin-bottom: 30px;
}

.write-form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Noto Sans KR', sans-serif;
}

.write-form-group input[type="text"],
.write-form-group input[type="tel"],
.write-form-group input[type="password"],
.write-form-group textarea,
.write-form-group select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    font-size: 16px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    box-sizing: border-box;
    color: #2d3748;
    font-weight: 500;
}

.write-form-group input:focus,
.write-form-group textarea:focus,
.write-form-group select:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.08),
        0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* 필수 표시 - 현대적인 배지 스타일 */
.required {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    margin-left: 6px;
    position: relative;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.required::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 에디터 영역 */
.editor-wrapper {
    margin-bottom: 35px;
    width: 100%;
    max-width: none; /* 최대 너비 제한 해제 */
    overflow: visible; /* overflow hidden 제거 */
}

.editor-wrapper .write_div {
    min-height: 500px; /* 높이도 약간 증가 */
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px; /* 패딩 증가 */
    background: #fafbfc;
    transition: all 0.3s ease;
    width: 100%;
    max-width: none; /* 최대 너비 제한 해제 */
    box-sizing: border-box;
}

.editor-wrapper .write_div:focus-within {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* SmartEditor iframe 반응형 처리 */
.editor-wrapper iframe,
.write_div iframe,
#wr_content + iframe {
    width: 100% !important;
    max-width: none !important; /* 최대 너비 제한 해제 */
    min-width: 100% !important;
    box-sizing: border-box !important;
}

/* 에디터 내부 텍스트 스타일 */
.editor-wrapper iframe,
.editor-wrapper textarea,
.write_div iframe,
.write_div textarea {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* CKEditor 내부 스타일 강제 적용 */
.cke_editable {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* 에디터 도구모음 스타일 개선 */
.cke_toolbar {
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
}

/* 기본 textarea 스타일 */
#wr_content {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    padding: 20px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 400px !important; /* textarea 최소 높이 설정 */
    resize: vertical !important; /* 세로 크기 조절만 허용 */
    box-sizing: border-box !important;
    border: 2px solid #e0e7ff !important;
    background: #fefefe !important;
    transition: all 0.3s ease !important;
}

/* 첨부파일 영역 */
.file-upload-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafe 0%, #faf8ff 100%);
    border-radius: 16px;
    border: 1px solid #e8ebf7;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.04);
}

.file-upload-section:hover {
    border-color: #6366f1;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.08);
}

.file-upload-title {
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans KR', sans-serif;
}

.file-upload-title::before {
    content: '📎';
    font-size: 18px;
}

.file-upload-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 18px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid #6366f1;
}

.file-upload-item {
    margin-bottom: 18px;
    padding: 18px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.file-upload-item:hover {
    border-color: #6366f1;
    background: #fefffe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.file-input-hidden {
    display: none;
}

.file-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center !important; /* 텍스트 세로 중앙 정렬 */
    justify-content: center !important; /* 텍스트 가로 중앙 정렬 */
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    height: 48px;
    box-sizing: border-box;
    align-self: flex-end;
    margin-top: 0.5px !important; /* 1px에서 0.5px로 변경 (0.5px 더 올림) */
    margin-bottom: 0 !important;
    transform: translateY(0.5px) !important; /* 1px에서 0.5px로 변경 (0.5px 더 올림) */
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.file-upload-btn:hover {
    background: linear-gradient(135deg, #5b5bd6 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.file-upload-btn i {
    font-size: 14px;
}

.file-name-display {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #6c757d;
    font-size: 14px;
    border: 2px solid #e9ecef;
    font-weight: 500;
    height: 48px;
    box-sizing: border-box;
    min-height: 48px;
    align-self: center;
}

.file-name-display.has-file {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    color: #2d5a2d;
    border-color: #48bb78;
    font-weight: 600;
}

.file-description {
    width: 100%;
    margin-top: 15px;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    color: #495057;
}

.file-description:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.file-delete-area {
    margin-top: 15px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #fed7d7;
}

.file-delete-area label {
    color: #c53030;
    font-size: 14px;
    cursor: pointer;
}


/* 글쓰기 옵션 */
.bo_w_option {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

/* 버튼 영역 */
.btn-write-wrap {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 55px;
    padding-top: 45px;
    border-top: 1px solid rgba(240, 242, 245, 0.8);
    position: relative;
}

.btn-write-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.btn-write {
    padding: 18px 45px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Noto Sans KR', sans-serif;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-submit {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-cancel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #dee2e6;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* 글자수 제한 표시 */
#char_count_desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

#char_count_wrap {
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

#char_count {
    font-weight: bold;
    color: #6366f1;
}

/* 플레이스홀더 스타일 */
::placeholder {
    color: #adb5bd;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 포커스 시 라벨 강조 */
.write-form-group:focus-within label {
    color: #6366f1;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #bo_w {
        padding: 20px 10px;
        border-radius: 15px;
        margin: 5px;
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        box-sizing: border-box;
    }
    
    #bo_w h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .category-grid {
        display: grid !important; /* flexbox 대신 grid 사용 */
        grid-template-columns: repeat(4, 1fr) !important; /* 한 줄에 정확히 4개 */
        gap: 6px !important;
        width: 100% !important;
    }
    
    .category-item {
        /* grid에서는 flex 설정 불필요 */
        width: 100% !important;
    }
    
    .category-section {
        padding: 15px 10px;
        margin-bottom: 25px;
    }
    
    .category-label {
        font-size: 18px;
    }
    
    .category-item label {
        padding: 8px 1px !important; /* 패딩 최소화 */
        font-size: 10px !important; /* 폰트 크기 더 작게 */
        height: 40px !important; /* 높이 줄임 */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .form-row {
        flex-direction: row;
        gap: 15px;
    }
    
    .btn-write-wrap {
        flex-direction: column;
        gap: 15px;
        margin-top: 35px;
        padding-top: 25px;
    }
    
    .btn-write {
        width: 100%;
        justify-content: center;
        padding: 18px 24px;
        min-width: auto;
    }
    
    .write-form-group input[type="text"],
    .write-form-group input[type="tel"],
    .write-form-group input[type="password"] {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .category-label::before {
        font-size: 20px;
    }
    
    /* 에디터 영역 모바일 최적화 */
    .editor-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .editor-wrapper .write_div {
        padding: 15px;
        min-height: 350px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .editor-wrapper iframe,
    .write_div iframe,
    #wr_content + iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .category-grid {
        display: grid !important; /* flexbox 대신 grid 사용 */
        grid-template-columns: repeat(4, 1fr) !important; /* 한 줄에 정확히 4개 */
        gap: 4px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .category-item {
        /* grid에서는 flex 설정 불필요 */
        width: 100% !important;
        margin: 0 !important;
    }
    
    .category-item label {
        padding: 6px 1px !important; /* 패딩 더 최소화 */
        font-size: 9px !important; /* 폰트 크기 더 작게 */
        height: 35px !important; /* 높이 더 줄임 */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: nowrap !important; /* 텍스트 줄바꿈 방지 */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }
    
    .form-row {
        flex-direction: row;
        gap: 10px;
    }
    
    #bo_w {
        margin: 5px;
        padding: 20px 12px;
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
    }
    
    #bo_w h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .category-section {
        padding: 15px 12px;
    }
    
    .category-label {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    /* 에디터 영역 작은 화면 최적화 */
    .editor-wrapper .write_div {
        padding: 10px;
        min-height: 300px;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.write-form-group,
.category-section {
    animation: fadeIn 0.6s ease-out;
}

/* 로딩 상태 */
.btn-submit:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

/* 스크롤바는 기본 스타일 유지 */

/* 정보 가이드 영역 스타일 */
.info-guide-section {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 2px solid #c4b5fd;
    border-radius: 16px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.06);
}

.info-guide-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
}

.info-guide-header i {
    font-size: 18px;
    opacity: 0.9;
}

.info-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
    background: white;
}

.info-guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.info-guide-item:hover {
    background: #f3e8ff;
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.info-icon {
    font-size: 22px;
    line-height: 1;
    min-width: 28px;
    text-align: center;
}

.info-content h5 {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    font-family: 'Noto Sans KR', sans-serif;
}

.info-content p {
    margin: 0;
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
}

.info-guide-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #e9ecef;
}

.service-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 15px;
    background: #f3e8ff;
    color: #6366f1;
    border: 1px solid #c4b5fd;
    transition: all 0.3s ease;
}

.service-badge:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);
}

/* 글쓰기 영역 스타일 */
.content-write-section {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.content-write-header {
    background: #f8f9fa;
    color: #495057;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.content-write-header label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
    font-family: 'Noto Sans KR', sans-serif;
}

.content-write-header i {
    font-size: 20px;
}

.content-write-desc {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.content-write-area {
    background: white;
    padding: 25px;
}

.char-limit-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.char-limit-info i {
    color: #f39c12;
}

.char-limit-info strong {
    color: #d35400;
}

.editor-container {
    margin: 20px 0;
    position: relative;
}

/* 에디터 자체 스타일 */
.content-write-section textarea,
.editor-container textarea {
    border: 2px solid #e0e7ff !important;
    border-radius: 12px !important;
    background: #fefefe !important;
    min-height: 400px !important;
    box-shadow: inset 0 2px 8px rgba(99, 102, 241, 0.05) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px !important;
    resize: vertical !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.content-write-section textarea:focus,
.editor-container textarea:focus,
#wr_content:focus {
    border-color: #6366f1 !important;
    background: #ffffff !important;
    box-shadow: 
        inset 0 2px 12px rgba(99, 102, 241, 0.08),
        0 0 0 4px rgba(99, 102, 241, 0.1) !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

.char-count-info {
    text-align: right;
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #6366f1;
}

#char_count {
    font-weight: bold;
    color: #6c757d;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s ease;
    cursor: default;
}

.badge-primary {
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    color: #6366f1;
    border: 1px solid #c4b5fd;
}

.badge-primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 반응형 - 정보 가이드와 글쓰기 영역 */
@media (max-width: 1024px) {
    .info-guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .info-guide-item {
        padding: 10px;
    }
    
    .info-icon {
        font-size: 20px;
        min-width: 26px;
    }
    
    .info-content h5 {
        font-size: 12px;
    }
    
    .info-content p {
        font-size: 10px;
    }
    
    .content-write-header {
        padding: 18px 20px;
    }
    
    .content-write-header label {
        font-size: 16px;
    }
    
    .content-write-area {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .info-guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .info-guide-item {
        padding: 10px 8px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .info-icon {
        font-size: 24px;
        min-width: auto;
    }
    
    .info-content h5 {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .info-content p {
        font-size: 10px;
    }
    
    .info-guide-header {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .info-guide-footer {
        padding: 12px 15px;
    }
    
    .service-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .content-write-header {
        padding: 15px 18px;
    }
    
    .content-write-header label {
        font-size: 16px;
    }
    
    .content-write-desc {
        font-size: 13px;
    }
    
    .content-write-area {
        padding: 18px 15px;
    }
    
    .content-write-section .write_div,
    .content-write-section iframe,
    .content-write-section textarea,
    .editor-container .write_div,
    .editor-container iframe,
    .editor-container textarea {
        min-height: 350px !important;
    }
}

@media (max-width: 480px) {
    .info-guide-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .info-guide-item {
        padding: 12px;
        flex-direction: row;
        text-align: left;
        gap: 10px;
    }
    
    .info-icon {
        font-size: 22px;
        min-width: 28px;
    }
    
    .info-content h5 {
        font-size: 13px;
    }
    
    .info-content p {
        font-size: 11px;
    }
    
    .content-write-section .write_div,
    .content-write-section iframe,
    .content-write-section textarea,
    .editor-container .write_div,
    .editor-container iframe,
    .editor-container textarea {
        min-height: 300px !important;
    }
}