/* =========================================================================
   KEFA 정회원 가입신청 시스템 - 공통 스타일
   원본 첨부 HTML(KEFA_회원가입신청_수정.html)의 디자인을 그대로 이식.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:  #1A3A6B;
  --blue:  #2F5496;
  --sky:   #E8F0FB;
  --gold:  #F5A623;
  --light: #F5F8FD;
  --line:  #C8D5E8;
  --text:  #1E1E2E;
  --sub:   #5A6A84;
  --white: #FFFFFF;
  --green: #1B8045;
  --red:   #C0392B;
}

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background: #F0F4FA;
  color: var(--text);
  min-height: 100vh;
  word-break: keep-all;      /* 한글 단어 중간이 잘려서 줄바꿈되는 현상 방지 */
  overflow-wrap: break-word; /* 긴 영문/숫자는 필요 시에만 줄바꿈 */
}

/* ── 헤더 ── */
header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 0;
}
.hdr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px 0;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 48px; height: 48px;
  background: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: var(--navy);
  letter-spacing: -1px;
}
.logo-text { color: #fff; }
.logo-text .ko { font-size: 13px; letter-spacing: 1px; opacity: .75; display: block; }
.logo-text .en { font-size: 18px; font-weight: 700; letter-spacing: .5px; display: block; }
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.hdr-body {
  max-width: 1140px; margin: 0 auto;
  padding: 28px 24px 36px;
  text-align: center;
}
.hdr-body h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.hdr-body p { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; }
.hdr-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, #FFC85A 100%);
}

/* ── 요금 요약 바 ── */
.fee-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.fee-bar-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  padding: 0 24px;
  flex-wrap: wrap; gap: 12px;
}
.fee-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.fee-label {
  background: var(--sky);
  color: var(--blue);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.fee-val { color: var(--navy); font-weight: 700; font-size: 14px; }
.fee-sub { color: var(--sub); font-size: 12px; }
.fee-div { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

/* ── 메인 레이아웃 ── */
.wrap {
  max-width: 1140px; margin: 32px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* ── 카드 ── */
.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.card-hdr {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.card-hdr .num {
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-body { padding: 20px; }

/* ── 폼 요소 ── */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
label .req { color: var(--red); margin-left: 2px; }
label .opt { color: var(--sub); font-weight: 400; font-size: 11px; margin-left: 4px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #FAFBFD;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,84,150,.12);
  background: var(--white);
}
input::placeholder, textarea::placeholder { color: #b0bac8; }
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.input-hint {
  font-size: 11.5px;
  color: var(--sub);
  margin-top: 5px;
  line-height: 1.5;
}

/* 예상 연회비 미리보기 */
.fee-preview-box {
  background: var(--sky);
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.fee-preview-title { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.fee-preview-amount { font-size: 20px; font-weight: 800; color: var(--navy); }
.fee-preview-detail { font-size: 11.5px; color: var(--sub); margin-top: 4px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* 라디오/체크 그룹 */
.radio-group, .check-group {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 2px;
}
.radio-group label, .check-group label {
  display: flex; align-items: center; gap: 6px;
  font-weight: 400; font-size: 13px; color: var(--text);
  cursor: pointer; margin: 0;
  background: var(--light);
  border: 1.5px solid var(--line);
  padding: 7px 13px;
  border-radius: 20px;
  transition: all .15s;
  white-space: nowrap;
}
.radio-group label:has(input:checked),
.check-group label:has(input:checked) {
  background: var(--sky);
  border-color: var(--blue);
  color: var(--navy);
  font-weight: 700;
}
.radio-group input, .check-group input { accent-color: var(--blue); }

/* 파일 업로드 */
.file-box {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--light);
  position: relative;
}
.file-box:hover { border-color: var(--blue); background: var(--sky); }
.file-box input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-box .icon { font-size: 24px; margin-bottom: 6px; }
.file-box .txt { font-size: 13px; color: var(--sub); }
.file-box .txt strong { color: var(--blue); }

/* 개인정보 동의 */
.agree-box {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.7;
  max-height: 110px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.agree-box strong { color: var(--navy); }
.agree-chk {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--navy);
  cursor: pointer;
}
.agree-chk input { accent-color: var(--navy); width: 16px; height: 16px; }

/* 제출 버튼 */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn:hover { opacity: .88; }
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── 사이드바 ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.side-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 18px;
}
.side-card h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--sky);
  display: flex; align-items: center; gap: 6px;
}

.fee-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fee-table th {
  background: var(--navy); color: #fff;
  padding: 7px 10px; font-weight: 700; font-size: 12px;
}
.fee-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table tr:nth-child(even) td { background: var(--light); }
.fee-table .amt { font-weight: 700; color: var(--navy); text-align: right; }

.step-list { list-style: none; }
.step-list li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; font-size: 13px;
}
.step-list li:last-child { margin-bottom: 0; }
.step-num {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--navy); color: #fff;
  border-radius: 50%;
  font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step-txt strong { display: block; font-size: 12.5px; color: var(--navy); margin-bottom: 1px; }
.step-txt span { font-size: 11.5px; color: var(--sub); }

.contact-list { list-style: none; font-size: 13px; }
.contact-list li {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .lbl {
  font-weight: 700; color: var(--navy);
  min-width: 44px; font-size: 12px;
}
.contact-list .val { color: var(--sub); }

/* 성공 메시지 */
#success-msg {
  text-align: center;
  padding: 60px 20px;
}
#success-msg .icon { font-size: 56px; margin-bottom: 16px; }
#success-msg h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
#success-msg p { color: var(--sub); font-size: 14px; line-height: 1.8; }
.receipt-no {
  display: inline-block;
  background: var(--sky);
  color: var(--navy);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .5px;
  padding: 10px 20px;
  border-radius: 8px;
  margin: 14px 0;
}

/* 오류 */
.err-msg { color: var(--red); font-size: 11.5px; margin-top: 4px; display: none; }
.err-msg.show { display: block; }
input.err, select.err, textarea.err { border-color: var(--red); }

.alert-error {
  background: #FCEDEC;
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin: 0 20px 16px;
  line-height: 1.6;
}

/* 구분선 */
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.note {
  font-size: 11.5px; color: var(--sub);
  background: var(--light);
  border-left: 3px solid var(--blue);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-top: 10px;
  line-height: 1.6;
}
