.eventApplyAllWrap {
  width: 100%;
  height: auto;
}

/* ===== 레이아웃: 좌 행사 안내 / 우 신청 폼 ===== */
.eventApplyAllWrap .contentSection .contentMain .applyLayout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 행사 안내 카드 ===== */
.eventInfo {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(27, 59, 134, 0.06);
}
.eventPoster {
  background: #f5f7fb;
}
.eventPoster img {
  display: block;
  width: 100%;
  height: auto;
}
.eventInfoBody {
  padding: 24px 24px 26px;
}
.eventBadge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  background: #e6f0ff;
  color: #1b3b86;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.eventInfoBody h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  margin-bottom: 18px;
  word-break: keep-all;
}
.eventMeta {
  margin: 0;
  border-top: 1px solid #e1e5ee;
}
.eventMetaRow {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f5;
  font-size: 14.5px;
  line-height: 1.55;
}
.eventMetaRow dt {
  flex: 0 0 44px;
  font-weight: 700;
  color: #1b3b86;
}
.eventMetaRow dd {
  margin: 0;
  color: #333;
  word-break: keep-all;
}
.eventMetaRow dd strong {
  font-weight: 700;
  color: #222;
}
.eventSub {
  color: #7a8396;
  font-size: 13px;
}
.eventDesc {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  word-break: keep-all;
}
.eventContact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  background: #f5f7fb;
  border-radius: 8px;
  font-size: 14px;
}
.eventContactLabel {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  /* background: #1b3b86; */
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 4px;
}
.eventContactIcon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}
.eventContact a {
  color: #222;
  font-weight: 600;
  text-decoration: none;
}
.eventContact a:hover { text-decoration: underline; }
.eventNoticeLink {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1b3b86;
  text-decoration: none;
}
.eventNoticeLink:hover { text-decoration: underline; }

/* ===== 신청 폼 ===== */
.applyWrap {
  min-width: 0;
}
.applyForm {
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 16px;
  padding: 36px 40px 40px;
}
.formHead {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1b3b86;
}
.formHead h3 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.formGuide {
  font-size: 14px;
  color: #666;
}
.formGuide em,
.applyForm label em,
.formGroup legend em {
  color: #d1343b;
  font-style: normal;
  margin-right: 2px;
}

.formGroup {
  border: 0;
  padding: 0;
  margin: 0 0 0px;
  min-width: 0;
}
.formGroup legend {
  display: none;
  width: 100%;
  padding: 0 0 12px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #1b3b86;
  border-bottom: 1px solid #e1e5ee;
}
.formGroup legend .optional {
  font-size: 13px;
  font-weight: 500;
  color: #7a8396;
}

.applyForm .formRow {
  margin-bottom: 22px;
}
.applyForm .formRow2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.applyForm label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.applyForm input[type="text"],
.applyForm input[type="tel"],
.applyForm input[type="email"],
.applyForm textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background: #fff;
  border: 1px solid #d5d9e2;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.applyForm textarea {
  resize: vertical;
  min-height: 120px;
}
.applyForm input:focus,
.applyForm textarea:focus {
  outline: none;
  border-color: #1b3b86;
  box-shadow: 0 0 0 3px rgba(27, 59, 134, 0.15);
}
.applyForm input.isInvalid,
.applyForm textarea.isInvalid {
  border-color: #d1343b;
  background: #fffafa;
}
.applyForm ::placeholder {
  color: #9aa3b5;
}

.applyForm .fieldHelp {
  margin-top: 6px;
  font-size: 13px;
  color: #7a8396;
}
.applyForm .fieldMeta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.applyForm .fieldError {
  min-height: 20px;
  margin-top: 6px;
  font-size: 13.5px;
  color: #d1343b;
}
.applyForm .fieldError:empty {
  min-height: 0;
  margin-top: 0;
}
.applyForm .charCount {
  margin-top: 6px;
  font-size: 13px;
  color: #7a8396;
  white-space: nowrap;
}

/* 허니팟 */
.applyForm .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== 개인정보 동의 ===== */
.privacySection {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid #e1e5ee;
}
.privacyTitle {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1b3b86;
}
.privacyTitle em {
  color: #d1343b;
  font-style: normal;
  margin-right: 4px;
}
.privacyTitle span {
  font-weight: 600;
  color: #555;
}
.privacyIntro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  word-break: keep-all;
}
.privacyTable {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #1b3b86;
  margin-bottom: 12px;
}
.privacyTable th,
.privacyTable td {
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e1e5ee;
}
.privacyTable th {
  width: 120px;
  font-weight: 600;
  color: #222;
  background: #f5f7fb;
}
.privacyTable td {
  color: #333;
}
.privacyPeriod {
  color: #d1343b;
  font-weight: 700;
}
.privacyNote {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.applyForm .agreeRow {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #d5d9e2;
  border-radius: 8px;
}
.applyForm .agreeLabel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
.applyForm .agreeLabel input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #1b3b86;
}
.applyForm .agreeRow .fieldError {
  margin-top: 8px;
}

/* ===== 버튼 / 결과 ===== */
.applyForm .formActions {
  margin-top: 28px;
  text-align: center;
}
.submitBtn,
.ghostBtn {
  display: inline-block;
  min-width: 220px;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.submitBtn {
  background: #1b3b86;
  color: #fff;
  border: 1px solid #1b3b86;
}
.submitBtn:hover,
.submitBtn:focus-visible {
  background: #2b60a5;
  border-color: #2b60a5;
  color: #fff;
}
.submitBtn:disabled {
  background: #9aa3b5;
  border-color: #9aa3b5;
  cursor: not-allowed;
}
.ghostBtn {
  background: #fff;
  color: #1b3b86;
  border: 1px solid #c9d3ea;
}
.ghostBtn:hover,
.ghostBtn:focus-visible {
  background: #f0f3fa;
}
.applyForm .formResult {
  min-height: 22px;
  margin-top: 14px;
  font-size: 15px;
}
.applyForm .formResult.isError {
  color: #d1343b;
}

/* ===== 완료 화면 ===== */
.applyDone {
  padding: 56px 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 16px;
  outline: none;
}
.doneIcon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f0ff;
  color: #1b3b86;
  font-size: 30px;
  font-weight: 700;
  border-radius: 50%;
}
.applyDone h3 {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.doneLead {
  font-size: 16px;
  color: #555;
  margin-bottom: 26px;
}
.doneLead strong {
  color: #1b3b86;
  font-size: 18px;
}
.doneSummary {
  max-width: 440px;
  margin: 0 auto 24px;
  text-align: left;
  border-top: 1px solid #e1e5ee;
}
.doneSummary > div {
  display: flex;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid #eef0f5;
  font-size: 15px;
}
.doneSummary dt {
  flex: 0 0 60px;
  font-weight: 700;
  color: #1b3b86;
}
.doneSummary dd {
  margin: 0;
  color: #333;
}
.doneNote {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 28px;
  word-break: keep-all;
}
.doneActions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .eventApplyAllWrap .contentSection .contentMain .applyLayout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .eventInfo {
    position: static;
    display: grid;
    grid-template-columns: 220px 1fr;
  }
  .eventPoster img {
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .eventInfo {
    grid-template-columns: 1fr;
  }
  .eventPoster img {
    height: auto;
  }
  .eventInfoBody {
    padding: 20px;
  }
  .applyForm {
    padding: 24px 20px 28px;
  }
  .applyForm .formRow2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .applyForm .formRow2 > div {
    margin-bottom: 22px;
  }
  .applyForm .formRow2 > div:last-child {
    margin-bottom: 0;
  }
  .applyForm input[type="text"],
  .applyForm input[type="tel"],
  .applyForm input[type="email"],
  .applyForm textarea {
    padding: 12px 14px;
    font-size: 15px;
  }
  .privacyTable th,
  .privacyTable td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
  }
  .privacyTable th {
    border-bottom: 0;
  }
  .submitBtn,
  .ghostBtn {
    width: 100%;
    min-width: 0;
  }
  .applyDone {
    padding: 40px 20px;
  }
}
