/* 참여 안내(join.html)만: 단계, 신청 양식, 옆 카드. */

/* ── 참여 안내 ───────────────────────────────────────── */
.join-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; margin-top: -20px; position: relative; z-index: 3; }
.steps { display: grid; gap: 18px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); z-index: -1; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px 24px; box-shadow: var(--shadow); transition: transform .45s var(--ease-spring), box-shadow .3s, border-color .3s; }
.step:hover, .step:focus-within { border-color: color-mix(in srgb, var(--ju) 45%, var(--line)); }
.step h2 { font-size: 1.2rem; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; letter-spacing: -.01em; }
.step h2::before {
  counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; flex: none;
  background: var(--ju); color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.05rem; transform: rotate(-6deg);
  box-shadow: 0 6px 14px -6px var(--ju);
}
.step:nth-child(2) h2::before { background: var(--cheong); box-shadow: 0 6px 14px -6px var(--cheong); }
.step:nth-child(3) h2::before { background: var(--hwang); box-shadow: 0 6px 14px -6px var(--hwang); }
.step p { margin: 4px 0; color: var(--muted); }
.step .btn { margin-top: 12px; }
form { display: grid; gap: 12px; margin-top: 14px; }
label { font-weight: 800; font-size: .93rem; display: block; margin-bottom: 4px; }
input { font: inherit; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: var(--ju); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ju) 18%, transparent); outline: none; }
input:focus-visible { outline: none; }
.msg { padding: 12px 16px; border-radius: 14px; display: none; font-weight: 700; }
.msg.ok { display: block; background: #E6F4EA; color: #1E5631; animation: fadeup .4s var(--ease-out); }
.msg.err { display: block; background: #FCE8E6; color: #8C1D18; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-color-scheme: dark) { .msg.ok { background: #16301F; color: #B7E1C1; } .msg.err { background: #3A1A17; color: #F6B8B0; } }
.fine { font-size: .88rem; color: var(--muted); }
.side { display: grid; gap: 18px; position: sticky; top: 84px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.card h3 { margin: 0 0 12px; font-size: 1.12rem; }
.need { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.need li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.need li b { color: var(--ink); display: block; }
.need .i { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--ju-soft); }
.need li:nth-child(2) .i { background: var(--cheong-soft); }
.need li:nth-child(3) .i { background: var(--hwang-soft); }
.mini-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.mini-shots img { border-radius: 14px; border: 4px solid #1A1614; aspect-ratio: 540 / 1170; object-fit: cover; transition: transform .4s var(--ease-spring); }
.card .more { font-weight: 800; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
form .btn { justify-self: start; }

@media (max-width: 960px) {
  .join-grid { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 480px) {
  .steps::before { left: 37px; }
  .step { padding: 20px 18px 22px; }
}
