/* WIA support pages
   Page-owned styles for training and survey. This file intentionally depends
   only on the shared portal tokens and shell in tokens.css / styles.css. */

:root {
  --support-accent: var(--color-gold);
  --support-ink: var(--ink-body);
  --support-muted: var(--ink-soft);
  --support-line: #d9dde1;
  --support-surface: #f5f6f7;
  --support-dark: var(--color-navy);
  --support-radius: 8px;
  --support-shadow: 0 18px 48px rgba(16, 24, 32, .18);
}

[hidden] { display: none !important; }


#container {
  /* 최소높이(구 min-height:60vh 매직값) 제거 — body.page-shell의 flexbox 스티키 푸터가 대체 */
  padding: calc(var(--header-h) + 7rem) 0 10rem;
}

#contents.service > .page-head,
#contents.service > section,
#contents.service > .inner {
  width: 100%;
}

#contents.service .inner {
  width: min(100%, var(--inner-w));
  margin-inline: auto;
  padding-inline: var(--inner-pad);
}

.skip {
  position: fixed;
  top: -100px;
  left: 1.6rem;
  z-index: 1200;
  padding: 1rem 1.6rem;
  background: var(--support-dark);
  color: #fff;
}

.skip:focus { top: 1.6rem; }

.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-head { margin-bottom: 7rem; }
.page-head .section-title { justify-content: center; }
.page-head__desc {
  margin-top: 1.8rem;
  color: var(--support-muted);
  font-size: 1.5rem;
  text-align: center;
}

.content-divider {
  height: 1px;
  margin-bottom: 4.8rem;
  background: var(--support-line);
}

/* Popup boundary markers are retained for the existing script contract but
   must not participate in visual layout. */
#contents.service.training > hr[id$="_end"] { display: none; }

/* Shared form system */
#contents.service.inquiry { padding-bottom: 6rem; }
#contents.service.inquiry .inquiry-wrap { padding-top: 2rem; }
#contents.service .inquiry-head { padding-top: 4.8rem; }
#contents.service .inquiry-h3 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.3;
}
#contents.service .inquiry-head__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.4rem;
  padding-top: 1.6rem;
}
#contents.service .inquiry-lead {
  max-width: 104ch;
  color: var(--support-muted);
}
#contents.service .inquiry-required {
  flex: 0 0 auto;
  color: var(--support-muted);
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
}
#contents.service .req { color: #c33; font-weight: 800; }

#contents.service .form-common { margin-top: 2.4rem; }
#contents.service .form-common .form-tit {
  margin: 4.8rem 0 1.6rem;
  font-size: 2rem;
  line-height: 1.3;
}
#contents.service .form-common .form-tit:first-child { margin-top: 0; }
#contents.service .form-common .form-rows {
  padding: 2rem;
  border: 1px solid var(--support-line);
  border-radius: var(--support-radius);
  background: #fff;
}
#contents.service .form-common .form-rows + .form-rows { margin-top: 1.8rem; }
#contents.service .form-common .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 3.2rem;
}
#contents.service .form-common .form-row:has(.form-item:only-child) { grid-template-columns: 1fr; }
#contents.service .form-common .form-row + .form-row { margin-top: 1.6rem; }
#contents.service .form-common .form-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .8rem;
  min-width: 0;
}
#contents.service .form-common .form-item.is-full,
#contents.service .form-common .form-item--full { grid-column: 1 / -1; }
#contents.service .form-common .form-label {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
}
#contents.service .form-common .form-field { min-width: 0; }
#contents.service .form-common input[type="text"],
#contents.service .form-common input[type="email"],
#contents.service .form-common input[type="tel"],
#contents.service .form-common input[type="number"],
#contents.service .form-common select,
#contents.service .form-common textarea {
  width: 100%;
  min-height: 5rem;
  padding: 0 1.6rem;
  border: 1px solid var(--support-line);
  border-radius: 4px;
  background: #fff;
  color: var(--support-ink);
  font-size: 1.5rem;
  outline: 0;
}
#contents.service .form-common textarea {
  min-height: 16rem;
  padding-top: 1.4rem;
  resize: vertical;
}
#contents.service .form-common input::placeholder,
#contents.service .form-common textarea::placeholder { color: #969da4; }
#contents.service .form-common select {
  appearance: none;
  padding-right: 4.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--support-muted) 50%),
    linear-gradient(135deg, var(--support-muted) 50%, transparent 50%);
  background-position: calc(100% - 2rem) 50%, calc(100% - 1.4rem) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}
#contents.service .form-common input:focus,
#contents.service .form-common select:focus,
#contents.service .form-common textarea:focus {
  border-color: var(--support-accent);
  box-shadow: 0 0 0 3px rgba(198, 154, 99, .16);
}
#contents.service .form-common .form-inline,
#contents.service .form-common .form-checkbox-group,
#contents.service .form-common .form-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.6rem;
}
#contents.service .form-common label.radio,
#contents.service .form-common label.check,
#contents.service .form-common .form-checkbox,
#contents.service .form-common .form-radio {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  font-size: 1.4rem;
  cursor: pointer;
}
#contents.service .form-common label.radio input,
#contents.service .form-common label.check input,
#contents.service .form-common .form-checkbox input,
#contents.service .form-common .form-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--support-dark);
}
#contents.service .form-common .agree { margin-top: 4.8rem; }
#contents.service .form-common .agree-tit { font-size: 2rem; }
#contents.service .form-common .agree-box {
  margin-top: 1.6rem;
  padding: 2.4rem;
  border: 1px solid var(--support-line);
  border-radius: var(--support-radius);
  background: #fff;
}
#contents.service .form-common .agree-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  width: 100%;
  min-height: 4.8rem;
  padding: 0 1.6rem;
  border: 1px solid var(--support-line);
  border-radius: 4px;
  font-weight: 700;
}
#contents.service .form-common .agree-toggle .ico {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
#contents.service .form-common .agree-toggle.is-open .ico { transform: translateY(2px) rotate(-135deg); }
#contents.service .form-common .agree-more {
  margin-top: 1.6rem;
  color: var(--support-muted);
  font-size: 1.4rem;
  line-height: 1.7;
}
#contents.service .form-common .agree-more ol,
#contents.service .form-common .agree-more ul { padding-left: 2rem; }
#contents.service .form-common .agree-more ol { list-style: decimal; }
#contents.service .form-common .agree-more ul { list-style: disc; }
#contents.service .form-common .agree-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-top: 1.6rem;
}
#contents.service .form-common .agree-check p { color: var(--support-muted); font-size: 1.4rem; }
#contents.service .form-common .form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding-top: 4.8rem;
}
#contents.service .form-common .form-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  min-height: 4.6rem;
  padding: 0 2rem;
  border: 1px solid var(--support-line);
  border-radius: 999px;
  background: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
#contents.service .form-common .form-actions .btn.submit {
  border-color: var(--support-dark);
  background: var(--support-dark);
  color: #fff;
}

/* Training overview and schedule */
/* 하단 여백은 #container(padding-bottom:10rem)가 담당 — 중복 6rem 제거 */
#contents.service.training [data-reveal] { opacity: 1; transform: none; }
#contents.service.training .edu-info,
#contents.service.training .edu-schedule { padding-top: 4.8rem; }
#contents.service.training .edu-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}
#contents.service.training .edu-card {
  min-width: 0;
  padding: 3.2rem;
  border: 1px solid var(--support-line);
  border-radius: var(--support-radius);
  background: var(--support-surface);
}
#contents.service.training .edu-card__tit {
  margin: 2.4rem 0 1.2rem;
  font-size: 2rem;
  line-height: 1.3;
}
#contents.service.training .edu-card__tit:first-child { margin-top: 0; }
#contents.service.training .edu-dot {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  list-style: none;
}
#contents.service.training .edu-dot li {
  position: relative;
  padding-left: 1.2em;
  color: var(--support-muted);
  font-size: 1.4rem;
  line-height: 1.7;
}
#contents.service.training .edu-dot li::before {
  content: "";
  position: absolute;
  top: .75em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--support-accent);
}
#contents.service.training .edu-schedule__head,
#contents.service.training .edu-site__top,
#contents.service.training .edu-schedule__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
#contents.service.training .edu-schedule__actions { flex-wrap: wrap; justify-content: flex-end; }
#contents.service.training .edu-h3,
#contents.service.training .edu-h4 {
  position: relative;
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
  line-height: 1.3;
}
#contents.service.training .edu-h3 { font-size: 2.8rem; }
#contents.service.training .edu-h4 { font-size: 2rem; }
#contents.service.training .edu-h3::before,
#contents.service.training .edu-h4::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 1em;
  border-radius: 2px;
  background: var(--support-accent);
  transform: translateY(-50%);
}
#contents.service.training .edu-site { margin-top: 4.8rem; }
#contents.service.training .edu-site__top { margin-bottom: 1.8rem; }
#contents.service.training .edu-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--support-dark);
  -webkit-overflow-scrolling: touch;
}
#contents.service .support-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}
#contents.service .support-table th,
#contents.service .support-table td {
  padding: 1.2rem;
  border: 1px solid var(--support-line);
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;
  vertical-align: middle;
}
#contents.service .support-table thead th {
  border-color: var(--support-dark);
  background: var(--support-dark);
  color: #fff;
  font-weight: 700;
}
#contents.service.training .support-table--schedule tbody th { background: var(--support-surface); }
#contents.service.training .support-table tbody tr:hover td { background: #faf6f0; }
#contents.service.training .edu-process-link {
  color: var(--color-gold);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-gold);
  text-underline-offset: 3px;
}
/* 모달 다이얼로그는 공용 .policy-modal(styles.css)로 통일됨 — 구 .popup* 규칙 제거.
   교육일정표 표 셀 스타일(.edu-curriculum-*)은 support/training.css 로 일원화(그레이 톤). */
#contents.service.training #eduCheckResult { background: #fff; }

#popupEduMapChangwon .policy-modal__body img,
#popupEduMapGwangmyeong .policy-modal__body img {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  background: var(--support-surface);
}

@media (min-width: 721px) and (max-width: 1024px) {
  #contents.service.training .edu-schedule__head,
  #contents.service.training .edu-site__top { flex-direction: row; }
}

@media (max-width: 1024px) {
  #contents.service.training .edu-info__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #container { padding-bottom: 7rem; }
  #contents.service .form-common .form-rows { padding: 2rem; }
  #contents.service .form-common .form-row { grid-template-columns: 1fr; gap: 1.6rem; }
  #contents.service .form-common .form-actions .btn { flex: 1 1 0; min-width: 0; }
  #contents.service .form-common .agree-check,
  #contents.service.training .edu-schedule__head,
  #contents.service.training .edu-site__top,
  #contents.service.training .edu-schedule__actions { flex-direction: column; align-items: stretch; }
  .edu-curriculum-table { min-width: 0; font-size: 1.3rem; }
  .edu-curriculum-table th,
  .edu-curriculum-table td { padding: .9rem .8rem; }
  .edu-curriculum-list { padding-left: 1.4rem; }
}
