/* ILGGUN OPEN DAY 신청 화면 (public, 로그인 전). 가입 화면(signup.css)과 같은 생김새: Mobbin Gallery-White, 흰 바탕에 잉크,
   그림자 대신 가는 선, 알약 모양 버튼. 색은 쓰지 않는다 (로고 마크의 파랑만). 대시보드 스타일시트와 아무것도 나누지 않는다. */
:root {
  --ink: #141414;
  --ink-soft: #262626;
  --text-muted: #707070;
  --text-faint: #adadad;
  --canvas: #ffffff;
  --canvas-soft: #f3f3f3;
  --field: #f0f0f0;
  --hairline: #e0e0e0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

/* 한 줄 기둥: 휴대폰은 좌우 16px, 넓은 화면은 640px 가운데 */
.od-shell {
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 40px 16px 48px;
}

/* ---------- 머리 ---------- */
.od-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 36px;
  text-align: center;
}

.od-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  text-decoration: none;
}

.od-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  object-fit: contain;
}

.od-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.od-title {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.od-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-soft);
}

.od-lead {
  max-width: 34em;
  font-size: 15px;
  color: var(--text-muted);
}

.od-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.od-button:hover:not(:disabled) {
  background: var(--ink-soft);
}

.od-button:focus-visible,
.od-brand:focus-visible,
.od-faq-item summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.od-hero-cta {
  margin-top: 10px;
  min-width: 200px;
}

/* ---------- 본문 마디 ---------- */
.od-section {
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}

.od-section > * + * {
  margin-top: 14px;
}

.od-letter p + p {
  margin-top: 14px;
}

.od-h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.od-h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* 60분 진행: 시간은 단색 알약 (색 채움 없음) */
.od-program {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.od-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
}

.od-min {
  display: inline-block;
  margin-right: 2px;
  padding: 1px 9px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--canvas-soft);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  vertical-align: 1px;
}

.od-block p,
.od-block .od-list {
  color: var(--ink-soft);
}

.od-list,
.od-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
}

.od-list li::marker,
.od-facts li::marker {
  color: var(--text-faint);
}

.od-fact-key {
  font-weight: 600;
}

/* 자주 묻는 질문: 접힘 */
.od-faq {
  border-bottom: 1px solid var(--hairline);
}

.od-faq-item {
  border-top: 1px solid var(--hairline);
}

.od-faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.od-faq-item summary::-webkit-details-marker {
  display: none;
}

.od-chevron {
  flex: none;
  margin-top: 3px;
  color: var(--text-muted);
  transition: transform 0.15s;
}

.od-faq-item[open] .od-chevron {
  transform: rotate(180deg);
}

.od-faq-item p {
  padding: 0 2px 16px;
  color: var(--ink-soft);
}

/* ---------- 신청 폼 ---------- */
.od-apply {
  scroll-margin-top: 16px;
}

.od-card {
  padding: 28px 24px 24px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--canvas);
}

.od-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.od-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.od-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.od-field input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px 미만이면 아이폰이 칸을 누를 때 화면을 키운다 */
  outline: none;
}

.od-field input:focus {
  background: var(--canvas);
  border-color: var(--ink);
}

.od-field input[aria-invalid="true"] {
  border-color: var(--ink);
}

.od-help {
  font-size: 12px;
  color: var(--text-muted);
}

/* 덫 칸: 화면 밖 (사람도 보조기기도 닿지 않는다) */
.od-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.od-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
}

.od-consent-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.od-consent-optional {
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.od-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.od-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.od-check input[aria-invalid="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.od-consent-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 0 26px;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.od-consent-foot {
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.od-consent-foot a {
  color: var(--ink-soft);
}

.od-age {
  font-size: 13px;
  color: var(--text-muted);
}

.od-message {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--canvas-soft);
  color: var(--ink);
  font-size: 13px;
}

.od-submit {
  width: 100%;
}

.od-submit:disabled {
  background: var(--text-faint);
  cursor: default;
}

.od-done {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-soft);
}

.od-done-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}

/* ---------- 바닥 ---------- */
.od-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  padding-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
}

.od-foot a {
  text-decoration: none;
}

.od-foot a:hover {
  text-decoration: underline;
}

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

@media (max-width: 480px) {
  .od-shell {
    padding-top: 28px;
  }

  .od-card {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .od-block {
    padding: 16px 16px 14px;
  }

  .od-consent {
    padding: 12px;
  }

  .od-consent-detail {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .od-chevron {
    transition: none;
  }
}
