@charset "utf-8";

/* 기존 RB-BBS 스타일 (생략) */
/* ... 기존에 있던 다른 스타일들은 여기에 그대로 유지됩니다 ... */
/* ... 이 파일의 상단에 있던 모든 기존 CSS 코드는 그대로 두세요 ... */


/* =================================================================
    1:1 문의 스킨 커스텀 스타일 (사용자 요청에 따라 수정된 부분)
=================================================================
*/

.qna-write-container {
    max-width: 800px; /* 너비 조정 */
    margin: 60px 0;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.qna-write-container h1 {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}
.qna-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 25px; /* 간격 조정 */
}
.qna-form-group {
    display: flex;
    flex-direction: column;
}
.qna-form-group.full-width {
    grid-column: 1 / -1;
}
.qna-form-group label {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

/* --- 입력 필드 스타일 재정의 --- */
#fwrite .qna-form-group .input,
#fwrite .qna-form-group .select,
#fwrite .qna-form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 12px 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    height: auto;
    line-height: normal;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#fwrite .qna-form-group .select {
    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 10px center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5em;
}

#fwrite .qna-form-group .input:focus,
#fwrite .qna-form-group .select:focus,
#fwrite .qna-form-group textarea:focus {
    outline: none;
    border-bottom-color: #000;
}
#fwrite .qna-form-group textarea {
    min-height: 150px;
    resize: vertical;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
}
#fwrite .qna-form-group textarea:focus {
    border-color: #000;
}


/* --- 파일 첨부 영역 (새로운 디자인) --- */
.qna-file-upload-section {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: 40px;
}
.file-upload-input {
    display: none; /* 실제 input 숨기기 */
}
.file-upload-label {
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: color 0.2s;
}
.file-upload-label:hover {
    color: #000;
}
.file-delete-wrap {
    margin-top: 10px;
    font-size: 13px;
}
.file-delete-wrap label {
    color: #666;
}


/* --- 개인정보 수집동의 안내 (새로운 디자인) --- */
.qna-privacy-details {
    margin-top: 40px;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}
.qna-privacy-details p {
    margin: 0;
    padding: 0;
}


/* --- 최종 액션 영역 (동의 체크박스 + 제출 버튼) --- */
.qna-final-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* 커스텀 체크박스 (CSS 충돌 해결) */
#fwrite .qna-privacy-agree input[type="checkbox"] {
    display: none; /* 기본 체크박스 숨기기 */
}
#fwrite .qna-privacy-agree label {
    position: relative;
    padding-left: 30px; /* 아이콘 들어갈 공간 */
    cursor: pointer;
    font-size: 16px;
    color: #555;
    display: inline-flex;
    align-items: center;
    height: 24px;
    user-select: none; /* 텍스트 선택 방지 */
}
#fwrite .qna-privacy-agree label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 1.5px solid #d1d1d1 !important; /* !important로 우선순위 강화 */
    border-radius: 50% !important;
    background-color: #fff !important;
    transition: all 0.2s;
    display: inline-block !important; /* display 속성 강제 */
}
#fwrite .qna-privacy-agree label::after { /* 체크마크 아이콘 */
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid #a0a0a0; /* 체크마크 색상 (이미지와 유사하게) */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: all 0.2s ease-in-out;
}
#fwrite .qna-privacy-agree input[type="checkbox"]:checked + label::before {
    border-color: #a0a0a0 !important; /* 체크 시 테두리 색상 변경 */
}
#fwrite .qna-privacy-agree input[type="checkbox"]:checked + label::after {
    transform: rotate(45deg) scale(1); /* 체크 시 아이콘 표시 */
    opacity: 1;
}


/* --- 제출 버튼 (새로운 디자인) --- */
.qna-submit-area {
    text-align: right;
}
.btn-qna-submit {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-qna-submit:hover {
    background-color: #000;
}
.btn-qna-submit .arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s;
}
.btn-qna-submit:hover .arrow {
    transform: translateX(4px);
}
