/* 力行里線上服務中心｜Mobile-first */
:root {
  --pink: #f36da8;
  --pink-strong: #e94f94;
  --pink-soft: #fff0f7;
  --pink-faint: #fff8fb;
  --ink: #151515;
  --muted: #6f6f75;
  --line: #ece7ea;
  --white: #ffffff;
  --green: #1f9d68;
  --amber: #c98500;
  --red: #d84545;
  --blue: #356fd6;
  --shadow: 0 14px 40px rgba(32, 19, 26, .08);
  --radius: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #ffe8f4 0, transparent 27%),
    linear-gradient(180deg, #fff 0%, var(--pink-faint) 55%, #fff 100%);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236,231,234,.85);
}
.brand {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.brand strong { display:block; font-size: 14px; }
.brand small { display:block; color:var(--muted); font-size: 11px; margin-top:2px; }
.header-track {
  border: 0;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 13px;
  white-space: nowrap;
}

main {
  width: min(100%, 1020px);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.hero {
  padding: 38px 6px 18px;
}
.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-weight: 800;
  font-size: 12px;
}
.hero h1 {
  font-size: clamp(34px, 10vw, 62px);
  line-height: 1.05;
  margin: 18px 0 12px;
  letter-spacing: -1.5px;
}
.hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  max-width: 690px;
}
.hero strong { color: var(--ink); }

.primary-grid,
.identity-grid,
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}
.action-card,
.option-card {
  appearance:none;
  width:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.93);
  color:var(--ink);
  text-align:left;
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 6px 24px rgba(39,27,34,.04);
  transition:.18s ease;
}
.action-card:hover,
.option-card:hover {
  transform: translateY(-2px);
  border-color:#f5bfd7;
  box-shadow:var(--shadow);
}
.action-card .icon,
.option-card .icon {
  width:46px;
  height:46px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:var(--pink-soft);
  font-size:24px;
  margin-bottom:14px;
}
.action-card h3,
.option-card h3 {
  margin:0 0 6px;
  font-size:18px;
}
.action-card p,
.option-card p {
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}
.action-card.highlight {
  background: var(--ink);
  color:var(--white);
  border-color:var(--ink);
}
.action-card.highlight p { color:#d7d7da; }
.action-card.highlight .icon { background:#2b2b2d; }

.section-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.section-head h2 {
  margin:0;
  font-size:28px;
  letter-spacing:-.5px;
}
.section-head p {
  margin:7px 0 0;
  color:var(--muted);
  line-height:1.6;
}
.back-btn {
  border:1px solid var(--line);
  background:var(--white);
  border-radius:999px;
  padding:9px 13px;
  color:var(--ink);
  font-weight:700;
  white-space:nowrap;
}

.progress {
  display:flex;
  gap:6px;
  margin:0 0 20px;
}
.progress span {
  height:5px;
  flex:1;
  border-radius:999px;
  background:#eee9ec;
}
.progress span.on { background:var(--pink); }

.context-banner {
  padding:14px 16px;
  border-radius:16px;
  background:var(--pink-soft);
  color:#7f2d55;
  font-weight:700;
  margin-bottom:14px;
}

.form-card,
.result-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.96);
  padding:20px;
  box-shadow:var(--shadow);
}
.form-section + .form-section {
  border-top:1px solid var(--line);
  margin-top:22px;
  padding-top:22px;
}
.form-section h3 {
  margin:0 0 15px;
  font-size:18px;
}
.field {
  display:block;
  margin-bottom:15px;
}
.field span {
  display:block;
  font-size:13px;
  font-weight:800;
  margin-bottom:7px;
}
.field small {
  display:block;
  color:var(--muted);
  margin-top:6px;
  line-height:1.5;
}
input, textarea, select {
  width:100%;
  border:1px solid #ddd7db;
  border-radius:14px;
  padding:13px 14px;
  background:#fff;
  color:var(--ink);
  outline:none;
  transition:.18s ease;
}
input:focus, textarea:focus, select:focus {
  border-color:var(--pink);
  box-shadow:0 0 0 4px rgba(243,109,168,.10);
}
textarea { min-height:110px; resize:vertical; }

.checkbox-row,
.radio-row {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.pill-check input { display:none; }
.pill-check label {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 12px;
  font-size:13px;
  font-weight:700;
  background:#fff;
}
.pill-check input:checked + label {
  border-color:var(--pink);
  background:var(--pink-soft);
  color:var(--pink-strong);
}

.photo-box {
  border:1.5px dashed #d8cfd4;
  border-radius:16px;
  padding:18px;
  background:#fffafd;
}
.photo-box input { border:0; padding:0; background:transparent; }

.privacy-note {
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:16px 0;
  padding:13px 14px;
  border-radius:14px;
  background:#f7f7f8;
  color:#55555a;
  font-size:13px;
  line-height:1.55;
}
.privacy-note strong { color:var(--ink); }

.btn-primary,
.btn-secondary {
  width:100%;
  border:0;
  border-radius:16px;
  padding:14px 18px;
  font-weight:900;
  font-size:15px;
}
.btn-primary { background:var(--ink); color:#fff; }
.btn-primary:hover { background:#2c2c2e; }
.btn-secondary {
  background:var(--pink-soft);
  color:var(--pink-strong);
  margin-top:10px;
}

.success-mark {
  width:68px;
  height:68px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eaf8f1;
  color:var(--green);
  font-size:34px;
  margin-bottom:16px;
}
.case-code {
  font-size:24px;
  font-weight:950;
  letter-spacing:.3px;
  word-break:break-all;
}
.status-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:7px 10px;
  font-weight:800;
  font-size:12px;
  margin-top:10px;
}
.status-received { background:#fff4d7; color:#8a6200; }
.status-checking { background:#eef4ff; color:#2d5eaf; }
.status-forwarded { background:#edf2ff; color:#3f58a2; }
.status-processing { background:#fff0f7; color:#ad3c70; }
.status-done { background:#eaf8f1; color:#247851; }

.timeline {
  margin-top:20px;
  border-top:1px solid var(--line);
  padding-top:6px;
}
.timeline-item {
  position:relative;
  padding:17px 0 17px 29px;
  border-bottom:1px solid var(--line);
}
.timeline-item:last-child { border-bottom:0; }
.timeline-item:before {
  content:"";
  position:absolute;
  left:3px;
  top:23px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:#d9d5d7;
  box-shadow:0 0 0 5px #f5f2f4;
}
.timeline-item.done:before { background:var(--pink); }
.timeline-item strong { display:block; font-size:14px; }
.timeline-item small { display:block; color:var(--muted); margin-top:4px; line-height:1.5; }

.track-box {
  display:grid;
  gap:12px;
  margin-top:20px;
}
.empty-state {
  text-align:center;
  padding:32px 18px;
  color:var(--muted);
}
.help-strip {
  margin-top:26px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:20px;
  padding:18px;
}
.help-strip strong { display:block; margin-bottom:5px; }
.help-strip p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }

.site-footer {
  width:min(100%,1020px);
  margin:0 auto;
  padding:10px 18px 38px;
  color:var(--muted);
}
.site-footer p {
  color:var(--ink);
  font-weight:900;
  margin-bottom:6px;
}
.site-footer small { line-height:1.6; }

.toast {
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%,20px);
  padding:11px 15px;
  background:#151515;
  color:#fff;
  border-radius:999px;
  font-size:13px;
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:99;
  box-shadow:var(--shadow);
}
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (min-width:700px) {
  main { padding:38px 24px 54px; }
  .site-header { padding:14px 26px; }
  .primary-grid { grid-template-columns:repeat(2,1fr); }
  .identity-grid { grid-template-columns:repeat(2,1fr); }
  .category-grid { grid-template-columns:repeat(3,1fr); }
  .form-card, .result-card { padding:28px; }
  .hero { padding-top:52px; }
}

@media (min-width:980px) {
  .identity-grid { grid-template-columns:repeat(3,1fr); }
}

/* V3.2｜個資同意送件提示 */
.consent-block {
  margin: 16px 0 14px;
  padding: 2px;
  border-radius: 16px;
  scroll-margin-top: 110px;
}
.consent-block .pill-check {
  display: block;
}
.consent-block .pill-check label {
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.5;
}
.consent-error {
  display: none;
  margin: 8px 4px 0;
  color: #c62828;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 900;
}
.consent-block.error .consent-error {
  display: block;
}
.consent-block.error .pill-check label {
  border-color: #e14b4b;
  background: #fff1f1;
  color: #a52121;
  box-shadow: 0 0 0 4px rgba(216,69,69,.10);
}
.consent-block.error .pill-check label:focus {
  outline: 3px solid rgba(216,69,69,.18);
  outline-offset: 2px;
}
