.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d9dee7; border-radius: 6px; overflow: hidden; margin-bottom: 42px; }
.tab {
  height: 62px;
  border: 0;
  border-right: 1px solid #d9dee7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.tab:last-child { border-right: 0; }
.tab.active { background: var(--primary); color: #fff; }
.section { margin-bottom: 42px; }
.section h2 { font-size: 21px; margin: 0 0 18px; padding-bottom: 13px; border-bottom: 1px solid #d8dde6; position: relative; }
.section h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--primary); }
.form-table { border: 1px solid #e1e5ec; border-radius: 6px; overflow: hidden; }
.row { display: grid; grid-template-columns: 190px 1fr; min-height: 66px; border-bottom: 1px solid #e1e5ec; }
.row:last-child { border-bottom: 0; }
.label { background: #fafafa; padding: 22px 24px; font-weight: 900; border-right: 1px solid #e1e5ec; }
.label.required::after { content: " *"; color: var(--danger); }
.field { padding: 14px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
input, select {
  height: 42px;
  border: 1px solid #d5dbe5;
  border-radius: 4px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}
input[readonly] { background: #f9fafb; color: #6b7280; }
input::placeholder { color: #9aa3af; }
.w-full { width: 100%; }
.w-sm { width: 145px; }
.w-md { width: 250px; }
.w-lg { width: 420px; max-width: 100%; }
.btn-small {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: #eef2f7;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.btn-small:hover { filter: brightness(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-disabled, button:disabled { opacity: .55; cursor: not-allowed; }
.hint { font-size: 13px; color: var(--muted); margin-left: 4px; line-height: 1.5; }
.msg { width: 100%; font-size: 13px; line-height: 1.5; }
.ok { color: var(--success); font-weight: 900; }
.error { color: var(--danger); font-weight: 900; }
.warn { color: var(--warning); font-weight: 900; }
.notice {
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid #e1e7f0;
  border-radius: 4px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.notice strong { color: var(--primary); }
.business-only { display: none; }
body.member-business .business-only { display: block; }
body.member-business .business-only.form-table { display: block; }
body.member-business .business-only .row { display: grid; }
.agree-box { border: 1px solid #dfe5ee; border-radius: 6px; overflow: hidden; }
.agree-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; padding: 0 20px; border-bottom: 1px solid #e6ebf2; font-size: 15px; }
.agree-row:last-child { border-bottom: 0; }
.agree-row label { display: flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; }
.agree-row input { width: 18px; height: 18px; flex: 0 0 auto; }
.view { color: #6b7280; font-size: 14px; background: transparent; border: 0; cursor: pointer; white-space: nowrap; }
.view:hover { color: var(--primary); font-weight: 800; }
.actions { display: flex; justify-content: center; gap: 14px; margin-top: 48px; }
.btn-lg { width: 260px; height: 54px; border-radius: 5px; font-size: 17px; font-weight: 900; cursor: pointer; }
.btn-cancel { border: 1px solid #bfc7d3; background: #fff; color: #374151; }
.btn-join { border: 0; background: var(--primary); color: #fff; }
.btn-join:hover, .btn-primary:hover { background: var(--primary-dark); }
.complete-card {
  display: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 54px 24px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.complete-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}
.complete-card h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.5px; }
.complete-card p { margin: 0 auto 28px; max-width: 620px; color: var(--muted); line-height: 1.7; }
.complete-actions { display: flex; justify-content: center; gap: 10px; }
.summary-box {
  max-width: 620px;
  margin: 26px auto 0;
  border: 1px solid #e1e7f0;
  background: #fff;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
}
.summary-box dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; }
.summary-box dt,
.summary-box dd { margin: 0; padding: 13px 16px; border-bottom: 1px solid #eef2f7; }
.summary-box dt { background: #f7f9fc; font-weight: 900; }
.summary-box dd { color: #4b5563; }
.summary-box dt:last-of-type,
.summary-box dd:last-of-type { border-bottom: 0; }

.call { color: var(--primary); font-size: 24px; font-weight: 900; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(860px, 100%);
  max-height: min(760px, 92vh);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.modal-body {
  overflow: auto;
  padding: 24px;
  line-height: 1.75;
  color: #374151;
  white-space: pre-line;
  font-size: 15px;
}
.modal-body h4 { margin: 22px 0 8px; color: var(--text); }
.modal-actions {
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* 약관동의 */
.agree-box {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.agree-item {
    min-height: 58px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    border-bottom: 1px solid #edf1f6;
}

.agree-item:last-child {
    border-bottom: 0;
}

.agree-item label {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 800;
}

.agree-item input {
    width: 18px;
    height: 18px;
}

.btn-view {
    border: 0;
    background: transparent;

    color: var(--primary);
    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
    white-space: nowrap;
}


.upload-group{
    margin-bottom:14px;
}

.upload-box{
    display:flex;
    align-items:center;
    gap:14px;

    min-height:72px;
    padding:16px 18px;

    background:#fff;
    border:1px dashed #cfd7e3;
    border-radius:10px;

    cursor:pointer;
    transition:.2s;
}

.upload-box:hover{
    border-color:var(--primary);
    background:#f8fbff;
}

.upload-icon{
    width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#eef4ff;
    border-radius:10px;

    font-size:18px;
}

.upload-text strong{
    display:block;

    margin-bottom:4px;

    color:#111827;
    font-size:15px;
    font-weight:900;
}

.upload-text span{
    color:#6b7280;
    font-size:13px;
}

.upload-filename{
    display:inline-flex;
    align-items:center;

    margin-bottom:15px;
	padding-left:20px;

    background:#eef4ff;
    border-radius:999px;

    color:var(--primary);
    font-size:14px;
    font-weight:600;

    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* 약관 전문보기 팝업 */
.terms-modal-bg {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 1000;

    padding: 20px;

    background: rgba(15, 23, 42, .55);
}

.terms-modal-bg.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-modal {
    width: min(820px, 100%);
    max-height: 88vh;

    display: flex;
    flex-direction: column;

    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.terms-head {
    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #e5e7eb;
}

.terms-head h3 {
    margin: 0;

    color: var(--primary);
    font-size: 20px;
}

.modal-close {
    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background: #f3f4f6;

    font-size: 22px;
    cursor: pointer;
}

.terms-body {
    /*padding: 22px;*/

    overflow-y: auto;

    /*color: #374151;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;*/
}



@media (max-width: 768px) {
  .tabs { margin-bottom: 26px; }
  .tab { height: 48px; font-size: 14px; }
  .section { margin-bottom: 30px; }
  .section h2 { font-size: 18px; margin-bottom: 12px; }
  .form-table { border: 0; border-radius: 0; overflow: visible; }
  .row { display: block; border-bottom: 0; min-height: auto; margin-bottom: 12px; }
  body.member-business .business-only .row { display: block; }
  .label { background: #fff; border-right: 0; padding: 0 0 8px; font-size: 14px; }
  .field { padding: 0; gap: 7px; flex-wrap: wrap; }
  input, select { height: 40px; font-size: 13px; padding: 0 10px; }
  .w-sm { width: calc((100% - 18px) / 3); }
  .w-md, .w-lg { width: 100%; }
  .field .id-input { width: calc(100% - 105px); }
  .field .zip-input { width: calc(100% - 105px); }
  .btn-small { height: 40px; padding: 0 13px; font-size: 12px; }
  .hint { width: 100%; font-size: 12px; margin: 3px 0 0; }
  .notice { font-size: 12px; padding: 12px; margin-bottom: 16px; }
  .agree-row { padding: 0 10px; min-height: 46px; font-size: 12px; }
  .view { font-size: 12px; }
  .actions { flex-direction: column-reverse; gap: 8px; margin-top: 24px; }
  .btn-lg { width: 100%; height: 46px; font-size: 14px; }
  .complete-card { padding: 34px 16px; }
  .complete-card h2 { font-size: 22px; }
  .complete-actions { flex-direction: column; }
  .summary-box dl { grid-template-columns: 110px 1fr; font-size: 13px; }
  .summary-box dt, .summary-box dd { padding: 10px 12px; }

    .upload-box {
        min-height: 70px;
        padding: 14px;
        gap: 12px;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .upload-text strong {
        font-size: 14px;
    }

    .upload-text span,
    .upload-text em {
        font-size: 12px;
    }
	
    .agree-item {
        padding: 12px;
        align-items: flex-start;
    }
}