/* css/overlays.css
   Overlays/widgets: mobile action dock, AI chat, entry-popup, contact modal, form fields.
   Split from styles.css (Phase 4, boundary-corrected); linked in source order to preserve the cascade. */
.mobile-action-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 46;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.mobile-action-dock .sticky-cta,
.mobile-action-dock .ai-chat {
  pointer-events: auto;
}

.sticky-cta {
  position: static;
  order: 2;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.sticky-card {
  width: 290px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.sticky-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.4;
}

.sticky-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.sticky-card .btn {
  width: 100%;
  margin-top: 8px;
}

.sticky-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-toggle {
  display: none;
}

.kakao-fab {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  box-shadow: var(--shadow-lg);
}

.kakao-fab img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ai-chat {
  position: static;
  order: 1;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.ai-chat__toggle {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.ai-chat__toggle-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.ai-chat__toggle-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ai-chat__panel {
  width: min(380px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.ai-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--cream);
}

.ai-chat__head span {
  display: block;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 10px;
}

.ai-chat__head strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 500;
}

.ai-chat__head button {
  width: 30px;
  height: 30px;
  border: 1px solid #343128;
  border-radius: 50%;
  color: var(--cream);
}

.ai-chat__messages {
  max-height: min(520px, 64vh);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background: var(--surface-2);
}

.ai-message {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.58;
}

.ai-message__paragraph {
  margin: 0;
}

.ai-message__paragraph + .ai-message__paragraph,
.ai-message__paragraph + .ai-message__list,
.ai-message__list + .ai-message__paragraph {
  margin-top: 8px;
}

.ai-message__list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 1.35rem;
}

.ai-message__list:first-child {
  margin-top: 0;
}

.ai-message__list li {
  padding-left: 2px;
}

.ai-message:not(.ai-message--user) .ai-message__list li::marker {
  color: var(--brand);
  font-weight: 700;
}

.ai-message--user {
  align-self: flex-end;
  border-color: var(--brand);
  background: var(--brand);
  color: var(--surface);
}

.ai-message.is-loading {
  color: var(--muted);
}

.ai-message a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ai-message:not(.ai-message--user) .ai-message__link {
  color: var(--brand);
}

.ai-chat__chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.ai-chat__chips button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}

.ai-chat__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.ai-chat__form input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 16px;
}

.ai-chat__form button {
  padding: 0 14px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 23, 19, 0.6);
}

.modal-backdrop[hidden],
.scroll-popup[hidden],
.sticky-card[hidden],
.ai-chat__panel[hidden] {
  display: none;
}

.entry-popup,
.auth-modal,
.contact-modal {
  position: relative;
  width: min(100%, 900px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* 로그인 모달: 존재감을 낮춘 컴팩트 카드. 폭 400px, 여백/타이포 밸런스를
   Google 버튼(고정 높이 48px, 14px 텍스트)에 맞춰 조정. */
.auth-modal {
  width: min(100%, 400px);
  display: grid;
  gap: 22px;
  padding: 32px 28px 28px;
  border-radius: 12px;
  text-align: center;
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-modal__close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.auth-modal__head {
  display: grid;
  gap: 6px;
}

.auth-modal__head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-modal__head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Google 표준 사이닝 버튼 톤: 흰색 배경, 얇은 회색 border, 정직한 사각 라운드.
   실제 Google 브랜딩 가이드(48px 높이 · 14px 텍스트)에 맞춘다. */
.auth-modal__google {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-modal__google:hover {
  background: var(--surface-2);
  border-color: var(--ink);
}

.auth-modal__google-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: block;
}

.auth-modal__google strong {
  font-weight: 600;
}

.auth-modal__review {
  display: grid;
  gap: 12px;
  text-align: left;
}

.auth-modal__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.auth-modal__divider::before,
.auth-modal__divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-modal__field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-modal__field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.auth-modal__field input:focus {
  outline: 2px solid rgba(29, 70, 57, 0.18);
  border-color: var(--brand);
}

.auth-modal__submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.auth-modal__submit:hover {
  background: var(--brand-2);
}

.auth-modal__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-modal__message {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* 추가정보 입력 모달: 로그인 모달과 라운드/톤을 통일하되, 폼 밀도가 있어
   조금 더 넓게. 720px는 필드 그리드가 2열로 편안하게 자리하는 폭. */
.profile-info-modal {
  position: relative;
  width: min(100%, 720px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.profile-info-form {
  border: 0;
  box-shadow: none;
  padding: 32px 30px 28px;
  display: grid;
  gap: 20px;
}

.profile-info-form .mypage-section-head {
  padding-right: 42px;
  display: grid;
  gap: 4px;
}

.profile-info-form .mypage-section-head span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-info-form .mypage-section-head h2,
.profile-info-form .mypage-section-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile-info-form .mypage-section-head h3 {
  font-size: 16px;
}

.profile-info-form .mypage-section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-info-form .mypage-section-head--sub {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-info-form .mypage-agreements {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-2, var(--ink));
}

.profile-info-form .mypage-agreements label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.profile-info-form .mypage-profile-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.profile-info-form .mypage-profile-actions .btn {
  justify-self: stretch;
}

.entry-popup {
  /* 카드형·포스터형 모두 같은 16:9 프레임 — 어드민에서 권장 사이즈가 두 가지로
     갈려 어떤 크기로 리사이징할지 헷갈리던 문제 때문에 하나로 통일. */
  --entry-popup-image-ratio: 16 / 9;
  --entry-popup-poster-ratio: 16 / 9;
  /* 팝업 개수와 무관하게 한 번에 한 개의 카드만 표시(캐러셀 방식).
     뷰포트에서 존재감이 과하지 않도록 폭을 420px로 낮춘다(기존 580). */
  width: min(100%, var(--entry-popup-width, 420px));
}

.entry-popup--poster-only {
  --entry-popup-width: 420px;
}

.entry-popup__header {
  padding: 30px 34px 0;
}

.entry-popup h2 {
  margin-top: 14px;
  font-size: 28px;
}

.entry-popup__carousel {
  position: relative;
  padding: 34px 34px 20px;
}

.entry-popup__deck {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* 카드 종류(카드형/포스터형)에 따라 높이가 달라도 부드럽게 조정되게 */
  transition: height 180ms ease;
}

.entry-popup__deck::-webkit-scrollbar {
  display: none;
}

.entry-popup__carousel .entry-popup-card {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.entry-popup__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.entry-popup__nav:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.entry-popup__nav--prev { left: 6px; }
.entry-popup__nav--next { right: 6px; }
.entry-popup__nav[hidden] { display: none; }

.entry-popup-card {
  min-width: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.entry-popup-card--text {
  background: var(--surface-2);
}

.entry-popup-card__image {
  aspect-ratio: var(--entry-popup-image-ratio);
  /* 뷰포트가 낮으면 이미지도 세로 상한을 갖도록 — 팝업이 화면 밖으로 넘치는 것 방지 */
  max-height: 44vh;
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
}

.entry-popup-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.entry-popup-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.entry-popup-card__body .btn {
  width: 100%;
  margin-top: auto;
}

.entry-popup-card__body > span {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
}

.entry-popup-card h3 {
  margin: 0;
  display: -webkit-box;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-popup-card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  line-height: 1.65;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-popup__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
}

.entry-popup__meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 6px 9px;
}

.entry-popup-card--poster {
  background: var(--surface-2);
}

.entry-popup-card__poster {
  /* 포스터형 카드는 이미지 + CTA만 있어 다른 카드(이미지+텍스트)와 높이가
     달라진다. 통일된 덱 높이 안에서 이미지가 남는 공간을 채워 아래에 큰
     빈 여백이 생기지 않게 flex:1 로 확장한다. */
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--entry-popup-poster-ratio);
  max-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
}

.entry-popup-card__poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.entry-popup-card__poster-cta {
  flex: none;
  width: calc(100% - 40px);
  /* margin auto가 이미지-버튼 사이에 큰 빈 공간을 만들던 문제 제거 — 이미지
     바로 아래(자연 여백)에 버튼이 붙게 한다. */
  margin: 16px 20px 20px;
}

.entry-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 34px 30px;
}

.entry-popup__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 4px;
}

.entry-popup__dots[hidden] {
  display: none;
}

.entry-popup__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.entry-popup__dot.is-active {
  background: var(--ink);
  transform: scale(1.15);
}

.entry-popup__dismiss {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.entry-popup__dismiss:hover {
  color: var(--text);
  border-color: var(--line-strong, var(--line));
  background: var(--surface-2);
}

.small-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
}

.visual-slot b {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
}

.icon-close {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 20px;
}

.scroll-popup {
  position: fixed;
  right: 24px;
  bottom: 102px;
  z-index: 55;
  width: 350px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.scroll-popup__head {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}

.scroll-popup > div:last-child {
  padding: 20px 22px 24px;
}

.scroll-popup h2 {
  font-size: 22px;
}

.scroll-popup p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.contact-modal {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
}

.contact-modal__side {
  padding: 40px;
  background: var(--ink);
  color: var(--cream);
}

.contact-modal__side h2 {
  margin-top: 18px;
  color: var(--cream);
  font-size: 30px;
}

.contact-modal__side p {
  margin-top: 18px;
  color: #cfc8b9;
  font-size: 14px;
}

.step-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 44px;
}

.step-bars span {
  height: 3px;
  background: #343128;
}

.step-bars .is-active {
  background: var(--accent);
}

#stepLabel {
  display: block;
  margin: 14px 0 36px;
  color: var(--cream);
}

.contact-modal__side .btn {
  width: 100%;
}

.contact-form {
  position: relative;
  min-height: 560px;
  padding: 52px 40px 40px;
}

.contact-modal[data-mode="seminar"] .contact-form {
  padding-top: 40px;
  padding-bottom: 32px;
}

.form-step {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.form-step.is-active {
  display: grid;
  gap: 20px;
}

.mode-fields {
  display: grid;
  gap: 20px;
}

.contact-modal[data-mode="seminar"] .mode-fields,
.contact-modal[data-mode="seminar"] .form-step.is-active {
  gap: 16px;
}

.mode-fields[hidden] {
  display: none;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label,
.field-label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
}

textarea {
  resize: vertical;
}

.chip-grid,
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chip-grid label,
.radio-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.radio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radio-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.agreement {
  display: flex !important;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted) !important;
  font-weight: 400 !important;
}

.agreement input {
  width: auto;
  margin-top: 4px;
}

.agreement strong {
  display: block;
  color: var(--ink);
}

.agreement--compact {
  padding: 12px 14px;
  font-size: 12px !important;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
}

.form-error {
  display: block;
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.contact-course-box {
  margin-bottom: 18px;
}

/* 강의 신청 모달: 강의명·일정·수강료 고정 표시(입력 불가)와 결제 준비 안내 */
.contact-course-summary {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.contact-course-summary__badge {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}

.contact-course-summary strong {
  font-size: 17px;
  line-height: 1.4;
}

.contact-course-summary dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 4px 0 0;
}

.contact-course-summary dl div {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.contact-course-summary dt {
  color: var(--muted);
}

.contact-course-summary dd {
  margin: 0;
  font-weight: 700;
}

.contact-payment-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

/* 로그인 모달에서 "왜 로그인하는지"를 보여주는 맥락 박스 */
.auth-modal__context {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.auth-modal__context > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.auth-modal__context strong {
  font-size: 15px;
  line-height: 1.4;
}

.auth-modal__context small {
  color: var(--muted);
  font-size: 12px;
}

.form-success {
  display: grid;
  place-items: center;
  min-height: 430px;
  text-align: center;
}

.form-success__summary {
  display: grid;
  gap: 8px;
  width: min(100%, 340px);
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: left;
}

.form-success__summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.form-success__summary dt {
  color: var(--muted);
}

.form-success__summary dd {
  margin: 0;
  font-weight: 700;
}

.form-success__state {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff4df;
  color: #9a650d;
  font-size: 12px;
  font-weight: 700;
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 34px;
  font-weight: 700;
}

.form-success h2 {
  font-size: 28px;
}

.form-success p {
  margin: 12px 0 26px;
  color: var(--muted);
}

.form-success .mock-payment-notice {
  display: block;
  max-width: 360px;
  margin: 14px auto 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

/* 텍스트 링크에만 적용한다. .btn 까지 물들이면 btn-primary(진녹색 배경) 위에
   같은 색 글자가 올라가 버튼이 비어 보인다. */
.form-success a:not(.btn) {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 900;
}
