:root {
  --red-bg: #fdf2f3;
  --cannes: #B8912F;
  --step-done: #1a8a4a;
}

body { margin: 0; }

.page-strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 0 24px; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; color: var(--grey); padding: 8px 0;
}
.breadcrumb span { color: var(--light); }
.breadcrumb a:hover { color: var(--red); }

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.main-col { background: var(--white); border: 1px solid var(--line); }

.section-bar { display: flex; align-items: stretch; border-bottom: 2px solid var(--black); }
.section-bar-label {
  background: var(--teal);
  color: white;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.section-bar-title {
  padding: 8px 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cannes-tag {
  background: var(--cannes);
  color: white;
  font-size: 14px;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.step-progress { display: flex; border-bottom: 1px solid var(--line); background: var(--bg); }
.step-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step-item:last-child { border-right: none; }
.step-item.active { background: var(--white); }
.step-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
}
.step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: var(--grey);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.step-item.active .step-num { background: var(--teal); color: white; }
.step-item.done .step-num { background: var(--step-done); color: white; }
.step-item.done .step-num::after { content: '✓'; }
.step-item.done .step-num span { display: none; }
.step-label { font-size: 16px; font-weight: 500; color: var(--mid); line-height: 1.3; }
.step-item.active .step-label { color: var(--black); }
.step-sub { font-size: 14px; color: var(--light); font-weight: 300; }

.step-panel { display: none; }
.step-panel.on { display: block; animation: fadeIn 0.25s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-body { padding: 20px 24px; }
.notice-box {
  background: var(--red-bg);
  border-left: 3px solid var(--red);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--dark);
  line-height: 1.7;
}
.notice-box strong { color: var(--red); }

.sub-section { margin-bottom: 24px; }
.sub-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.sub-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--teal);
  border-radius: 1px;
}
.sub-required { font-size: 14px; color: var(--red); font-weight: 400; margin-left: auto; }

.member-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.member-card { border: 1px solid var(--line); overflow: hidden; }
.member-card-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 7px 12px;
  display: flex;
  align-items: center;
}
.member-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.member-num {
  background: var(--black);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
}
.member-body { padding: 12px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.form-group { margin-bottom: 8px; }
.form-group:last-child { margin-bottom: 0; }
label { display: block; font-size: 15px; font-weight: 500; color: var(--mid); margin-bottom: 4px; }
.req { color: var(--red); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'InterVariable', 'Noto Sans KR', sans-serif;
  font-size: 17px;
  font-weight: 400;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  box-sizing: border-box;
}
input:focus, select:focus { border-color: var(--red); }
input.err { border-color: var(--red); background: #fff5f5; }
input::placeholder { color: var(--light); }
input[type="date"] { font-size: 16px; color: var(--mid); }

.gender-wrap { display: flex; height: 40px; border: 1px solid var(--line-dark); box-sizing: border-box; }
.gender-btn {
  flex: 1;
  height: 100%;
  padding: 0;
  border: none;
  background: var(--white);
  font-family: 'InterVariable', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  color: var(--mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line-dark);
}
.gender-btn:last-child { border-right: none; }
.gender-btn:hover { background: var(--bg); color: var(--red); }
.gender-btn.active { background: var(--teal); color: white; font-weight: 500; }

.contact-box { background: var(--bg); border: 1px solid var(--line); padding: 16px; margin-bottom: 20px; }
.hint { font-size: 14px; color: var(--grey); margin-top: 3px; line-height: 1.5; }

.pw-check-label { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--mid); cursor: pointer; }
.pw-check {
  width: 16px; height: 16px; margin: 0; appearance: none;
  border: 1px solid var(--line-dark); background: #fff; cursor: pointer;
}
.pw-check:checked {
  border-color: var(--teal);
  background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.agreement-item { border: 1px solid var(--line); margin-bottom: 8px; }
.agreement-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; cursor: pointer; background: var(--bg);
}
.agreement-head-left { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: var(--dark); }
.req-tag { background: var(--teal); color: white; font-size: 13px; font-weight: 700; padding: 1px 5px; border-radius: 2px; }
.toggle-icon { font-size: 15px; color: var(--grey); transition: transform 0.2s; }
.agreement-item.open .toggle-icon { transform: rotate(180deg); }
.agreement-body { display: none; border-top: 1px solid var(--line); }
.agreement-item.open .agreement-body { display: block; }
.agreement-scroll { max-height: 180px; overflow-y: auto; padding: 14px; font-size: 15px; color: var(--mid); line-height: 1.9; border-bottom: 1px solid var(--line); }
.agreement-scroll ol { padding-left: 16px; }
.agreement-check-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; }
.chk-box {
  width: 16px; height: 16px; border: 2px solid var(--line-dark);
  border-radius: 2px; display: flex; align-items: center; justify-content: center; background: white;
}
.chk-box.on { background: var(--teal); border-color: var(--teal); }
.chk-box.on::after { content: '✓'; font-size: 14px; color: white; font-weight: 700; }
.chk-label { font-size: 16px; color: var(--dark); }

.upload-box {
  border: 2px dashed var(--line-dark);
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  cursor: pointer;
  margin-bottom: 12px;
}
.upload-box:hover, .upload-box.drag { border-color: var(--red); background: var(--red-bg); }
.upload-box input { display: none; }
.upload-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.upload-desc { font-size: 15px; color: var(--grey); margin-bottom: 16px; }
.btn-upload-pick {
  display: inline-block;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  padding: 7px 20px;
  font-size: 16px;
  font-weight: 500;
}
.file-list { margin-top: 8px; }
.file-row { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); padding: 8px 12px; margin-bottom: 4px; }
.file-name { flex: 1; color: var(--dark); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--grey); font-size: 15px; }
.file-del { background: none; border: none; color: var(--light); cursor: pointer; font-size: 18px; }
.file-del:hover { color: var(--red); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 12px; }
.spec-table th { background: var(--bg); border: 1px solid var(--line); padding: 7px 12px; text-align: left; width: 30%; }
.spec-table td { border: 1px solid var(--line); padding: 7px 12px; color: var(--mid); }

.confirm-notice {
  background: #fff8e1; border: 1px solid #f0c040; border-left: 3px solid #f0a000;
  padding: 10px 14px; margin-bottom: 16px; font-size: 16px; color: #665500;
}
.submit-success { display: none; }
.confirm-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 17px; }
.confirm-table caption { text-align: left; font-size: 17px; font-weight: 700; color: var(--black); padding: 0 0 6px; border-bottom: 2px solid var(--black); }
.confirm-table th { background: var(--bg); border: 1px solid var(--line); padding: 8px 12px; text-align: left; width: 30%; font-size: 16px; }
.confirm-table td { border: 1px solid var(--line); padding: 8px 12px; color: var(--dark); }
.members-confirm-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.member-confirm-box { border: 1px solid var(--line); font-size: 16px; }
.member-confirm-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 10px; font-weight: 700; font-size: 15px; }
.member-confirm-data { padding: 8px 10px; color: var(--mid); line-height: 1.9; }

.form-actions { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.form-actions.end { justify-content: flex-end; }
.btn-prev { background: var(--white); border: 1px solid var(--line-dark); color: var(--mid); padding: 9px 20px; font-size: 17px; cursor: pointer; }
.btn-next { background: var(--teal); border: none; color: white; padding: 9px 24px; font-size: 17px; font-weight: 700; cursor: pointer; }
.btn-next:hover { background: var(--red-dark); }
.btn-submit { background: var(--black); border: none; color: white; padding: 9px 28px; font-size: 17px; font-weight: 700; cursor: pointer; }

.side-col { display: flex; flex-direction: column; gap: 16px; }
.side-box { background: var(--white); border: 1px solid var(--line); }
.side-box-title {
  background: var(--black); color: white; font-size: 16px; font-weight: 700;
  padding: 8px 12px; letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px;
}
.side-box-title .dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.side-box-body { padding: 12px; }

.deadline-tbl { width: 100%; font-size: 16px; border-collapse: collapse; }
.deadline-tbl tr { border-bottom: 1px solid var(--line); }
.deadline-tbl tr:last-child { border-bottom: none; }
.deadline-tbl td { padding: 7px 4px; vertical-align: middle; }
.deadline-tbl .dl-label { color: var(--mid); width: 55%; }
.deadline-tbl .dl-date { font-weight: 700; color: var(--black); text-align: right; }
.deadline-tbl .dl-date.urgent { color: var(--red); }

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: var(--dark);
}
.info-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 6px;
  line-height: 1.5;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before { content: '▪'; color: var(--red); flex-shrink: 0; margin-top: 1px; }

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-tag {
  display: inline-block;
  background: var(--cannes);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.news-list a {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.5;
  display: block;
  text-decoration: none;
  transition: color 0.15s;
}
.news-list a:hover { color: var(--red); }

.lookup-form { padding: 12px; }
.lookup-form .form-group { margin-bottom: 8px; }
.btn-lookup {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-dark);
  color: var(--dark);
  padding: 8px;
  font-family: 'InterVariable', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.15s;
}
.btn-lookup:hover { background: var(--black); color: white; border-color: var(--black); }

@media (max-width: 860px) {
  .page-wrap { grid-template-columns: 1fr; }
  .side-col { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .members-confirm-grid { grid-template-columns: 1fr; }
  .step-item { padding: 10px 10px; }
  .step-label { font-size: 15px; }
  .step-sub { display: none; }
}
