/* 364 U5 — 법인 마스터 계정 가입 화면(auth/firm-join.jsp) 전용 (fj-* = firm join)
   상단바·세로 배치는 join-select.jsp(jn-*) 와 같게, 폼 모양은 ① 목업(/w/41830711 3절)을 따른다.
   색·간격·라운드는 settings.css 토큰만 쓴다. */

/* 상단바 : 로고 줄만 두므로 page.css 의 헤더 아래 여백(GNB 자리)을 닫는다 — join-select 와 같음 */
header {padding-bottom: var(--padding-24);}

/* header 가 position:fixed 라 padding-top 이 헤더 자리를 대신 벌린다(join-select .jn-main 과 같은 값) */
.fj-main {flex: 1; padding-top: clamp(142rem, 12vw, 168rem); padding-bottom: clamp(56rem, 6vw, 88rem);}
.fj-main > .inner {width: 100%;}

.fj-head {max-width: 860px; margin: 0 auto; text-align: center;}
.fj-head .eyebrow {font-size: var(--font-size-14); font-weight: 700; letter-spacing: .1em; color: var(--Ash);}
.fj-head h2 {margin-top: var(--gap-12); font-size: var(--font-size-32); font-weight: 800; color: var(--Primary); line-height: 1.28; letter-spacing: -.02em;}

.fj-card {max-width: 860px; margin: 32rem auto 0; background: #fff; border: 1px solid var(--Cloud); border-radius: var(--border-radius-24); padding: 40rem 44rem; box-sizing: border-box;}
.fj-card h3 {font-size: var(--font-size-20); font-weight: 800; color: var(--Raven); margin: 28rem 0 12rem; padding-bottom: 10rem; border-bottom: 2px solid var(--Primary);}
.fj-card h3:first-child {margin-top: 0;}

/* 한 줄 = 라벨 | 값 */
.fr {display: grid; grid-template-columns: 180rem minmax(0, 1fr); gap: 16rem; padding: 12rem 0; border-bottom: 1px solid var(--Cloud); align-items: center;}
.fr[hidden] {display: none;}
.fr .fl {font-size: 15px; font-weight: 700; color: var(--Ebony);}
.fr .fl em {color: #E5484D; font-style: normal; margin-left: 3px;}
.fv {display: flex; flex-wrap: wrap; gap: 8rem; align-items: center; min-width: 0;}
.fv.fv-col {flex-direction: column; align-items: stretch;}
.fv input[type=text], .fv input[type=password], .fv input[type=email], .fv input[type=date] {height: 44rem; border: 1px solid var(--Mist); border-radius: 8px; padding: 0 12rem; font-size: 15px; font-family: inherit; color: var(--Raven); background: #fff; min-width: 0; flex: 1 1 260rem; box-sizing: border-box;}
.fv input.w-num {flex: 0 1 200rem;}
/* 404 P-1 묶음 A 승인 번호 고르기 - 읽기 전용 입력칸과 같은 모양 */
.fv select#bizApproved {height: 44rem; border: 1px solid var(--Mist); border-radius: 8px; padding: 0 12rem; font-size: 15px; font-family: inherit; color: var(--Ebony); font-weight: 600; background: var(--Input); flex: 0 1 200rem; box-sizing: border-box;}
.fv input.w-date {flex: 0 1 200rem;}
/* 세로 묶음에서는 flex-basis 가 높이로 먹으니 풀어 둔다 */
.fv.fv-col input[type=text] {flex: none;}
.fv input:focus {border-color: var(--Secondary); outline: none; box-shadow: 0 0 0 3px rgba(47, 93, 244, .14);}
.fv input[readonly] {background: var(--Input); color: var(--Ebony); font-weight: 600;}
.fv input.is-err {border-color: #E5484D;}

/* 회원구분 라디오 — 선택된 것은 테두리·글자를 Primary 로 */
.fj-gb {display: flex; flex-wrap: wrap; gap: 8rem;}
.fj-gb .rb {display: inline-flex; align-items: center; gap: 6px; height: 40rem; padding: 0 14rem; border: 1px solid var(--Cloud); border-radius: 8px; font-size: 15px; cursor: pointer;}
/* reset.css 의 input{appearance:none} 이 라디오를 지운다 → 이 화면에서만 되살린다 */
.fj-gb .rb input {appearance: auto; -webkit-appearance: auto; width: 16px; height: 16px; flex: none; accent-color: var(--Primary);}
.fj-gb .rb:has(input:checked) {border-color: var(--Primary); background: rgba(34, 64, 140, .06); color: var(--Primary); font-weight: 700;}

/* 버튼 */
.bt {display: inline-flex; align-items: center; justify-content: center; height: 44rem; padding: 0 18rem; border-radius: 8px; background: var(--Primary); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; border: 1px solid var(--Primary); cursor: pointer; white-space: nowrap; text-decoration: none; box-sizing: border-box;}
.bt:hover {background: #1A366E;}
.bt.line {background: #fff; color: var(--Primary);}
.bt.line:hover {background: rgba(34, 64, 140, .06);}
.bt.sm {height: 34rem; padding: 0 12rem; font-size: 14px;}
.bt.lg {width: 180rem; height: 52rem; font-size: 16px; border-radius: 10px;}
.bt:disabled {opacity: .5; cursor: default;}
.bt[hidden] {display: none;}

.hint {width: 100%; margin: 2rem 0 0; font-size: 13px; color: var(--Ash); line-height: 1.6;}
.hint a {color: var(--Secondary); font-weight: 700;}
.fj-err {width: 100%; margin: 0; font-size: 13px; color: #C4293B; font-weight: 600;}
.fj-err:empty {display: none;}
.fj-err.ok {color: #1E7A4C;}

/* 확인·신청 결과 문구 */
.fj-msg {margin: 12rem 0 0; font-size: 14px; font-weight: 700; line-height: 1.6;}
.fj-msg:empty {display: none;}
.fj-msg.ok {color: #1E7A4C;}
.fj-msg.err {padding: 10rem 14rem; border-radius: 10px; background: #FFF3F3; border: 1px solid #FFD3D3; color: #C4293B;}

/* 공동법률사무소 검색 결과 */
.fj-search {width: 100%; margin-top: 6rem; border: 1px solid var(--Cloud); border-radius: 10px; padding: 12rem; box-sizing: border-box;}
.fj-search[hidden] {display: none;}
.fj-search-sum {margin: 0 0 8rem; font-size: 13px; color: var(--Ash);}
.fj-search-list {list-style: none; margin: 0; padding: 0;}
.fj-search-list li {display: flex; align-items: center; gap: 12rem; padding: 10rem 4rem; border-top: 1px solid var(--Cloud);}
.fj-search-list li:first-child {border-top: 0;}
.fj-search-list .nm {font-weight: 700; color: var(--Raven); font-size: 15px;}
.fj-search-list .ad {font-size: 13px; color: var(--Charcoal);}
.fj-search-list .tx {flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2rem;}
.fj-search-list .empty {justify-content: center; color: var(--Ash); font-size: 14px;}
.fj-search-pg {display: flex; justify-content: center; align-items: center; gap: 10rem; margin-top: 8rem; font-size: 13px; color: var(--Charcoal);}

.fj-file {display: flex; align-items: center; gap: 8rem; flex-wrap: wrap;}
.fj-file input[type=file] {font-size: 14px; color: var(--Charcoal); font-family: inherit;}

.fj-privacy {margin-top: 24rem; padding: 16rem 20rem; border-radius: var(--border-radius-16); background: #F7F8FB; font-size: 13px; color: var(--Ebony); line-height: 1.7;}
.fj-privacy .tt {font-weight: 700; color: var(--Raven); font-size: 14px; margin-bottom: 4rem;}
.fj-privacy ul {list-style: none; margin: 0; padding: 0;}
.fj-privacy li {position: relative; padding-left: 12rem;}
.fj-privacy li::before {content: ""; position: absolute; left: 0; top: 10rem; width: 4rem; height: 4rem; border-radius: 50%; background: var(--Mist);}

.fj-acts {display: flex; justify-content: center; gap: 12rem; margin-top: 28rem;}
.fj-contact {text-align: center; margin-top: 18rem; font-size: 13px; color: var(--Ash);}

/* 완료 안내 */
.fj-done[hidden] {display: none;}
.fj-done {text-align: center;}
.fj-done h3 {border-bottom: 0; color: var(--Primary); font-size: var(--font-size-24);}
.fj-done .lead {font-size: var(--font-size-18); font-weight: 700; color: var(--Raven);}
.fj-done .sub {margin-top: 8rem; font-size: 15px; color: var(--Charcoal);}
.fj-done-meta {display: grid; grid-template-columns: auto auto; justify-content: center; gap: 8rem 20rem; margin: 24rem auto 0; font-size: 15px;}
.fj-done-meta dt {color: var(--Ash); font-weight: 600; text-align: right;}
.fj-done-meta dd {margin: 0; color: var(--Raven); font-weight: 700; text-align: left;}

@media screen and (max-width: 760px) {
    .fj-card {padding: 24rem 18rem;}
    .fr {grid-template-columns: minmax(0, 1fr); gap: 6rem;}
    .fj-head h2 {font-size: var(--font-size-28);}
    .bt.lg {width: auto; flex: 1;}
}
