/* ============================================================
   WebBros — AI 상담 설문 위저드
   메인 사이트(style.css)의 라이트 프리미엄 테마 변수 재사용
   ============================================================ */
.cs-body {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(79, 134, 255, 0.12), transparent 62%),
    var(--bg);
}

/* 상단 바 */
.cs-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 34px);
}
.cs-logo { font-size: 20px; font-weight: 800; letter-spacing: 0.01em; color: var(--ink); }
.cs-logo::after { content: "."; color: var(--accent); }
.cs-exit { font-size: 13px; font-weight: 600; color: var(--mute); transition: color 0.2s; }
.cs-exit:hover { color: var(--ink); }

/* 진행 바 */
.cs-progress { height: 4px; background: var(--line); overflow: hidden; }
.cs-progress > span {
  display: block; height: 100%; width: 0;
  background: var(--grad); border-radius: 0 4px 4px 0;
  transition: width 0.45s var(--ease);
}

/* 본문 */
.cs-main { flex: 1; display: grid; place-items: start center; padding: clamp(24px, 5vw, 56px) 20px 80px; }
.cs-card { width: min(680px, 100%); animation: csIn 0.45s var(--ease); }
@keyframes csIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cs-step { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.cs-q { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.22; margin-top: 12px; word-break: keep-all; }
.cs-sub { margin-top: 12px; font-size: 15px; color: var(--soft); line-height: 1.7; word-break: keep-all; }

/* 선택 옵션(대) — 업종 카드 */
.cs-opts { display: grid; gap: 12px; margin-top: 28px; }
.cs-opts--2 { grid-template-columns: repeat(2, 1fr); }
.cs-opts--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cs-opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 15px;
  background: var(--card); box-shadow: var(--shadow-sm); cursor: pointer; width: 100%;
  font: inherit; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
}
.cs-opt:hover { border-color: rgba(31, 95, 224, 0.4); box-shadow: var(--shadow); transform: translateY(-2px); }
.cs-opt.is-sel { border-color: var(--accent); background: rgba(31, 95, 224, 0.05); box-shadow: 0 0 0 3px rgba(31, 95, 224, 0.12); }
.cs-opt__ic { font-size: 24px; flex: none; line-height: 1; }
.cs-opt__tx { display: flex; flex-direction: column; gap: 2px; }
.cs-opt__t { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.cs-opt__d { font-size: 12.5px; color: var(--mute); }
.cs-opt__chk { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; transition: background 0.2s, border-color 0.2s; }
.cs-opt.is-sel .cs-opt__chk { background: var(--accent); border-color: var(--accent); }

/* 칩(다중 선택) */
.cs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cs-chip {
  padding: 11px 17px; border: 1.5px solid var(--line); border-radius: 100px;
  background: var(--card); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--soft); box-shadow: var(--shadow-sm); transition: all 0.18s;
}
.cs-chip:hover { border-color: var(--line-2); color: var(--ink); }
.cs-chip.is-sel { border-color: var(--accent); background: rgba(31, 95, 224, 0.07); color: var(--accent); font-weight: 700; }
.cs-chip.is-sel::before { content: "✓ "; }

/* 커스텀 추가 입력 */
.cs-add { display: flex; gap: 8px; margin-top: 14px; }
.cs-add input { flex: 1; }

/* 스타일 카드 */
.cs-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 26px; }
.cs-style {
  text-align: left; border: 1.5px solid var(--line); border-radius: 15px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; padding: 0;
}
.cs-style:hover { border-color: rgba(31, 95, 224, 0.4); box-shadow: var(--shadow); transform: translateY(-2px); }
.cs-style.is-sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 95, 224, 0.12); }
.cs-style__sw { height: 62px; display: flex; }
.cs-style__sw > i { flex: 1; }
.cs-style__b { display: block; padding: 13px 16px 15px; }
.cs-style__t { font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.cs-style__t .cs-tick { color: var(--accent); opacity: 0; transition: opacity 0.2s; }
.cs-style.is-sel .cs-tick { opacity: 1; }
.cs-style__d { font-size: 12.5px; color: var(--mute); margin-top: 3px; }

/* 입력 필드 */
.cs-field { margin-top: 20px; }
.cs-field > label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.cs-field .opt { color: var(--mute); font-weight: 500; }
.cs-input, .cs-textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); font: inherit; font-size: 15px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-input:focus, .cs-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 95, 224, 0.12); }
.cs-textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.cs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .cs-grid2 { grid-template-columns: 1fr; } }

/* 동의 체크 */
.cs-agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 13px; color: var(--soft); line-height: 1.6; cursor: pointer; }
.cs-agree input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.cs-agree a { color: var(--accent); text-decoration: underline; }

/* 하단 내비 */
.cs-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; }
.cs-back { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--mute); cursor: pointer; padding: 10px 4px; transition: color 0.2s; }
.cs-back:hover { color: var(--ink); }
.cs-back[hidden] { visibility: hidden; }
.cs-err { color: #c2410c; font-size: 13px; font-weight: 600; margin-top: 14px; min-height: 18px; }

/* 허니팟 */
.cs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 완료 화면 */
.cs-done { text-align: center; padding: 20px 0; }
.cs-done__ic { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 36px; box-shadow: 0 16px 40px -14px rgba(31, 95, 224, 0.5); }
.cs-done__t { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.cs-done__d { margin-top: 14px; font-size: 15.5px; color: var(--soft); line-height: 1.75; word-break: keep-all; }
.cs-done__steps { text-align: left; max-width: 440px; margin: 30px auto 0; display: grid; gap: 12px; }
.cs-done__step { display: flex; gap: 13px; align-items: flex-start; padding: 15px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: var(--shadow-sm); }
.cs-done__n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(31,95,224,0.1); color: var(--accent); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.cs-done__st { font-size: 14px; font-weight: 700; }
.cs-done__sd { font-size: 12.5px; color: var(--mute); margin-top: 2px; line-height: 1.55; }

/* ============================================================
   자료 업로드 포털
   ============================================================ */
.up-main { flex: 1; display: block; padding: clamp(20px, 4vw, 44px) 20px 90px; }
.up-wrap { width: min(720px, 100%); margin-inline: auto; }
.up-loading { color: var(--mute); text-align: center; padding: 60px 0; }
.up-empty { text-align: center; padding: 70px 0; }
.up-empty h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.up-empty p { margin-top: 12px; color: var(--soft); }

.up-head { margin-bottom: 30px; }
.up-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.up-title { font-size: clamp(24px, 4vw, 33px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.up-sub { margin-top: 12px; font-size: 15px; color: var(--soft); line-height: 1.72; }

.up-sec { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 26px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.up-sec__h { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.up-sec__n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(31, 95, 224, 0.1); color: var(--accent); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.up-sec__h h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.up-sec__h p { font-size: 13px; color: var(--mute); margin-top: 3px; line-height: 1.55; }

.up-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 118px; padding: 22px; border: 1.6px dashed var(--line-2); border-radius: 14px; cursor: pointer;
  background: var(--bg-alt); transition: border-color 0.2s, background 0.2s; text-align: center; }
.up-drop:hover, .up-drop.is-over { border-color: var(--accent); background: rgba(31, 95, 224, 0.04); }
.up-drop__ic { font-size: 26px; }
.up-drop__t { font-size: 13.5px; font-weight: 600; color: var(--soft); }

.up-prev { margin-top: 12px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 12px; }
.up-item { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); aspect-ratio: 1 / 1; display: flex; flex-direction: column; }
.up-prev .up-item { aspect-ratio: auto; max-width: 200px; padding-bottom: 4px; }
.up-item img { width: 100%; height: 100%; object-fit: cover; flex: 1; min-height: 0; }
.up-prev .up-item img { height: 120px; }
.up-item__file { flex: 1; display: grid; place-items: center; font-size: 30px; background: var(--bg-alt); }
.up-item__name { font-size: 10.5px; color: var(--soft); padding: 5px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-item__x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(13, 21, 38, 0.62); color: #fff; font-size: 11px; display: grid; place-items: center; backdrop-filter: blur(3px); }
.up-item__x:hover { background: rgba(13, 21, 38, 0.85); }
.up-item.is-done { outline: 2px solid rgba(31, 95, 224, 0.25); outline-offset: -2px; }

.up-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.up-row .cs-field { margin-top: 20px; }
@media (max-width: 520px) { .up-row { grid-template-columns: 1fr; } }

.up-submit { text-align: center; margin-top: 26px; }
.up-submit .btn { min-width: 220px; justify-content: center; }
.up-note { margin-top: 14px; font-size: 12.5px; color: var(--mute); line-height: 1.6; }
.up-note.is-err { color: #c2410c; font-weight: 600; }

.up-toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 60;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; padding: 13px 20px; border-radius: 100px;
  box-shadow: 0 18px 40px -14px rgba(13, 21, 38, 0.5); opacity: 0; transition: opacity 0.35s, transform 0.35s; max-width: 90%; text-align: center; }
.up-toast.is-in { opacity: 1; transform: translateY(-4px); }

/* ============================================================
   자동 제안서
   ============================================================ */
.pr-main { padding: clamp(18px, 4vw, 40px) 18px 80px; }
.pr-wrap { width: min(760px, 100%); margin-inline: auto; }
.pr-sheet { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(26px, 5vw, 52px); }
.pr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.pr-logo { font-size: 20px; font-weight: 800; color: var(--ink); }
.pr-logo b { color: var(--accent); }
.pr-print { padding: 9px 16px; font-size: 13px; }
.pr-head { padding-bottom: 8px; }
.pr-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.pr-title { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; margin-top: 12px; }
.pr-intro { margin-top: 16px; font-size: 15.5px; color: var(--soft); line-height: 1.75; }
.pr-sec { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.pr-sec__t { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: var(--mute); margin-bottom: 16px; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-chip { padding: 8px 15px; border-radius: 100px; background: rgba(31, 95, 224, 0.07); color: var(--accent); font-size: 13.5px; font-weight: 700; }
.pr-sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pr-page { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); font-size: 15px; font-weight: 700; color: var(--ink); }
.pr-page__n { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pr-body-t { font-size: 15.5px; color: var(--soft); line-height: 1.8; }
.pr-muted { font-size: 13.5px; color: var(--mute); }
.pr-timeline { display: grid; gap: 2px; }
.pr-tstep { display: flex; gap: 14px; align-items: flex-start; padding: 4px 0; position: relative; }
.pr-tstep__dot { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--accent); background: var(--card); margin-top: 4px; position: relative; }
.pr-tstep:not(:last-child) .pr-tstep__dot::after { content: ""; position: absolute; left: 50%; top: 13px; translate: -50% 0; width: 2px; height: 30px; background: var(--line-2); }
.pr-tstep > div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 18px; }
.pr-tstep b { font-size: 15px; font-weight: 700; }
.pr-tstep span { font-size: 13.5px; color: var(--soft); }
.pr-price { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pr-price__row { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pr-price__row span { font-size: 15px; font-weight: 600; color: var(--soft); }
.pr-price__row b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.pr-price__row b small { font-size: 13px; font-weight: 600; color: var(--mute); margin-left: 4px; }
.pr-price__note { padding: 14px 22px; font-size: 13px; color: var(--soft); line-height: 1.6; background: var(--bg-alt); }
.pr-incl { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px 18px; }
.pr-incl__i { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pr-incl__i b { color: var(--accent); }
.pr-next { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.pr-next li { font-size: 14.5px; color: var(--soft); line-height: 1.6; }
.pr-cta { text-align: center; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.pr-cta__note { margin-top: 14px; font-size: 13px; color: var(--mute); }
.pr-foot { margin-top: 30px; font-size: 11.5px; color: var(--mute); line-height: 1.6; text-align: center; }

@media print {
  .cs-body { background: #fff; }
  .pr-main { padding: 0; }
  .pr-sheet { border: 0; box-shadow: none; border-radius: 0; padding: 10px 0; }
  .pr-print, .pr-cta .btn { display: none; }
  .pr-sec, .pr-cta { break-inside: avoid; }
}
