:root {
  --bg: #f3f6f9;
  --card: #ffffff;
  --ink: #0c2235;
  --muted: #5a6c7b;
  --line: #d5dee6;
  --brand: #0d5d8c;
  --brand-2: #ec8f2c;
  --ok: #1f8a4d;
  --danger: #b23c2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, #e7f2fa 0%, var(--bg) 48%);
  min-height: 100vh;
  position: relative;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  z-index: -1;
}

.orb-a {
  background: #66b5d9;
  top: -80px;
  left: -80px;
}

.orb-b {
  background: #ffb156;
  bottom: -120px;
  right: -80px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #0c2235;
  color: #fff;
  border-bottom: 1px solid #18364f;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 1rem;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: #d9e8f4;
  text-decoration: none;
  font-size: 0.95rem;
}

.page {
  padding: 2rem 0 3rem;
}

.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.hero {
  background: linear-gradient(135deg, #0d5d8c, #1c7bb2 64%, #ec8f2c);
  color: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 16px 42px rgba(13, 93, 140, 0.25);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
}

h1 {
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

p {
  margin: 0 0 0.7rem;
  line-height: 1.6;
}

.hero-sub {
  max-width: 740px;
}

.eyebrow {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #48657a;
  margin-bottom: 0.4rem;
}

.hero .eyebrow {
  color: #c7e8fb;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: #0f6fa8;
  color: #fff;
}

.btn.secondary {
  background: #ec8f2c;
  color: #fff;
}

.btn.ghost {
  background: #f0f5f9;
  color: #17344b;
  border: 1px solid #cfdbe4;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(180deg, #fff, #f9fbfd);
}

.text-link {
  color: #0d5d8c;
  text-decoration: none;
  font-weight: 700;
}

.step-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
  background: #fff;
}

.timeline-item span {
  display: inline-block;
  font-size: 0.8rem;
  color: #0d5d8c;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.status-row span {
  background: #edf3f7;
  border: 1px solid #d3dfe8;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
}

.wizard-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.wizard-top {
  margin-bottom: 1rem;
}

.wizard-progress {
  height: 9px;
  background: #e7edf2;
  border-radius: 999px;
  overflow: hidden;
}

.wizard-progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #0d5d8c, #ec8f2c);
  transition: width 0.2s ease;
}

.wizard-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.field-grid.single {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: #1f3c53;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d7e3;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fbfdff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(13, 93, 140, 0.18);
  border-color: #0d5d8c;
}

.field-block {
  margin-bottom: 0.9rem;
}

.field-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1px solid #c7d7e4;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: #f6fbff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
}

.chip input {
  width: auto;
  margin: 0;
}

.consent-box {
  margin-top: 1rem;
  border: 1px dashed #b8c8d5;
  border-radius: 10px;
  padding: 0.8rem;
  background: #f7fbfe;
}

.consent-box label {
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-bottom: 0.55rem;
}

.consent-box input {
  width: auto;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.6rem;
}

[data-submit] {
  display: none;
}

.flash-wrap {
  margin-bottom: 0.8rem;
}

.flash {
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
}

.flash.error {
  background: #ffe8e5;
  color: var(--danger);
  border: 1px solid #f4c3bc;
}

.flash.success {
  background: #e7f8ed;
  color: var(--ok);
  border: 1px solid #bbdfc8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 0.3rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #dee7ee;
  padding: 0.6rem 0.45rem;
  font-size: 0.9rem;
}

.status {
  background: #eaf3fa;
  color: #245a83;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.success-box ul {
  margin: 0.8rem 0;
  padding-left: 1.1rem;
}

.site-footer {
  border-top: 1px solid #d7e0e7;
  color: #4a6174;
  background: #f5f9fc;
}

.footer-inner {
  padding: 1rem 0;
  font-size: 0.86rem;
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .hero {
    padding: 1.3rem;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }

  .wizard-actions .btn {
    flex: 1;
  }
}
