/* 유빌더 컨설팅 신청 — 한 계열 파랑 단계(바탕 < 상자 < 강조), 강조색은 하나 */
:root {
  --bg: #f4f7fc;
  --card: #ffffff;
  --line: #dfe7f3;
  --soft: #eaf1fd;
  --soft-2: #d6e4fb;
  --accent: #1267e8;
  --accent-dark: #0d4fb5;
  --ink: #111a2b;
  --sub: #4a5568;
  --muted: #7a8699;
  --danger: #c93a2e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(17, 26, 43, .04), 0 12px 32px rgba(17, 26, 43, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all;
}
.top {
  position: sticky; top: 0; z-index: 5; background: rgba(244, 247, 252, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 12px 20px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; flex: none; }
.brand img { border-radius: 9px; }
.progress { flex: 1; max-width: 560px; margin-left: auto; }
.progress-text { font-size: 13px; color: var(--sub); font-weight: 600; margin-bottom: 6px; text-align: right; }
.bar { height: 6px; background: var(--soft-2); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .35s ease; }
.wrap { max-width: 680px; margin: 28px auto 40px; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 36px 28px; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 99px; background: var(--soft); color: var(--accent); font-weight: 700; font-size: 13px; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; letter-spacing: -0.03em; }
h2 { font-size: 23px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -0.02em; }
.lead { color: var(--sub); margin: 0 0 22px; font-size: 16.5px; }
.gifts { display: grid; gap: 10px; margin: 0 0 18px; }
.gift { display: flex; gap: 14px; align-items: center; background: var(--soft); border: 1px solid var(--soft-2); border-radius: 14px; padding: 14px 16px; }
.gift-no { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.gift strong { display: block; font-size: 16px; }
.gift span { color: var(--sub); font-size: 14px; }
.meta { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta li { background: #f7f9fd; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 14px; color: var(--sub); }
.meta b { color: var(--ink); margin-right: 4px; }
.resume { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff8e6; border: 1px solid #f3dfa8; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.resume p { margin: 0; }

/* 질문 화면 */
.step-head { margin-bottom: 22px; }
.step-desc { color: var(--sub); margin: 6px 0 0; }
.q { margin: 0 0 26px; border: 0; padding: 0; min-width: 0; }
.q > label, .q > legend { display: block; font-weight: 700; font-size: 16.5px; margin-bottom: 8px; padding: 0; }
.req { color: var(--accent); margin-left: 3px; }
.opt { color: var(--muted); font-weight: 500; font-size: 13.5px; margin-left: 6px; }
.help { color: var(--muted); font-size: 14px; margin: -2px 0 10px; }
.help.box { background: var(--soft); border: 1px solid var(--soft-2); color: var(--sub); border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=url], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fbfcfe; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 14px; min-height: 52px; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(18, 103, 232, .12); }
input::placeholder, textarea::placeholder { color: #a3adbd; }
.num { max-width: 180px; }
.choices { display: grid; gap: 8px; }
.choices.cols { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: #fbfcfe; border-radius: 12px; padding: 12px 14px; cursor: pointer; min-height: 50px; transition: all .15s; user-select: none; }
.choice:hover { border-color: #b9ccef; background: #fff; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .tick { flex: none; width: 20px; height: 20px; border: 2px solid #b8c3d6; border-radius: 6px; display: grid; place-items: center; transition: all .15s; }
.choice.radio .tick { border-radius: 50%; }
.choice input:checked + .tick { background: var(--accent); border-color: var(--accent); }
.choice input:checked + .tick::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg) translate(1px, -1px); }
.choice.radio input:checked + .tick::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.choice input:focus-visible + .tick { box-shadow: 0 0 0 4px rgba(18, 103, 232, .2); }
.group-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.staff { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0 0 14px; background: #fcfdff; }
.staff h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.staff h3 .badge { background: var(--accent); color: #fff; border-radius: 99px; font-size: 12px; padding: 2px 9px; }
.links { display: grid; gap: 8px; }
.links label { font-size: 14px; color: var(--sub); font-weight: 600; }
.drop { border: 2px dashed #bdd0f2; border-radius: 14px; background: var(--soft); padding: 22px; text-align: center; cursor: pointer; transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #e2ecfd; }
.drop strong { display: block; color: var(--accent-dark); }
.drop span { color: var(--sub); font-size: 14px; }
.files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.files button { border: 0; background: none; color: var(--danger); font: inherit; cursor: pointer; }
.consent { background: #f7f9fd; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 14.5px; color: var(--sub); }
.consent dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; }
.consent dt { font-weight: 700; color: var(--ink); }
.consent dd { margin: 0; }
.err { color: var(--danger); font-size: 14px; margin: 6px 0 0; }
.invalid input, .invalid textarea { border-color: var(--danger); }
.invalid .choice { border-color: #efc2bd; }
.form-error { color: var(--danger); background: #fdf1ef; border: 1px solid #f3cdc8; border-radius: 12px; padding: 10px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 버튼 */
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.btn { font: inherit; font-weight: 700; border-radius: 12px; padding: 13px 22px; min-height: 50px; cursor: pointer; border: 1.5px solid transparent; transition: all .15s; }
.btn.primary { background: var(--accent); color: #fff; min-width: 140px; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.primary:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: #fff; color: var(--sub); border-color: var(--line); }
.btn.ghost:hover { border-color: #b9ccef; color: var(--ink); }
.btn.small { padding: 6px 12px; min-height: 0; font-size: 13px; }
.btn.wide { width: 100%; font-size: 17px; }
.done { text-align: center; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin: 4px auto 18px; }
.steps { text-align: left; list-style: none; counter-reset: s; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; background: #f7f9fd; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { font-size: 16px; }
.steps span { color: var(--sub); font-size: 14.5px; }
.small { font-size: 13.5px; }
.muted { color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 40px; }
[hidden] { display: none !important; }
.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .top { padding: 10px 16px; gap: 12px; }
  .brand span { display: none; }
  .wrap { margin-top: 16px; }
  .card { padding: 24px 18px 20px; border-radius: 16px; }
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  .consent dl { grid-template-columns: 1fr; }
  .nav { position: sticky; bottom: 0; background: #fff; margin: 8px -18px -20px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-radius: 0 0 16px 16px; }
  .btn.primary { flex: 1; }
}
