/* 상담사 화면(index.html)과 내담자 접수 화면(apply.html)이 공유하는 폼 관련 스타일.
   결과 화면(표·PDF·저장목록 등)은 상담사 화면 전용이라 각 페이지 자체 <style>에 남아있다. */
* { box-sizing: border-box; }
body { font-family: -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; color: #1d1d1f; }

form { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; position: relative; }
label { font-size: 12px; color: #444; font-weight: 600; white-space: nowrap; }
input, select, textarea { padding: 7px 8px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; font-family: inherit; }

#name { width: 100px; }
#gender { width: 72px; }
#birth { width: 100px; }
#calendar { width: 72px; }
#leap { width: 72px; }
#time { width: 76px; }
#time:disabled { background: #eee; color: #999; }
#ganjiSelect { width: 220px; }
#ganjiSelect:disabled { background: #eee; color: #999; }
.region-search-input { width: 170px; }
.region-manual-input { width: 110px; }
.region-search-input.warn { border-color: #d9a300; background: #fffbe8; }
.region-warning { display: none; font-size: 11px; color: #a66a00; }
.region-warning.show { display: block; }
.region-suggest { display: none; position: absolute; top: 100%; left: 0; margin-top: 2px; background: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12); min-width: 200px; max-height: 220px; overflow-y: auto; z-index: 20; }
.region-suggest.open { display: block; }
.region-suggest-row { padding: 7px 10px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.region-suggest-row:last-child { border-bottom: none; }
.region-suggest-row:hover { background: #f5f5f7; }
.or-field { flex-direction: row; align-items: center; padding-bottom: 8px; }
.or-field .or-text { font-size: 13px; color: #888; white-space: nowrap; }
.checkbox-field { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
.checkbox-field label { white-space: nowrap; }

textarea { resize: vertical; min-height: 70px; width: 100%; }
.concern-field { margin-top: 12px; }

.actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
button { padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; color: #fff; }
button.btn-jeong { background: #0071e3; }
button.btn-jeong:hover { background: #0060c0; }
button.btn-ya { background: #d92d20; }
button.btn-ya:hover { background: #b7241a; }
button.secondary { background: #6e6e73; }
button.secondary:hover { background: #57575c; }
button:disabled { background: #c7c7cc; cursor: not-allowed; }
button:disabled:hover { background: #c7c7cc; }

.form-error { color: #c00; font-weight: 600; font-size: 13px; margin-top: 8px; }

.gunghap-person-block { border: 1px solid #e4e4e7; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.gunghap-person-title { font-weight: 700; font-size: 13px; color: #333; margin-bottom: 8px; }
.gunghap-block-a { background: #f0f6ff; border-color: #d6e6ff; }
.gunghap-block-a .gunghap-person-title { color: #1d4ed8; }
.gunghap-block-b { background: #fff4f0; border-color: #ffe0d3; }
.gunghap-block-b .gunghap-person-title { color: #c2410c; }

.gunghap-block-child { background: #f2f9f0; border-color: #d3ecc6; }
.gunghap-block-child .gunghap-person-title { color: #2e7d32; }
.parent-block-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.parent-block-header .gunghap-person-title { margin-bottom: 0; font-size: 15px; }
.parent-enable-label { font-size: 15px; color: #333; font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.parent-enable-label input { width: 16px; height: 16px; cursor: pointer; }
/* 카드 전체가 아니라 입력 필드(.row)만 비활성 처리 — 체크박스·라벨은 항상 클릭 가능해야 한다 */
.gunghap-person-block.block-disabled { background: #ececec; border-color: #ddd; }
.gunghap-person-block.block-disabled .row { opacity: .5; pointer-events: none; }
#c_ageCategory { width: 96px; }

/* 내담자 접수 화면에서만 숨기는 필드(간지선택/보정 직접입력). 상담사 화면에서는 hidden-from-client 클래스를 붙이지 않는다. */
.hidden-from-client { display: none !important; }
