:root {
  --content-width: 900px;
  --point-blue: #0b63f6;
  --bg: #eef6ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
}

#contentsWrap {
  display: none;
}

.apply-hero-section {
  margin-bottom: 0;
  background: transparent;
  overflow: hidden;
}

.apply-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.event-page {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 18px 0 80px;
}

.event-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 12px;
}

.event-block {
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* ½ÅÃ» Æû */
.apply-section {
  padding: 40px 22px 34px;
  background: linear-gradient(180deg, #d7ebfb 0%, #eaf5ff 100%);
  border-radius: 0;
}

.apply-head {
  text-align: center;
  margin-bottom: 26px;
}

.apply-title {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #0f1f3a;
  word-break: keep-all;
}

.apply-desc {
  margin: 12px auto 0;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
  color: #5b6475;
  word-break: keep-all;
}

.apply-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-title {
  font-size: 15px;
  font-weight: 800;
  color: #183153;
}

.input,
.select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(17, 24, 39, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 16px;
  font-size: 16px;
  color: #111827;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: rgba(11, 99, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.12);
}

.radio-row,
.agree-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.phone-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.phone-row .select,
.phone-row .input {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.agree-box {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.agree-link {
  color: var(--point-blue);
  font-weight: 800;
  text-decoration: none;
}

.submit-btn {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b63f6 0%, #0049c7 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(11, 99, 246, 0.22);
}

/* ¸ð´Þ */
.modal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 120;
  background: rgba(2, 12, 33, 0.56);
  padding: 20px;
  justify-content: center;
  align-items: center;
  padding-top: 250px;
}

.modal-content {
  position: relative;
  width: min(100%, 760px);
  max-height: calc(100% - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.modal-content h1 {
  margin: 0 48px 18px 0;
  font-size: 28px;
  line-height: 1.3;
  word-break: keep-all;
  color: #111827;
}

.modal-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  word-break: keep-all;
}

.close,
.close2 {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
}

@media (max-width: 768px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .apply-section {
    padding: 28px 18px 24px;
  }

  .phone-row {
    grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .agree-box {
    padding: 14px 12px;
  }

  .agree-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .agree-row input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 auto;
  }

  .agree-row label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .agree-link {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }

  .modal {
    padding: 12px;
	padding-top: 300px;
  }

  .modal-content {
    width: 100%;
    max-height: calc(100% - 24px);
    padding: 22px 16px 18px;
    border-radius: 16px;
  }

  .modal-content h1 {
    font-size: 22px;
    margin-right: 36px;
  }

  .modal-content p {
    font-size: 14px;
    line-height: 1.7;
  }
}