/* 감정평가사 회원가입 마법사 전용 스타일 (signup 페이지에서만 로드)
   색상 변수는 app.css :root 재사용 (--brand, --brand-600, --brand-050, --line, --muted 등) */
:root { --site-w: 1440px; } /* 회원가입 페이지: 헤더/푸터 폭을 본문(1440)에 맞춤 */
.signup { max-width: 1440px; margin: 0 auto; padding: 36px 24px 56px; }

/* ---- 상단: 제목 + 스텝 ---- */
.signup__head { display: flex; align-items: center; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.signup__title h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.signup__title p { color: var(--muted); font-size: 14px; margin: 0; }

.stepper { flex: 1; min-width: 420px; display: flex; list-style: none; margin: 0; padding: 0; }
.stepper__item { flex: 1; position: relative; text-align: center; }
.stepper__item:not(:last-child)::after {
	content: ""; position: absolute; top: 17px; height: 2px; background: var(--line);
	left: calc(50% + 20px); right: calc(-50% + 20px);
}
.stepper__item.is-done::after { background: var(--brand-600); }
.stepper__dot {
	width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px;
	display: grid; place-items: center; font-size: 14px; font-weight: 700;
	background: #fff; border: 2px solid #d1d5db; color: #9ca3af; position: relative; z-index: 1;
}
.stepper__dot svg { width: 18px; height: 18px; }
.stepper__item.is-current .stepper__dot { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.stepper__item.is-done .stepper__dot { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.stepper__label { font-size: 13.5px; color: #9ca3af; font-weight: 600; }
.stepper__item.is-current .stepper__label { color: var(--brand-600); }
.stepper__item.is-done .stepper__label { color: #374151; }

/* ---- 알림 ---- */
.signup__alert {
	background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
	border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 20px;
}

/* ---- 본문 3단 ---- */
.signup__body { display: grid; grid-template-columns: 264px minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.signup__body--done { grid-template-columns: minmax(0, 1fr) 320px; }

/* ---- 좌측 안내 카드 ---- */
.side-card { background: #f7f9fc; border: 1px solid var(--line); border-radius: 14px; padding: 26px 20px; text-align: center; }
.side-card__icon { width: 60px; height: 60px; border-radius: 50%; background: #e8eefb; color: var(--brand-600); display: grid; place-items: center; margin: 0 auto 14px; }
.side-card__icon svg { width: 28px; height: 28px; }
.side-card__title { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.side-card__desc { color: var(--muted); font-size: 13px; margin: 0 0 20px; line-height: 1.6; }
.side-card__box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; text-align: left; }
.side-card__box-title { font-weight: 800; font-size: 14px; color: var(--brand); margin: 0 0 12px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 24px; font-size: 13.5px; color: #374151; margin: 9px 0; line-height: 1.5; }
.check-list li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
	background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 6'/%3E%3C/svg%3E");
}

/* ---- 중앙 폼 카드 ---- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 32px 26px; }
.form-section { font-size: 16px; font-weight: 800; margin: 0 0 18px; }
.form-section--mt { margin-top: 26px; }
.form-section .hint { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.form-div { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.frow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.frow__label { font-size: 14px; font-weight: 700; padding-top: 13px; line-height: 1.45; }
.frow__label em { color: #ef4444; font-style: normal; }
/* 필수(*)가 다음 줄로 홀로 떨어지지 않도록 앞 단어에 붙임 */
.frow__label em, .frow__sublabel em, .doc-item__title em { margin-left: 3px; }
.frow__control { min-width: 0; }
.frow__help { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.frow__help.is-ok { color: #16a34a; font-weight: 600; }
.frow__help.is-err { color: #dc2626; font-weight: 600; }
.frow__help--em { color: var(--brand); font-weight: 700; }

/* 약관 동의 */
.agree { display: flex; flex-direction: column; gap: 10px; }
.agree label { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #374151; cursor: pointer; line-height: 1.5; }
.agree input[type=checkbox] { margin-top: 2px; flex: 0 0 auto; }
.agree__all { padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.agree__all b { font-weight: 700; }
.agree__item em { color: #ef4444; font-style: normal; font-weight: 700; }
.agree__item a { color: var(--brand); text-decoration: underline; }

/* 약관 전문 스크롤 박스(링크 대신 내용 직접 노출) */
.agree__row { display: flex; flex-direction: column; gap: 6px; }
.agree__box {
	max-height: 170px; overflow-y: auto; margin-left: 27px;
	border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 12px 14px;
}
.agree__box .legal { max-width: none; padding: 0; margin: 0; }
.agree__box .legal__title { font-size: 14px; font-weight: 800; margin: 0 0 2px; }
.agree__box .legal__meta { display: none; } /* 회원가입 동의 박스에선 시행일 숨김 */
.agree__box .legal__intro { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 11.5px; line-height: 1.6; color: #4b5563; margin: 0 0 8px; }
.agree__box h2 { font-size: 12.5px; font-weight: 700; margin: 10px 0 4px; }
.agree__box h3 { font-size: 12px; font-weight: 700; margin: 7px 0 3px; }
.agree__box p { font-size: 11.5px; line-height: 1.6; color: #4b5563; margin: 3px 0; }
.agree__box ol, .agree__box ul { padding-left: 16px; margin: 3px 0; }
.agree__box li { font-size: 11.5px; line-height: 1.55; color: #4b5563; margin: 2px 0; }
.agree__box ol.paren { list-style: none; padding-left: 0; counter-reset: pc; }
.agree__box ol.paren > li { counter-increment: pc; position: relative; padding-left: 20px; }
.agree__box ol.paren > li::before { content: counter(pc); position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.agree__box .table-wrap { overflow-x: auto; margin: 6px 0; }
.agree__box table { width: 100%; border-collapse: collapse; font-size: 11px; }
.agree__box th, .agree__box td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; background: #fff; line-height: 1.4; }
.agree__box hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.agree__box .legal__note { font-size: 10.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.is-hidden { display: none !important; }
.bank-custom { margin-top: 8px; }
.frow__sublabel { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.frow__sublabel em { color: #ef4444; font-style: normal; }

.frow__control--inline { display: flex; gap: 10px; align-items: center; }
.frow__control--inline input { flex: 1; }
.frow__control--radios { display: flex; gap: 26px; padding-top: 12px; }

.frow--triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* 입력 공통 */
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #d7dbe2; border-radius: 8px;
	font-size: 14.5px; background: #fff; color: var(--fg); font-family: inherit;
}
input:focus, select:focus, textarea:focus {
	outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
input::placeholder, textarea::placeholder { color: #9ca3af; }
select {
	appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.sel-narrow { flex: 0 0 96px; width: 96px; }
textarea { resize: vertical; min-height: 96px; }

.textarea-wrap { position: relative; }
.textarea-count { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: #9ca3af; }

.input-pw { position: relative; }
.input-pw input { padding-right: 44px; }

/* 비밀번호 실시간 유효성 테두리 (JS로 클래스 토글) */
input.is-valid, input.is-valid:focus {
	border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
input.is-invalid, input.is-invalid:focus {
	border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .13);
}
.toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #9ca3af; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.toggle-pw svg { width: 20px; height: 20px; }

.radio { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

/* 인증 버튼 등 라인 버튼 */
.btn-line {
	flex: 0 0 auto; white-space: nowrap; padding: 12px 16px; border: 1px solid #d7dbe2;
	border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 700; color: #374151; cursor: pointer;
}
.btn-line:hover { background: #f8fafc; }

/* 멀티셀렉트(활동 지역) */
.multiselect { position: relative; }
.multiselect__toggle {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	padding: 12px 14px; border: 1px solid #d7dbe2; border-radius: 8px; background: #fff;
	font-size: 14.5px; color: var(--fg); cursor: pointer;
}
.multiselect__toggle .multiselect__ph { color: #9ca3af; }
.multiselect__toggle.has-value .multiselect__ph { color: var(--fg); }
.multiselect__toggle svg { width: 18px; height: 18px; color: #9ca3af; transition: transform .15s; }
.multiselect.open .multiselect__toggle svg { transform: rotate(180deg); }
.multiselect__panel {
	display: none; position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
	max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid var(--line);
	border-radius: 10px; box-shadow: 0 10px 30px rgba(17,24,39,.12); padding: 6px;
	grid-template-columns: 1fr 1fr;
}
.multiselect.open .multiselect__panel { display: grid; }
.multiselect__opt { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.multiselect__opt:hover { background: #f6f7f9; }

/* 하단 액션 */
.form-actions { display: flex; gap: 14px; margin-top: 28px; }
.btn-cancel, .btn-next {
	height: 52px; border-radius: 10px; font-size: 15px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.btn-cancel { flex: 0 0 32%; background: #fff; border: 1px solid #d7dbe2; color: #374151; }
.btn-cancel:hover { background: #f8fafc; }
.btn-next { flex: 1; background: var(--brand); border: 0; color: #fff; }
.btn-next:hover { background: #1743b3; }
.btn-next--full { width: 100%; margin-top: 28px; }

/* ---- 우측 정보 카드 ---- */
.side-col { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.info-card__head { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.info-card__head svg { width: 20px; height: 20px; color: var(--brand-600); }
.info-card__head--blue { color: var(--brand); }
.info-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 6px; }
.info-card__hl { color: var(--brand); font-weight: 800; font-size: 14px; margin-top: 10px; }
.info-card__hl2 { color: var(--fg); font-weight: 700; font-size: 14px; margin-top: 8px; }
.info-card__sub { color: var(--muted); font-size: 12.5px; }
.contact { margin: 4px 0 0; }
.contact div { display: flex; gap: 14px; margin: 8px 0; font-size: 13.5px; }
.contact dt { color: var(--muted); flex: 0 0 60px; margin: 0; }
.contact dd { margin: 0; font-weight: 600; color: #374151; }
.contact dd.ct-time { line-height: 1.45; }
/* 카카오톡 문의 버튼 */
.kakao-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; height: 46px; background: #FEE500; color: #3C1E1E; border-radius: 10px; font-weight: 800; font-size: 14px; text-decoration: none; transition: filter .12s; }
.kakao-btn:hover { filter: brightness(0.96); }
.kakao-btn svg { width: 20px; height: 20px; }

/* ---- 서류 제출 ---- */
.docs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.docs-note { color: var(--brand-600); font-size: 13px; font-weight: 600; }
.doc-item { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.doc-item__icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-050); color: var(--brand-600); display: grid; place-items: center; }
.doc-item__icon svg { width: 22px; height: 22px; }
.doc-item__info { flex: 1; min-width: 0; }
.doc-item__title { font-weight: 700; font-size: 15px; margin: 0 0 3px; }
.doc-item__title em { color: #ef4444; font-style: normal; }
.doc-item__desc { color: var(--muted); font-size: 13px; margin: 0; }
.btn-file { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid #d7dbe2; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 700; color: #374151; cursor: pointer; }
.btn-file:hover { background: #f8fafc; }
.btn-file svg { width: 16px; height: 16px; }
.btn-file input[type=file] { display: none; }
.doc-item__ext { flex: 0 0 auto; color: var(--muted); font-size: 13px; min-width: 96px; }
.doc-item__ext.has-file { color: var(--brand-600); font-weight: 600; }

/* ---- 완료(step4) ---- */
.done-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 44px 40px; text-align: center; }
.done-card__icon { width: 96px; height: 96px; border-radius: 50%; background: #eaf0fd; color: var(--brand-600); display: grid; place-items: center; margin: 0 auto 24px; }
.done-card__icon svg { width: 44px; height: 44px; }
.done-card__title { font-size: 26px; font-weight: 800; margin: 0 0 14px; }
.done-card__title span { color: var(--brand); }
.done-card__desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 28px; }
.done-card__notice { display: flex; gap: 12px; text-align: left; background: #eff4fe; border: 1px solid #d6e2fb; border-radius: 12px; padding: 16px 20px; }
.done-card__notice svg { width: 22px; height: 22px; color: var(--brand-600); flex: 0 0 22px; margin-top: 2px; }
.done-card__notice .hl { color: var(--brand); font-weight: 800; font-size: 15px; margin: 0 0 3px; }
.done-card__notice .sub { color: var(--muted); font-size: 13px; margin: 0; }

.info-card--plain { }
.info-card__title2 { font-weight: 800; font-size: 15px; margin: 0 0 16px; }
.next-list { list-style: none; margin: 0; padding: 0; }
.next-list li { display: flex; gap: 12px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.next-list li b { color: var(--fg); }
.next-list__icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: grid; place-items: center; }
.next-list__icon svg { width: 19px; height: 19px; }

/* ================= 반응형 ================= */
@media (max-width: 1180px) {
	.signup__body { grid-template-columns: 220px minmax(0,1fr); }
	.side-col { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
	.side-col .info-card { flex: 1 1 260px; }
	.signup__body--done { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.signup__head { gap: 18px; }
	.stepper { min-width: 100%; order: 2; }
	.signup__body { grid-template-columns: 1fr; }
	.side-card { order: 3; }
	.form-card { order: 1; }
	.side-col { order: 2; }
	.frow { grid-template-columns: 1fr; gap: 8px; }
	.frow__label { padding-top: 0; }
	.frow__control--radios { padding-top: 0; }
	.frow--triple { grid-template-columns: 1fr; }
	.form-card { padding: 22px 18px; }
}
@media (max-width: 520px) {
	.stepper__label { font-size: 11px; }
	.doc-item { flex-wrap: wrap; }
	.doc-item__ext { width: 100%; min-width: 0; }
	.multiselect__panel { grid-template-columns: 1fr; }
	/* 인증/중복확인 행: 입력칸을 넓게, 버튼은 아래 전체폭으로(휴대폰 번호칸 눌림 방지) */
	.frow__control--inline { flex-wrap: wrap; }
	.frow__control--inline input { flex: 1 1 120px; min-width: 0; }
	.frow__control--inline .btn-line { flex: 1 0 100%; height: 44px; }
}
