:root {
  --gold:    #c9973c;
  --gold-lt: #e8c97a;
  --brown:   #6b4226;
  --brown-lt:#8b5e3c;
  --cream:   #fdf8f0;
  --bg:      #faf7f2;
  --text:    #2c2c2c;
  --muted:   #7a7a7a;
  --border:  #e0c9a8;
  --shadow:  0 4px 20px rgba(107,66,38,.12);
  --radius:  12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Serif TC', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, var(--brown) 0%, #3d1f0a 100%);
  color: #fff;
  text-align: center;
  padding: 20px 20px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.site-header .logo { font-size: 1.8rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-lt); }
.site-header .tagline { font-size: .85rem; opacity: .8; letter-spacing: .06em; }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--brown) 0%, #5a2d0c 50%, var(--brown-lt) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--gold-lt); margin-bottom: 16px; }
.hero p  { font-size: 1.1rem; opacity: .9; max-width: 540px; margin: 0 auto 36px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s;
  letter-spacing: .04em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a8722a 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(201,151,60,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,151,60,.5); }
.btn-outline {
  background: transparent;
  color: var(--gold-lt);
  border: 2px solid var(--gold-lt);
}
.btn-outline:hover { background: var(--gold-lt); color: var(--brown); }
.btn-full { width: 100%; text-align: center; display: block; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Container ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ── Section ── */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 1.8rem; color: var(--brown); margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 48px; }

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card:hover, .service-card.selected {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(201,151,60,.2);
  transform: translateY(-4px);
}
.service-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 16px;
  width: 24px; height: 24px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 24px; text-align: center;
}
.service-card .icon { font-size: 3rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.25rem; color: var(--brown); margin-bottom: 8px; }
.service-card p { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.service-card .price { font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.service-card .price span { font-size: .85rem; color: var(--muted); font-weight: 400; }

/* ── Forms ── */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: .9rem; font-weight: 600; color: var(--brown); margin-bottom: 8px; }
.form-label .req { color: #c0392b; margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,60,.12); }
.form-control::placeholder { color: #b0a090; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.form-error { font-size: .8rem; color: #c0392b; margin-top: 5px; display: none; }

/* ── Steps ── */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 1;
  max-width: 160px;
}
.step::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step:last-child::after { display: none; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  background: #fff;
  position: relative;
  z-index: 1;
  font-size: .9rem;
  color: var(--muted);
  transition: all .3s;
}
.step.active .step-num { border-color: var(--gold); color: var(--gold); background: #fff9ed; }
.step.done .step-num { border-color: var(--gold); background: var(--gold); color: #fff; }
.step.done::after { background: var(--gold); }
.step-label { font-size: .75rem; color: var(--muted); text-align: center; }
.step.active .step-label { color: var(--gold); font-weight: 600; }

/* ── Form panels ── */
.form-panel { display: none; }
.form-panel.active { display: block; }

/* ── Order summary ── */
.summary-table { width: 100%; }
.summary-table tr td { padding: 10px 4px; border-bottom: 1px solid var(--border); }
.summary-table tr td:first-child { color: var(--muted); font-size: .9rem; width: 45%; }
.summary-table tr td:last-child { font-weight: 500; }
.summary-table tr:last-child td { border-bottom: none; font-size: 1.1rem; font-weight: 700; color: var(--gold); }

/* ── Alert ── */
.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; font-size: .95rem; }
.alert-info    { background: #e8f4fd; border: 1px solid #bee3f8; color: #2b6cb0; }
.alert-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.alert-warning { background: #fffbeb; border: 1px solid #f6e05e; color: #744210; }
.alert-danger  { background: #fff5f5; border: 1px solid #feb2b2; color: #742a2a; }

/* ── Loader ── */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}
.loader-overlay.show { display: flex; }
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--brown); font-size: 1rem; }

/* ── Footer ── */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 32px 20px;
  font-size: .85rem;
  margin-top: auto;
}
.site-footer a { color: var(--gold-lt); text-decoration: none; }

/* ── Radio group ── */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-btn {
  flex: 1; min-width: 80px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: .9rem;
  transition: all .2s;
  background: #fff;
  user-select: none;
}
.radio-btn input { display: none; }
.radio-btn:has(input:checked),
.radio-btn.checked {
  border-color: var(--gold);
  background: #fff9ed;
  color: var(--brown);
  font-weight: 600;
}

/* ── Char quick-fill buttons (stage form) ── */
.char-quick-btn {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  transition: all .2s;
}
.char-quick-btn:hover { border-color: var(--gold-lt); color: var(--brown-lt); }
.char-quick-btn.active { border-color: var(--gold); color: var(--brown); background: #fff9ed; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
  .steps { gap: 0; }
  .step-label { display: none; }
  .hero { padding: 50px 20px; }
}
