/* ==============================
   KUMO 구인자(Recruiter) 회원가입 CSS
   ============================== */

/* --- [기본 설정 및 컬러 변수] --- */
:root {
    --primary-color: #7db4e6;
    --bg-color: #fcfcfc;
    --text-main: #333333;
    --text-strong: #000000;
    --text-desc: #888888;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-main: #e0e0e0;
    --text-strong: #ffffff;
    --text-desc: #a0a0a0;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    overflow-x: hidden;
}

body {
    display: flex; flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Noto Sans KR', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* --- [레이아웃] --- */
.join-container {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 60px 20px;
}

.join-header { text-align: center; margin-bottom: 40px; }
.join-title { font-size: 32px; font-weight: 800; color: var(--text-strong); }
.join-desc { font-size: 14px; color: var(--text-desc); margin-top: 10px; }

/* --- [폼 스타일] --- */
.join-form-box {
    width: 100%; max-width: 600px;
    display: flex; flex-direction: column;
}

.form-row { display: flex; gap: 15px; width: 100%; }
.form-col { flex: 1; display: flex; flex-direction: column; }

.input-group { margin-bottom: 20px; width: 100%; }
.input-label {
    font-size: 13px; font-weight: 700;
    margin-bottom: 8px; color: var(--text-strong);
    display: block;
}

.custom-input {
    width: 100%; padding: 14px;
    background-color: #f2f4f6;
    border: none; border-radius: 6px;
    font-size: 14px; color: #333;
    outline: none; transition: 0.2s;
}
.custom-input:focus {
    background-color: #e8f0fe;
    box-shadow: 0 0 0 1px #7db4e6 inset;
}

/* --- [버튼 & 검색] --- */
.address-row { display: flex; gap: 10px; width: 100%; }
.btn-search {
    padding: 0 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px; font-weight: 600;
    color: #555; cursor: pointer;
    flex-shrink: 0; height: 50px;
    display: flex; align-items: center; justify-content: center;
}
.btn-search:hover { background-color: #f9f9f9; }

/* --- [셀렉트 박스] --- */
.custom-select {
    width: 100%; padding: 14px;
    background-color: #f2f4f6;
    border: none; border-radius: 6px;
    font-size: 14px; color: #333; outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* --- [파일 업로드 프리뷰 (NEW)] --- */
.file-preview-container {
    margin-top: 10px;
    display: none; /* JS로 제어 */
    gap: 10px;
    align-items: flex-start;
}

.preview-box {
    width: 100px; height: 100px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
    background-color: #f8f9fa;
}

.preview-box img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.btn-remove-file {
    background-color: #666;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px; height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.btn-remove-file:hover { background-color: #444; }

/* --- [에러 메시지] --- */
.error-msg {
    color: #EA4335; font-size: 12px;
    margin-top: 5px; display: none;
}

/* ==============================
   7. 약관 동의 박스
   ============================== */
/* 약관 박스 스타일 업그레이드 */
.terms-box {
    background-color: #fcfcfc;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
}

.term-divider {
    border: 0;
    border-top: 1px solid #444;
    margin: 10px 0 15px 0;
}

/* 각 항목을 가로로 정렬 (체크박스글자 --- 화살표) */
.term-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.term-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
    flex-grow: 1; /* 글자 영역이 남은 공간 다 차지하게 */
}

.term-item input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #7db4e6; /* 쿠모 브랜드 컬러 */
    transform: scale(1.1);
}

.term-text {
    font-size: 14px;

}

/* 필수/선택 뱃지 색상 */
.required {
    color: #EA4335; /* 빨간색 */
    margin-right: 4px;
    font-weight: bold;
}

.optional {
    color: #999; /* 회색 */
    margin-right: 4px;
}

/* 화살표 아이콘 스타일 */
.term-link {
    color: #888;
    padding: 5px;
    font-size: 12px;
    transition: color 0.3s;
}

.term-link:hover {
    color: #fff;
}
/* --- [제출 버튼] --- */
.btn-submit {
    width: 100%; padding: 16px;
    background-color: var(--primary-color);
    color: white !important;
    border: none; border-radius: 6px;
    font-size: 16px; font-weight: 700;
    cursor: pointer; margin-bottom: 30px;
}
.btn-submit:hover { opacity: 0.9; }

/* --- [다크모드] --- */
body.dark-mode .custom-input,
body.dark-mode .custom-select,
body.dark-mode .btn-search {
    background-color: #333; color: #fff; border-color: #555;
}
body.dark-mode .preview-box { background-color: #333; border-color: #555; }
body.dark-mode .terms-box { background-color: #2d2d2d; border-color: #444; }
body.dark-mode .custom-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}