@font-face {
  font-weight: 400;
  src: url(SamsungGinGodicRegular-CSVvyDka.ttf) format("truetype");
  font-family: samsungGinGodic;
}
@font-face {
  font-weight: 700;
  src: url(SamsungGinGodicBold-Cfppbm7o.ttf) format("truetype");
  font-family: samsungGinGodic;
}
@font-face {
  font-weight: 900;
  src: url(SamsungGinGodicExtraBold-bc0pWdKa.ttf) format("truetype");
  font-family: samsungGinGodic;
}

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

html, body {
  margin: 0; padding: 0;
  font-family: samsungGinGodic, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

ul, li { list-style: none; margin: 0; padding: 0; }

/* ── 전체 컨테이너 ── */
.event-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ── 헤더 ── */
.event-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 360px;
  background-image: url(https://samsungevent.mplanit.co.kr/assets/pc_2501--Xc07tXq.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #31302c;
  font-weight: 900;
  font-size: 50px;
  line-height: 1.4;
}
.event-header .highlight { color: #1629a1; }

/* ── 폼 본체 ── */
.event-body {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  width: 760px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #1629a1;
  white-space: nowrap;
  margin: 40px 0 20px;
}
.section-title::after { content: "*"; color: red; margin-left: 5px; }

/* ── 폼 행 ── */
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }

.form-row {
  display: flex;
  width: 100%;
  height: 50px;
  margin-bottom: 6px;
  align-items: center;
}
.form-row.auto-height { height: auto; align-items: flex-start; padding: 6px 0; }

.form-label {
  width: 100px;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #31302c;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.form-label.required::after { content: "*"; color: red; margin-left: 5px; }

.form-value { display: flex; width: 100%; align-items: center; }

/* ── 입력 필드 ── */
.form-input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  font-family: samsungGinGodic, sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: #1629a1; }
.form-input.error { border-color: red; }
.form-input:disabled { background-color: #f9f9f9; color: #999; }

/* ── 우편번호 줄 ── */
.postcode-row { display: flex; gap: 8px; width: 100%; }
.postcode-row .form-input { flex: 1; }

/* ── 버튼 그룹 (성별, 연령대, 퀴즈) ── */
.btn-group { display: flex; width: 100%; gap: 5px; }

.btn-option {
  flex: 1;
  height: 50px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
  color: #d7d7d7;
  font-family: samsungGinGodic, sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-option.selected {
  background-color: #1629a1;
  border-color: #1629a1;
  color: #fff;
  font-weight: 700;
}

/* ── 우편번호 찾기 버튼 ── */
.btn-postcode {
  height: 40px;
  padding: 0 14px;
  background-color: #1629a1;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: samsungGinGodic, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-postcode:hover { background-color: #0f1e7a; }

/* ── 안내 문구 ── */
.info-text {
  color: #818181;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 24px;
  word-break: keep-all;
}

/* ── 에러 문구 ── */
.error-text {
  color: red;
  font-size: 0.875rem;
  padding: 2px 100px;
  min-height: 20px;
  display: none;
}
.error-text.visible { display: block; }

/* ── 개인정보처리방침 박스 ── */
.privacy-box {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #d7d7d7;
  margin-bottom: 16px;
  color: #31302c;
}

/* ── 개인정보처리방침 내용 ── */
.pp-wrap {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 10px;
  gap: 5px;
}
.pp-title { font-size: 1rem; font-weight: 900; margin-bottom: 5px; }
.pp-title2 { font-size: 0.875rem; font-weight: 700; margin-top: 5px; display: flex; align-items: center; gap: 4px; width: 100%; }
.pp-subtitle { font-size: 0.75rem; font-weight: 700; margin-top: 5px; }
.pp-tabletitle { font-size: 0.75rem; height: 1.5rem; display: block; font-weight: 700; margin-top: 5px; text-align: center; }
.pp-img-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 0; }
.pp-img-sm { max-height: 50px; max-width: 50px; }
.pp-img-md { max-height: 50px; max-width: 50px; }

.pp-table { display: flex; flex-direction: column; width: 100%; border-collapse: collapse; }
.pp-table-row { display: flex; border-top: 1px solid #e9e9e9; }
.pp-table-row:last-child { border-bottom: 1px solid #e9e9e9; }
.pp-table-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 50px;
  padding: 12px;
  border-right: 1px solid #e9e9e9;
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 0.75rem;
}
.pp-table-cell:last-child { border-right: none; }
.pp-table-cell.header { background-color: #f9f9f9; font-weight: 700; }
.pp-table-cell.left { justify-content: center; align-items: flex-start; flex-direction: column; text-align: left; }
.pp-table-cell.center { justify-content: center; align-items: center; text-align: center; flex-direction: column; }
.pp-list { padding-left: 1em; }
.pp-list-item { position: relative; padding-left: 1em; margin-bottom: 2px; line-height: 1.6; }
.pp-list-item::before { content: "-"; position: absolute; left: 0; color: #666; }

/* ── 동의 체크박스 ── */
.agree-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.agree-row input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.agree-label { font-size: 1rem; color: #31302c; white-space: nowrap; }
.agree-label .tag { color: #1629a1; font-weight: 700; }

/* ── 제출 버튼 ── */
.btn-submit {
  width: 100%;
  height: 60px;
  background-color: #1629a1;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: samsungGinGodic, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 30px;
  transition: background-color 0.2s;
}
.btn-submit:hover { background-color: #0f1e7a; }

/* ── 모달 ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 500;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 380px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  line-height: 1.8;
}
.modal-box .modal-sub { color: #818181; font-size: 0.75rem; font-weight: 400; }
.modal-box .btn-close {
  margin-top: 10px;
  padding: 6px 20px;
  border: 1px solid #1629a1;
  background: #fff;
  color: #1629a1;
  border-radius: 4px;
  font-family: samsungGinGodic, sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
}
.modal-box .btn-close:hover { background: #1629a1; color: #fff; }

/* ── 토스트 알림 ── */
.toast-notify {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1629a1;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 9999;
  display: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  font-family: samsungGinGodic, sans-serif;
}
.toast-notify.show { display: block; }

/* ── 체크박스 미동의 강조 ── */
.checkbox-error { outline: 2px solid red; border-radius: 2px; }

/* ── 반응형 ── */
@media screen and (max-width: 768px) {
  .event-header {
    background-image: url(https://samsungevent.mplanit.co.kr/assets/mo_2501-BX5V4MGg.png);
    height: 200px;
    font-size: 1.75rem;
  }
  .event-body { width: 100%; padding: 0 15px; }
  .form-label { font-size: 1rem; width: 70px; }
  .info-text { font-size: 0.75rem; }
  .error-text { padding: 2px 70px; font-size: 0.75rem; }
}
