/* RiD 차량 정보 접수 — 모양은 My RiD 가입 화면과 같다(대표님 "my rid 느낌으로 만들어주세요" 2026-11-25).
   흰 바탕, 파란 강조, 왼쪽 위 큰 제목, 밑줄 칸, 납작한 단추. 색 · 크기 · 간격은 F:\MyRiD\public\app.css(11-25 판)의 값 그대로다 —
   My RiD 쪽 모양이 바뀌면 여기 같은 이름의 줄을 같이 고친다. */
:root {
  --ink: #191f28;
  --ink2: #4e5968;
  --sub: #8b95a1;
  --faint: #b0b8c1;
  --line: #eef0f3;
  --blue: #0066c1;
  --blue-soft: #eaf2fb;
  --page: 20px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 15px/1.5 Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word;
}
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, p { margin: 0; font-weight: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }

.icon { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* 로고(logo.js): 상자 아래 = 바닥선. i 의 점은 상자 위로 나온다. */
.logo { display: block; flex: none; overflow: visible; }
.brand { color: var(--ink); }

/* 단추 */
.btn { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600; }
.btn:active { background: #005bb0; }
.textbtn { padding: 10px 16px; border: 0; background: none; color: var(--sub); font-size: 13.5px; }
.textbtn.center { display: block; margin: 0 auto; }

/* ── 첫 화면 · 마지막 화면: 내용 한 덩어리를 화면 가운데(눈에 가운데로 보이게 살짝 위)에 둔다 — My RiD 의 카톡 속 첫 화면과 같다 ── */
.setup { padding: 52px var(--page) 0; }
.setup.mid { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 40px var(--page) calc(40px + 6vh); }
.setup h1 { margin-top: 18px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.42; }
.setup .lead { margin-top: 8px; font-size: 15px; color: var(--sub); line-height: 1.6; }
.points { margin-top: 40px; display: grid; gap: 22px; }
.points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.55; }
.points .icon { color: var(--blue); }
.points li > span { padding-top: 1px; }
.gate-btn { margin-top: 52px; height: 56px; border-radius: 16px; font-size: 17px; }
.gate-note { margin-top: 14px; font-size: 13px; color: var(--sub); text-align: center; }

/* 마지막 화면(감사합니다): 파란 동그라미 표시 → 제목 → 두 줄 → 접수한 내용(단추 없음) */
.done-ok { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; animation: ok-pop .5s cubic-bezier(.2, 1.5, .4, 1); }
.done-ok .icon { width: 28px; height: 28px; stroke-width: 2.4; }
/* 살짝 커지며 자리 잡는다. 움직임이 돌지 않는 곳에서도 처음부터 보인다(투명에서 시작하지 않는다) */
@keyframes ok-pop { from { transform: scale(.72); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .done-ok { animation: none; } }
.setup .done-ok + h1 { margin-top: 24px; }
.recap { margin-top: 32px; padding: 9px 20px; border-radius: 16px; background: #f7f8fa; }
.recap li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; }
.recap-k { flex: none; font-size: 14px; color: var(--sub); }
.recap-v { min-width: 0; font-size: 15.5px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* ── 단계(이름 · 전화번호 · 차량번호 · 차량 정보) — My RiD 가입 단계와 같은 모양(토스 가입 화면): 한 화면에 하나씩,
   밑줄 칸(이름표는 칸 위에 작게 — 칸에 들어가면 파랗게), '다음'은 아래에 붙고 자판이 뜨면 자판 바로 위에 화면 너비 그대로(--kb · .kb) ── */
.step { position: relative; min-height: 100vh; min-height: 100dvh; padding: 72px 24px 120px; background: #fff; }
.step-back { position: absolute; left: 10px; top: 12px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; background: none; color: var(--ink); }
.step-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.42; color: var(--ink); }
.step-fields { margin-top: 44px; display: grid; gap: 30px; }
.step-ff { position: relative; display: block; padding-top: 22px; }
.step-ff span { position: absolute; left: 0; top: 0; font-size: 13.5px; line-height: 18px; color: var(--sub); pointer-events: none; transition: color .15s; }
.step-ff input { display: block; width: 100%; height: 46px; padding: 0 0 4px; border: 0; border-bottom: 2px solid #e5e8eb; border-radius: 0; background: transparent;
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); outline: none; transition: border-color .15s; }
.step-ff input::placeholder { color: transparent; font-weight: 500; }
.step-ff input:focus::placeholder, .step-ff input.is-focus::placeholder { color: #c5cbd2; }
.step-ff input:focus, .step-ff input.is-focus { border-bottom-color: var(--blue); }
.step-ff input:focus + span, .step-ff input.is-focus + span { color: var(--blue); }
.step-bar { position: fixed; z-index: 5; left: 0; right: 0; bottom: var(--kb, 0px); max-width: 480px; margin: 0 auto;
  padding: 20px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 22px); }
.btn.step-next { height: 56px; border-radius: 16px; font-size: 17px; transition: background .15s; }
.btn.step-next:disabled { opacity: 1; background: #c9dcf0; color: #fff; }
/* 고르는 단계(구동 방식): 큰 단추 둘 — My RiD 의 구동 방식 화면과 같다 */
.step-picks { margin-top: 40px; display: grid; gap: 10px; }
.step-pick { display: block; width: 100%; height: 64px; padding: 0 22px; border: 0; border-radius: 16px; background: #f2f4f6; text-align: left; font-size: 18px; font-weight: 600; color: var(--ink);
  transition: background .15s, color .15s, box-shadow .15s; }
.step-pick.on { background: var(--blue-soft); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.kb .step-bar { padding: 0; background: none; }
.kb .step-bar .btn.step-next { border-radius: 0; }
@media (max-height: 640px) {
  .step { padding-top: 60px; }
  .step-fields { margin-top: 28px; gap: 24px; }
}

/* ── 동의 화면 — My RiD 의 맨 마지막 동의 화면과 같은 줄(둥근 표시 · 이름 · 필수 딱지 · ›)과 글 상자. 받는 동의가 하나라서 글은 처음부터 펼쳐 둔다 ── */
.step.agree { padding-bottom: 48px; }
.step-terms { margin-top: 30px; }
.join-term { display: flex; align-items: center; min-height: 46px; }
.join-lab { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; cursor: pointer; }
.join-lab input { position: absolute; opacity: 0; pointer-events: none; }
.join-tick { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e1e6ec; color: #fff; transition: background .18s; }
.join-tick .icon { width: 13px; height: 13px; stroke-width: 2.8; }
.join-lab input:checked + .join-tick { background: var(--blue); animation: join-pop .22s ease-out; }
.join-lab input:focus-visible + .join-tick { outline: 2px solid var(--blue); outline-offset: 2px; }
@keyframes join-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
.join-bd { flex: none; margin-left: -3px; padding: 1px 6px; border-radius: 5px; background: #f2f4f6; color: var(--sub); font-size: 11px; font-weight: 600; font-style: normal; line-height: 16px; }
.join-bd.need { background: var(--blue-soft); color: var(--blue); }
.join-go { flex: none; width: 36px; height: 40px; margin-right: -10px; padding: 0; display: grid; place-items: center; border: 0; background: none; color: var(--faint); }
.join-go .icon { width: 16px; height: 16px; transition: transform .15s; }
.join-go[aria-expanded="true"] .icon { transform: rotate(90deg); }
.join-text { margin-top: 6px; padding: 16px 18px; border-radius: 14px; background: #f7f8fa; font-size: 13.5px; line-height: 1.7; color: var(--ink2); }
.join-text dl { margin: 0; display: grid; gap: 12px; }
.join-text dt { font-size: 12.5px; color: var(--sub); }
.join-text dd { margin: 1px 0 0; color: var(--ink); }
.join-text dd.key { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.join-text p { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--sub); }
/* '동의하고 접수하기'는 목록 아래에(My RiD 의 '모두 동의하기'와 같은 자리 · 같은 간격) */
.agree-cta { margin-top: 56px; display: grid; gap: 6px; }

.toast {
  /* 양옆 20px 안에서 글 길이만큼만 넓어지고 가운데에 놓인다(left: 50% 로 놓으면 긴 글이 화면 반 너비에 갇혀 여러 줄로 꺾인다) */
  position: fixed; z-index: 30; left: 20px; right: 20px; bottom: calc(var(--kb, 0px) + 104px); margin: 0 auto; width: fit-content; max-width: 440px;
  transform: translateY(8px); padding: 10px 16px; border-radius: 20px; background: rgba(25, 31, 40, .92); color: #fff; font-size: 14px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: none; }
/* 첫 화면 · 마지막 화면은 내용이 화면 가운데에 있어서 알림 글을 화면 맨 아래에 띄운다(단추 · 안내 줄을 가리지 않게) */
.app:has(> .setup.mid) ~ .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
