/* 온라인 참가신청 — 헤더·서브네비는 information.css */
@import url('../information.css');

@media (min-width: 1025px) {
  .info-page-top--exh {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    background: none !important;
  }

  .info-page-top--exh .header-bg {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    align-self: start;
    background: #011D20 !important;
    background-color: #011D20 !important;
    box-shadow: none !important;
  }

  .info-page-top--exh .exh-hero {
    grid-column: 1;
    grid-row: 2;
    z-index: 1;
    width: 100%;
    min-width: 0;
  }

  .info-page-top--exh .header-inner {
    background: transparent !important;
  }

  .info-page-top--exh .info-subnav {
    grid-row: 3;
    grid-column: 1;
    z-index: 2;
    margin-top: 0 !important;
  }
}

.exh-hero {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 64px;
  box-sizing: border-box;
  overflow: hidden;
}

.exh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  background-color: #fff;
}

.exh-hero__bg img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.45) contrast(0.92) saturate(0.85);
}

.exh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: none;
  opacity: 1;
  pointer-events: none;
}

.exh-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  color: #000 !important;
}

.exh-hero__inner h1 {
  color: #000 !important;
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 800;
  line-height: 130%;
  letter-spacing: -0.03em;
}

.exh-hero__inner p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 168%;
  letter-spacing: -0.02em;
  color: #000 !important;
}

/* 모바일: 참가안내 5메뉴 — guide.css 와 동일 (이 페이지는 guide 미포함) */
@media (max-width: 767px) {
  .info-page-top--guide .info-subnav-inner:has(> .info-subnav__link:nth-child(5):last-child) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1px !important;
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .info-page-top--guide .info-subnav-inner:has(> .info-subnav__link:nth-child(5):last-child)::after {
    content: '';
    display: block;
    grid-column: 2;
    grid-row: 3;
    background: #228380;
    align-self: stretch;
    pointer-events: none;
  }

  .info-page-top--guide .info-subnav-inner:has(> .info-subnav__link:nth-child(5):last-child) > .info-subnav__link {
    border: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    background: #228380 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 140% !important;
    min-height: 0;
    padding: 16px !important;
    box-sizing: border-box;
  }

  .info-page-top--guide .info-subnav-inner:has(> .info-subnav__link:nth-child(5):last-child) > .info-subnav__link.is-active {
    background: #011D20 !important;
    color: #fff !important;
    font-weight: 800 !important;
  }
}

/* ----- 본문 ----- */
.app-content {
  background: #fff;
  padding: 64px 24px 96px;
}

.app-content-inner {
  position: relative;
}

.app-page-head {
  margin-bottom: 32px;
}

.app-page-head__title-wrap {
  display: inline-block;
}

.app-page-head__title {
  margin: 0;
  font-weight: 800;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: #011D20;
}

.app-page-head__lead {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 168%;
  letter-spacing: -0.02em;
  color: #555;
}

/* 안내 박스 */
.app-info-box {
  margin: 0 0 48px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
}

.app-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  margin: 0;
  align-items: stretch;
  border-bottom: 1px solid #e8e8e8;
}

.app-info-row:last-child {
  border-bottom: none;
}

.app-info-row dt {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 22px 16px;
  background: #fafafa;
  border-right: 1px solid #e8e8e8;
  font-size: 14px;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: -0.02em;
  color: #222;
  text-align: center;
  box-sizing: border-box;
}

.app-info-row dd {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 22px 28px;
  font-size: 14px;
  line-height: 160%;
  letter-spacing: -0.02em;
  color: #333;
  box-sizing: border-box;
}

.app-info-row__main {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
}

.app-info-row__main:last-child {
  margin-bottom: 0;
}

.app-info-row__main strong {
  font-weight: 800;
}

.app-info-row__text {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.app-info-row__text:last-child {
  margin-bottom: 0;
}

.app-info-row__sub {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 160%;
  color: #0F6055;
}

/* 참가 가이드 동의 */
.app-agree__head {
  margin-bottom: 16px;
}

.app-agree__title-wrap {
  display: inline-block;
}

.app-agree__title {
  margin: 0;
  font-weight: 800;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: #011D20;
}

.app-agree__warn {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  line-height: 150%;
  letter-spacing: -0.02em;
  color: #222;
}

.app-terms {
  max-height: 360px;
  margin-bottom: 24px;
  padding: 20px 24px;
  overflow-y: auto;
  border: 1px solid #228380;
  background: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 168%;
  letter-spacing: -0.02em;
  color: #333;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.app-terms__heading {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.app-terms__heading:first-child {
  margin-top: 0;
}

.app-terms__list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.app-terms__list li {
  margin-bottom: 4px;
}

.app-terms__list--continue {
  margin-top: 0;
}

.app-terms__sublist {
  margin: 8px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.app-terms__sublist li {
  margin-bottom: 4px;
}

.app-terms__para {
  margin: 0 0 8px;
}

.app-terms__note {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 160%;
  color: #555;
}

.app-terms-table {
  width: 100%;
  margin: 12px 0 16px;
  border-collapse: collapse;
  border: 1px solid #757575;
  font-size: 13px;
  text-align: center;
}

.app-terms-table th,
.app-terms-table td {
  padding: 10px 8px;
  border: 1px solid #757575;
  vertical-align: middle;
}

.app-terms-table thead th {
  background: #f5f5f5;
  font-weight: 700;
  color: #222;
}

.app-terms-table--schedule td:first-child {
  text-align: left;
  padding-left: 12px;
}

.app-terms-table--wide {
  font-size: 12px;
}

.app-terms-table--wide th,
.app-terms-table--wide td {
  padding: 8px 6px;
}

.app-agree-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  cursor: pointer;
  user-select: none;
}

.app-agree-check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-agree-check__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #bbb;
  background: #fff;
  box-sizing: border-box;
}

.app-agree-check__input:checked + .app-agree-check__box {
  border-color: #0F6055;
  background: #0F6055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5.2L4.2 8.4L11 1.6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.app-agree-check__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #222;
}

.app-submit {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 32px;
  border: none;
  border-radius: 2px;
  background: #e5e5e5;
  color: #999;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: not-allowed;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-submit:not(:disabled) {
  background: #0F6055;
  color: #fff;
  cursor: pointer;
}

.app-submit:not(:disabled):hover {
  background: #0F6055;
}

/* 플로팅 */
.app-floats {
  position: fixed;
  right: max(16px, calc((100vw - var(--content-max-width)) / 2 + 16px));
  top: 200px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.app-floats > * {
  pointer-events: auto;
}

.app-floats__online {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: #0F6055;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.app-floats__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.app-floats__top:hover,
button[data-scroll-top]:hover {
  filter: brightness(1.12);
}

@media (min-width: 768px) {
  .info-page-top + main.app-content,
  .info-page-top + main.exh-content.app-content {
    padding-top: 120px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .exh-hero {
    min-height: 280px;
    padding: 48px 24px 56px;
  }

  .exh-hero__inner h1 {
  color: #000 !important;
    font-size: clamp(28px, 4vw, 36px);
  }

  .app-content {
    padding: 160px 24px 72px;
  }

  .app-floats {
    right: 20px;
    top: 180px;
  }

  .app-floats__online {
    width: 96px;
    height: 96px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .info-page-top--exh .info-subnav {
    margin-top: 0 !important;
  }

  .exh-hero__inner h1 {
  color: #000 !important;
    font-size: 26px;
    margin-bottom: 12px;
  }

  .exh-hero__inner p {
    font-size: 14px;
  }

  .app-content {
    padding: 40px 16px 64px;
  }

  .app-info-row {
    grid-template-columns: 1fr;
  }

  .app-info-row dt {
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    justify-content: flex-start;
    padding: 14px 16px;
    text-align: left;
  }

  .app-info-row dd {
    padding: 16px;
  }

  .app-agree__title {
    font-size: 20px;
  }

  .app-terms {
    max-height: 220px;
    padding: 16px;
  }

  .app-floats {
    right: 12px;
    top: auto;
    bottom: 24px;
  }

  .app-floats__online {
    width: 80px;
    height: 80px;
    font-size: 11px;
  }

  .app-floats__top {
    width: 44px;
    height: 44px;
  }
}
