/* 세미나 신청 단계 (apply-1 ~ 3, apply-complete) — 접두어 apply- */

/* 화면 틀: 가운데 800px 한 줄 */
.apply { padding-block: 48px 64px; }
.apply--complete { padding-top: 56px; }
.apply__inner { max-width: calc(800px + var(--gutter) * 2); display: flex; flex-direction: column; gap: 32px; }
.apply-submit { display: flex; flex-direction: column; gap: 32px; }

.apply-note { font-size: 0.8125rem; color: var(--c-muted); line-height: 1.4; }
.apply-help { font-size: 0.9375rem; color: var(--c-muted); line-height: 1.65; }

/* 신청 행사 요약 */
.apply-event {
	display: flex; flex-direction: column; gap: 8px; padding: 24px;
	background: var(--c-sand); border-radius: var(--radius); line-height: 1.65;
}
.apply-event__meta { color: var(--c-primary); font-weight: 700; font-size: 0.875rem; }
.apply-event__title { color: var(--c-ink); font-weight: 700; font-size: 1.4375rem; }
.apply-event__date { color: var(--c-muted); font-size: 1rem; }

/* 진행 단계 */
.apply-steps { display: flex; gap: 24px; }
.apply-steps__item { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.apply-steps__bar { display: block; height: 4px; border-radius: 2px; background: var(--c-line); }
.apply-steps__label { color: var(--c-muted); font-size: 1.0625rem; line-height: 1.4; }
.apply-steps__item.is-done .apply-steps__bar,
.apply-steps__item.is-current .apply-steps__bar { background: var(--c-primary); }
.apply-steps__item.is-current .apply-steps__label { color: var(--c-primary); font-weight: 700; }

/* 단계 제목 */
.apply-head { display: flex; flex-direction: column; gap: 14px; }
.apply-head__eyebrow { color: var(--c-primary); font-weight: 700; font-size: 0.9375rem; line-height: 1.65; }
.apply-head__count { margin-left: 1em; }
.apply-head__title { font-size: 2.75rem; line-height: 1.4; }
.apply-head__desc { color: var(--c-muted); font-size: 1.125rem; line-height: 1.65; }

/* 입력 카드 */
.apply-card {
	display: flex; flex-direction: column; gap: 24px; padding: 32px;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.apply-card__lead { color: var(--c-primary); font-size: 1rem; line-height: 1.65; }
.apply-card__lead--sm { font-size: 0.875rem; }
.apply-card .field__label { line-height: 1.65; }
.apply-row { display: flex; gap: 24px; align-items: flex-start; }
.apply-row > .field { flex: 1; min-width: 0; }

.apply-select { position: relative; }
.apply-select .select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.apply-select .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--c-primary); pointer-events: none; }

/* 안내 상자 (신청 2) */
.apply-notice {
	display: flex; flex-direction: column; gap: 6px; padding: 18px;
	background: var(--c-sage); border-radius: var(--radius-sm);
	font-size: 0.9375rem; line-height: 1.65; color: var(--c-muted);
}
.apply-notice__title { color: var(--c-primary); font-weight: 700; }

/* 선택 카드 (사모 동반 여부) */
.apply-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.apply-choices legend { padding: 0; margin-bottom: 12px; }
.apply-choices__list { display: flex; gap: 16px; }
.apply-choice {
	flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 16px;
	background: var(--c-white); border: 1px solid var(--c-field-line); border-radius: var(--radius-sm);
	font-size: 1.0625rem; line-height: 1.4; cursor: pointer;
}
.apply-choice input {
	appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0;
	border: 1.5px solid var(--c-field-line); border-radius: 50%; background: var(--c-white); cursor: pointer;
}
.apply-choice input:checked { border: 6px solid var(--c-primary); }
.apply-choice:has(input:checked) { background: var(--c-sage); border-color: var(--c-primary); }
.apply-choice:has(input:focus-visible) { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.apply-choice input:focus-visible { outline: none; }

.apply-count {
	display: flex; flex-direction: column; gap: 8px; padding-block: 16px;
	border-block: 1px solid var(--c-line); line-height: 1.65;
}
.apply-count__title { font-weight: 700; font-size: 1.0625rem; }
.apply-textarea { min-height: 120px; }

/* 입력 내용 확인 (신청 3) */
.apply-review { display: flex; flex-direction: column; gap: 8px; }
.apply-review__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.apply-review__title { font-size: 1.375rem; line-height: 1.4; }
.apply-review__edit {
	display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
	color: var(--c-primary); font-weight: 700; font-size: 1.0625rem; line-height: 1.6;
}
.apply-review__list { margin: 0; }
.apply-review__row { display: flex; gap: 16px; align-items: flex-start; padding-block: 14px; border-bottom: 1px solid var(--c-line); }
.apply-review__row dt { flex: 0 0 106px; color: var(--c-muted); font-size: 1rem; line-height: 1.5; }
.apply-review__row dd { flex: 1; min-width: 0; margin: 0; font-size: 1.0625rem; line-height: 1.6; }

/* 개인정보 이용 동의 */
.apply-consent {
	display: flex; flex-direction: column; gap: 16px; padding: 24px;
	background: var(--c-sage); border-radius: var(--radius-sm); line-height: 1.65;
}
.apply-consent__title { font-size: 1.125rem; line-height: 1.65; }
.apply-consent__desc { color: var(--c-muted); font-size: 1rem; }
.apply-consent__check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.apply-consent__check input {
	appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 24px; height: 24px; margin: 2px 0 0;
	background: var(--c-white) center / 18px no-repeat; border: 1px solid var(--c-primary); border-radius: 4px; cursor: pointer;
}
.apply-consent__check input:checked {
	background-color: var(--c-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* 단계 이동 버튼 */
.apply-nav { display: flex; gap: 12px; justify-content: space-between; }
.apply-nav .btn { padding: 14px 24px; }
.apply-nav__prev { border-color: var(--c-field-line); }

/* 글자 링크 · 도움말 */
.apply-link {
	display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start;
	color: var(--c-primary); font-weight: 700; font-size: 1.0625rem; line-height: 1.6;
}
.apply-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.apply-support { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; line-height: 1.65; color: var(--c-muted); }
.apply-support__contact { color: var(--c-primary); }

/* 신청 완료 */
.apply-done {
	display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 40px;
	background: var(--c-sage); border-radius: var(--radius); text-align: center;
}
.apply-done__mark {
	display: flex; align-items: center; justify-content: center; width: 64px; height: 64px;
	border-radius: 50%; background: var(--c-primary); color: var(--c-white);
}
.apply-done__mark .icon { stroke-width: 2.2; }
.apply-done__title { font-size: 2.25rem; line-height: 1.5; }
.apply-done__number { color: var(--c-primary); font-weight: 700; font-size: 1.25rem; line-height: 1.4; }
.apply-done__summary { color: var(--c-muted); font-size: 1rem; line-height: 1.7; }

.apply-next {
	display: flex; flex-direction: column; gap: 24px; padding: 32px; line-height: 1.65;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.apply-next__title { font-size: 1.4375rem; line-height: 1.65; }
.apply-next__list { display: flex; flex-direction: column; gap: 24px; }
.apply-next__list li { display: flex; flex-direction: column; gap: 10px; }
.apply-next__list p { color: var(--c-muted); font-size: 1.0625rem; }
.apply-next__step { color: var(--c-primary); font-size: 1.125rem; line-height: 1.65; }
.apply-next__num { margin-right: 1em; }

.apply-tools { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; }
.apply-tools .apply-link { align-self: auto; }

@media print {
	.site-header, .site-footer, .apply-tools, .apply--complete .btn { display: none !important; }
}

/* 모바일 */
@media (max-width: 640px) {
	.apply { padding-block: 32px 48px; }
	.apply__inner, .apply-submit { gap: 28px; }
	.apply--complete .apply__inner { gap: 32px; }

	.apply-event { padding: 20px; }
	.apply-event__title { font-size: 1.25rem; }

	.apply-steps { gap: 12px; }
	.apply-steps__label { font-size: 0.875rem; }

	.apply-head__title { font-size: 2rem; }

	.apply-card { padding: 20px; }
	.apply-row { flex-direction: column; }
	.apply-row > .field { width: 100%; }
	.apply-choices__list { flex-direction: column; }

	.apply-nav .btn { flex: 1; min-width: 0; padding-inline: 16px; }

	.apply-review__row dt { flex-basis: 90px; }

	.apply-done { padding: 24px; }
	.apply-done__title { font-size: 1.75rem; }
	.apply-next { padding: 24px; }
}
