/* /seminar/mantech_reg/assets/css/reg.css */
:root{
  --line:#d1d5db;
  --bar:#a9a9a9;
  --text:#111827;
  --muted:#6b7280;
  --black:#0b0b0b;
  --shadow: 0 18px 60px rgba(2,6,23,.08);
}


*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Pretendard,Apple SD Gothic Neo,Malgun Gothic,sans-serif;
  color:var(--text);
  background:#fff;
}



/* 가운데 배치 */
.page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px 16px;
}

/* 전체 프레임(좌/우 동일폭 50:50) */
.frame{
  width: min(1200px, 100%);
  min-height: 640px;
  border: 1px solid #9ca3af;
  display:grid;
  background:#fff;
  box-shadow: var(--shadow);
  grid-template-columns: 1fr 1.6fr; /* 왼쪽↓ 오른쪽↑ */
}

/* LEFT */
.left{
  background: url("../../header.jpg") no-repeat center top;
background-size: cover;
  padding: 36px 34px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.left-top .logo{
  font-weight:800;
  letter-spacing:.3px;
  opacity:.95;
}

.logo img {
height:50px; }
.left-mid{
  margin-top: 120px;
}
.left-mid h1{
  margin:0;
      font-size: 30px;
    line-height: 1.4;
  font-weight: 900; color:#fff;
}

/* RIGHT */
.right{
  display:flex;
  align-items:stretch;
}
.right-inner{
  width:100%;
  padding: 24px 34px;
}

.title{
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

/* 섹션 바 */
.section-bar{
  height: 36px;
  background: var(--bar);
  color:#fff;
  display:flex;
  align-items:center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  border-radius: 4px;
}

/* ✅ 입력 2컬럼: 좌/우 컬럼 폭 동일 + 끝 라인 정렬 안정화 */
.form-grid{
  margin-top: 20px;
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 16px;
}

.row{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.label{
  font-size: 12px;
  color:#374151;
  font-weight: 800;
}

/* ✅ 박스형 input */
.control{
  min-width:0;
}

.control input{
  width:100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline:none;
  padding: 0 12px;
  font-size: 13px;
  background:#fff;
}

.control input:focus{
  border-color:#111827;
  box-shadow: 0 0 0 4px rgba(17,24,39,.10);
}


.control select{
  width:100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline:none;
  padding: 0 12px;
  font-size: 13px;
  background:#fff;
}

.control select:focus{
  border-color:#111827;
  box-shadow: 0 0 0 4px rgba(17,24,39,.10);
}

/* ✅ 휴대폰: 3칸 동일폭 + 전체 폭 정확히 맞추기(끝 라인 정렬 핵심) */
.phone-line{
  display:grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap:10px;
  align-items:center;
  min-width:0;
}

.phone-line input{
  width:100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline:none;
  padding: 0 10px;
  text-align:center;
  font-size: 13px;
  background:#fff;
}

.phone-line input:focus{
  border-color:#111827;
  box-shadow: 0 0 0 4px rgba(17,24,39,.10);
}

.dash{
  color:#9ca3af;
  font-weight:700;
  text-align:center;
}

/* 동의 */
.agree-wrap{
  margin-top: 16px;
  padding-left: 2px;
}
.chk{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  color:#111827;
  margin: 10px 0;
}
.chk input{ transform: translateY(1px); }

.agree-desc{
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* 버튼 */
.btn-row{
  margin-top: 22px;
}
.btn{
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background:#111827;
  color:#fff;
  font-weight: 900;
  cursor:pointer;
}
.btn:hover{ filter: brightness(1.06); }

/* ✅ 트레이닝 날짜 체크박스: 2열 그리드 */
/* =========================
   TRAINING DATE (checkbox)
   - 2 columns per row
   - keep existing card look
   - show count on the right (n/22)
========================= */

/* 2열 배치 */
.date-checks{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px 12px;
}

/* 카드(기존 .chk 스타일 기반) */
.date-checks .date-chk{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:12px 14px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:#fff;

  cursor:pointer;
  margin:0; /* ✅ 기존 .chk의 margin: 10px 0 제거 */
}

/* 왼쪽: 체크박스 + 텍스트 */
.date-checks .date-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.date-checks .date-left input{
  width:18px;
  height:18px;
  flex:0 0 auto;
}
.date-checks .date-text{
  display:block;
  min-width:0;
  line-height:1.25;
  word-break:keep-all;
}

/* 오른쪽: n/22 */
.date-checks .date-count{
  flex:0 0 auto;
  font-size:12px;
  font-weight:800;
  color: var(--muted);
}

/* 마감(disabled) */
.date-checks .date-chk.is-disabled{
  opacity:.45;
  cursor:not-allowed;
}
.date-checks .date-chk.is-disabled input{
  cursor:not-allowed;
}

/* 선택됐을 때(선택 강조) */
.date-checks .date-chk:has(input:checked){
  border-color:#111827;
  box-shadow: 0 0 0 4px rgba(17,24,39,.08);
}

/* 모바일: 1열 */
@media (max-width: 980px){
  .date-checks{
    grid-template-columns: 1fr;
  }
}

/* =========================
   MODAL
========================= */
.modal-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 9999;
}

.modal-overlay.is-open{ display:flex; }

.modal{
  width: min(620px, 100%);
  background:#fff;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.12);
  box-shadow: 0 20px 70px rgba(2,6,23,.25);
  overflow:hidden;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.modal-head h3{
  margin:0;
  font-size: 15px;
  font-weight: 900;
}
.modal-close{
  border:0;
  background:transparent;
  font-size: 18px;
  cursor:pointer;
  padding: 6px 8px;
  line-height: 1;
}

.modal-body{
  padding: 14px 16px 4px;
  font-size: 13px;
  line-height: 1.6;
  color:#111827;
      height: 280px;
    overflow: auto;
}

.modal-list{
  margin:0;
  padding-left: 18px;
}
.modal-list li{ margin: 8px 0; color:#374151; }

.modal-note{
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.modal-foot{
  padding: 12px 16px 16px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.modal-btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border:0;
  background:#111827;
  color:#fff;
  font-weight: 900;
  cursor:pointer;
}

.modal-link{
  color:#111827;
  text-decoration: none;
  font-weight: 900;
}
.modal-link:hover{ opacity:.85; }


/* 반응형 */
@media (max-width: 980px){
  .frame{
    grid-template-columns: 1fr;
    min-height:auto;
  }
  .left{
    min-height: 220px;
  }
  .left-mid{ margin-top: 54px; }
  .right-inner{ padding: 22px; }

  .form-grid{
    grid-template-columns: 1fr;
  }
}
