/* member-register.css  (2026-06-29) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');
:root {
  --brand: #6b21a8; --brand-d: #4c1472; --brand-l: #f5f0ff;
  --accent: #10b981; --ink: #1a1a2e; --muted: #64748b;
  --line: #e8e0f5; --bg: #f8f5ff; --white: #fff;
  --red: #dc2626; --r: 12px;
  font-family: 'Inter','Noto Sans TC',sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
input, select, textarea, button { font: inherit; }

/* Top bar */
.topline {
  background: var(--brand); color: #fff; font-size: 13px;
  padding: 0 20px; height: 36px; display: flex; align-items: center;
}
.topline .wrap { max-width: 880px; margin: 0 auto; width: 100%;
  display: flex; justify-content: space-between; align-items: center; }
.topline a { color: rgba(255,255,255,.8); font-size: 13px; }
.topline a:hover { color: #fff; }

/* Header */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.head-inner { max-width: 880px; margin: 0 auto; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center; }
.brand img { height: 40px; }
nav a { color: var(--muted); font-size: 14px; margin-left: 22px; font-weight: 500; transition: color .15s; }
nav a:hover { color: var(--brand); }

/* Wrap */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Page Title */
.page-title { padding: 36px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.eyebrow { font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.page-title h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.intro-copy { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 520px; }
.title-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.title-links a {
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  border: 1.5px solid var(--brand); border-radius: 20px; color: var(--brand); transition: all .15s;
}
.title-links a:hover { background: var(--brand); color: #fff; }

/* Workspace */
.workspace { padding: 24px 20px 60px; }

.status-lookup { margin-top: 24px; }
.status-lookup > h2 { font-size: 19px; margin-bottom: 6px; }
.status-lookup > p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.status-lookup-form { margin-top: 14px; }
.status-lookup-form label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.status-lookup-controls { display: flex; gap: 10px; }
.status-lookup-controls input { min-width: 0; flex: 1; }
.status-lookup-result { margin-top: 12px; color: var(--ink); line-height: 1.6; }
.status-lookup-result:not(:empty) { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.status-lookup-result strong { color: var(--brand); }
.status-lookup-result ol { margin: 8px 0 0 22px; }

/* Register Card */
.register-card {
  background: var(--white); border-radius: 20px;
  box-shadow: 0 4px 40px rgba(107,33,168,.08);
  border: 1.5px solid var(--line); overflow: hidden;
}

/* Flow Header */
.flow-head { padding: 24px 28px; border-bottom: 1px solid var(--line); background: var(--brand-l); }
.flow-head h2 { font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 16px; letter-spacing: .04em; }
.flow-track { display: flex; align-items: center; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.flow-track::-webkit-scrollbar { display: none; }
.flow-label { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; padding: 0 12px; }
.flow-track ol { display: flex; gap: 0; list-style: none; }
.flow-track li {
  display: flex; align-items: center; gap: 6px; position: relative;
  padding: 8px 20px 8px 12px; font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,.5); border-radius: 6px; margin-right: 4px;
  white-space: nowrap; transition: all .2s; font-weight: 500;
}
.flow-track li b {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.flow-track li.active { color: var(--brand); background: var(--white); box-shadow: 0 2px 8px rgba(107,33,168,.12); }
.flow-track li.active b { background: var(--brand); color: #fff; }
.flow-track li.done b { background: var(--accent); color: #fff; }

/* Form steps */
.application-form { padding: 28px; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step > h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }

.section-block { margin-bottom: 28px; padding: 20px; background: #fafbff; border-radius: 12px; border: 1.5px solid var(--line); }
.section-block h4 { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
th { background: var(--brand-l); color: var(--brand); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; text-align: left; }
td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.5; }
tr:hover td { background: #fafbff; }
th:first-child, td:first-child { width: 18%; min-width: 104px; white-space: nowrap; }
th:last-child, td:last-child { width: 16%; min-width: 92px; }
td:last-child { white-space: nowrap; font-weight: 700; color: var(--accent); }

/* Form Grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label, .inline-field { display: grid; gap: 5px; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid label.photo-field { grid-column: 1 / -1; }
label > span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
label > span em { color: var(--red); font-style: normal; margin-right: 2px; }
label small { font-size: 11px; color: var(--muted); line-height: 1.4; }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=file], select, textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--ink); background: var(--white);
  outline: none; transition: border .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107,33,168,.08); }
input[type=file] { padding: 8px; cursor: pointer; background: var(--brand-l); }

/* Radio grid */
.radio-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-grid label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 8px; transition: all .15s; }
.radio-grid label:has(input:checked) { border-color: var(--brand); background: var(--brand-l); color: var(--brand); font-weight: 600; }
.radio-grid input { accent-color: var(--brand); }
.radio-grid.short label { font-size: 13px; }

/* Agree */
.check-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; }
.check-line input { margin-top: 2px; accent-color: var(--brand); }
.check-line span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.check-line a { color: var(--brand); font-weight: 600; }

.code-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.code-inline .outline-btn {
  white-space: nowrap;
  padding: 10px 14px;
}

/* Step actions */
.step-actions { margin-top: 28px; display: flex; justify-content: flex-end; }
.step-actions.split { justify-content: space-between; }

/* Buttons */
.primary-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  color: #fff; font-size: 15px; font-weight: 700;
  padding: 13px 32px; border-radius: 12px; border: none; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.primary-btn:hover { opacity: .9; }
.primary-btn:active { transform: scale(.98); }
.outline-btn {
  background: transparent; border: 1.5px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 12px 28px; border-radius: 12px; cursor: pointer; transition: all .15s;
}
.outline-btn:hover { border-color: var(--brand); color: var(--brand); }

/* Fee box */
.fee-box { text-align: left; }
.fee-box p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.fee-box strong { color: var(--accent); }

/* Complete box */
.complete-box { text-align: center; padding: 40px 20px; }
.complete-box strong { display: block; font-size: 26px; font-weight: 800; margin-bottom: 12px; color: var(--accent); }
.complete-box p { font-size: 15px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.complete-box .outline-btn { margin-right: 10px; }

/* Message */
.message {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  margin-bottom: 16px; display: none; line-height: 1.5;
}
.message.show { display: block; background: var(--brand-l); color: var(--brand); border: 1px solid var(--line); }
.message.error { display: block; background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.message.success { display: block; background: #ecfdf5; color: var(--accent); border: 1px solid #a7f3d0; }

/* Footer */
footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 880px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 600px) {
  .status-lookup-controls { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .flow-track li span { display: none; }
  .page-title { padding: 20px 16px 0; }
  .workspace { padding: 16px 16px 40px; }
  .application-form { padding: 20px 16px; }
  .step-actions { gap: 10px; }
  .primary-btn, .outline-btn { padding: 12px 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
