/* ═══════════════════════════════════════════════
   化妝品安全評估諮詢報價系統 — 樣式表 v2
   ═══════════════════════════════════════════════ */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #0f2440;
  --navy-light: #2c5282;
  --navy-50:    rgba(26,58,92,0.06);
  --gold:       #b8942f;
  --gold-light: #d4af5a;
  --gold-bg:    #fdf8ee;
  --bg:         #f2f5f9;
  --card:       #ffffff;
  --text:       #2d3748;
  --text-muted: #718096;
  --border:     #e2e8f0;
  --border-2:   #cbd5e0;
  --red:        #c53030;
  --red-bg:     #fff5f5;
  --red-border: #fc8181;
  --green:      #276749;
  --green-bg:   #f0fff4;
  --green-border:#9ae6b4;
  --teal:       #2b6cb0;
  --teal-bg:    #ebf8ff;
  --shadow:     0 2px 12px rgba(26,58,92,0.07);
  --shadow-md:  0 4px 20px rgba(26,58,92,0.11);
  --shadow-lg:  0 12px 40px rgba(26,58,92,0.16);
  --radius:     12px;
  --radius-sm:  7px;
  --transition: 0.18s ease;
}

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

body {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

/* ── TOOLTIP ── */
.tt {
  position: relative;
  cursor: help;
  color: var(--navy);
  text-decoration: underline dotted 1px;
  text-underline-offset: 3px;
}
.tooltip-popup {
  position: fixed;
  z-index: 9999;
  background: var(--navy-dark);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 7px;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  white-space: normal;
}
.tooltip-popup.visible { opacity: 1; }

/* ── HEADER ── */
.site-header {
  background: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  padding-left: 16px;
  border-left: 1px solid var(--border-2);
  margin-left: 2px;
}
.header-badges { display: flex; gap: 6px; }
.badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
  border: 1px solid var(--navy-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(180deg, rgba(26,58,92,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px 24px;
}
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── MAIN LAYOUT ── */
.main-layout {
  max-width: 1120px;
  margin: 28px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ── FORM WRAPPER ── */
.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── SERVICE OVERVIEW ── */
.service-overview {
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 22px 28px;
  border-top: 4px solid var(--gold);
}
.overview-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.overview-icon { font-size: 24px; flex-shrink: 0; }
.overview-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.overview-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}
.ov-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}
.ov-check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FORM SECTION ── */
.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 26px 28px;
  animation: fadeUp 0.35s ease both;
}
.form-section:last-of-type {
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: 1px solid var(--border);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-num {
  background: var(--navy);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-header h2 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.section-optional {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-muted);
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 10px;
}
.section-note {
  font-size: 13px;
  color: var(--text-muted);
  background: #f8fafc;
  border-left: 3px solid var(--gold);
  padding: 8px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ── FORM GRID ── */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-span-2 { grid-column: span 2; }

/* ── FORM GROUP ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(44,82,130,0.12);
}
.form-group input.error,
.form-group select.error { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 84px; }
.hint { font-size: 12px; color: var(--text-muted); }
.req { color: var(--red); font-size: 13px; }

.char-counter {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── CHECKBOX BASE ── */
.cb-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-2);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  background: #fff;
}
input[type="checkbox"] { display: none; }

/* ── SPECIAL INGREDIENT CHECKLIST ── */
.special-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.special-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  transition: border-color var(--transition), background var(--transition), transform 0.1s;
  user-select: none;
}
.special-item:hover {
  border-color: var(--navy-light);
  background: #f0f5ff;
  transform: translateY(-1px);
}
.special-item:has(input:checked) {
  border-color: var(--navy);
  background: #eef3fb;
}
.special-item:has(input:checked) .cb-box {
  background: var(--navy);
  border-color: var(--navy);
}
.special-item:has(input:checked) .cb-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.needs-project.special-item:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.needs-project.special-item:has(input:checked) .cb-box {
  background: var(--gold);
  border-color: var(--gold);
}
.none-item.special-item:has(input:checked) {
  border-color: var(--border-2);
  background: #f8fafc;
}
.cb-info { flex: 1; }
.cb-info strong { display: block; font-size: 13.5px; font-weight: 500; }
.cb-info small { font-size: 11.5px; color: var(--text-muted); }
.project-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  background: #fef3cd;
  color: #856404;
  white-space: nowrap;
  flex-shrink: 0;
}
.surcharge-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  background: #e0f0ff;
  color: #1a56a0;
  white-space: nowrap;
  flex-shrink: 0;
}
.surcharge-item:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
}
.surcharge-item:has(input:checked) .cb-box {
  background: #2563eb;
  border-color: #2563eb;
}

/* ── INFO NOTE (動態顯示) ── */
.info-note {
  margin-top: 12px;
  background: var(--teal-bg);
  border: 1px solid #bee3f8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: #2a4a6b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}
.info-icon { flex-shrink: 0; font-size: 15px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── DOC CHECKLIST ── */
.doc-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 10px;
}
.required-label    { background: #fed7d7; color: #9b2c2c; }
.critical-label    { background: #fc8181; color: #63171b; font-weight: 700; }
.arrangeable-label { background: #c6f6d5; color: #1c4532; }
.recommended-label { background: #bee3f8; color: #1a365d; }

.doc-fee-note {
  font-size: 12.5px;
  color: #744210;
  background: #fffbeb;
  border: 1px solid #fbd38d;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.doc-checklist { display: flex; flex-direction: column; gap: 8px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.doc-item:hover { border-color: var(--border-2); background: #fafafa; }
.doc-item:has(input:checked) {
  border-color: var(--green-border);
  background: var(--green-bg);
}
.doc-item:has(input:checked) .cb-box {
  background: var(--green);
  border-color: var(--green);
}
.doc-item:has(input:checked) .cb-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.doc-info { flex: 1; }
.doc-info strong { display: block; font-size: 13.5px; font-weight: 500; }
.doc-info small { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.doc-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.doc-req      { background: #fed7d7; color: #9b2c2c; }
.doc-critical { background: #fc8181; color: #63171b; font-weight: 700; }
.doc-lab      { background: #c6f6d5; color: #1c4532; }
.doc-rec      { background: #bee3f8; color: #2a4a6b; }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: #fafbfc;
}
.upload-zone:hover {
  border-color: var(--navy-light);
  background: #f0f5ff;
}
.upload-zone.dragover {
  border-color: var(--navy);
  background: #eef3fb;
}
.upload-icon { font-size: 32px; margin-bottom: 10px; }
.upload-text { font-size: 14px; font-weight: 500; color: var(--navy); }
.upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.upload-selected {
  margin-top: 12px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

/* ── TIMELINE TABLE ── */
.timeline-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.timeline-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.timeline-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.timeline-table tr:last-child td { border-bottom: none; }
.row-urgent td { background: #fffbeb; }
.row-urgent td:last-child strong { color: var(--red); }
.timeline-note {
  padding: 10px 14px;
  font-size: 12.5px;
  color: #744210;
  background: #fffbeb;
  border-top: 1px solid #fbd38d;
  line-height: 1.6;
}

/* ── CHECKBOX GRID ── */
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  user-select: none;
  transition: border-color var(--transition), background var(--transition);
  background: #fff;
}
.check-item:hover { border-color: var(--border-2); background: #fafafa; }
.check-item:has(input:checked) { border-color: var(--navy); background: #eef3fb; }
.check-item:has(input:checked) .cb-box {
  background: var(--navy);
  border-color: var(--navy);
}
.check-item:has(input:checked) .cb-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.check-item.large {
  padding: 12px 14px;
  height: 100%;
  align-items: flex-start;
}
.check-item small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ── CONSULT BLOCK ── */
.consult-block {
  background: linear-gradient(135deg, var(--gold-bg) 0%, #fff8e8 100%);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 28px 0;
}
.consult-icon { font-size: 22px; flex-shrink: 0; }
.consult-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.consult-body p { font-size: 13.5px; color: var(--text); line-height: 1.7; }

/* ── CONFIRM BLOCK ── */
.confirm-block {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  padding: 22px 28px;
}
.confirm-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.confirm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  margin-bottom: 8px;
  background: #fafbfc;
  transition: border-color var(--transition), background var(--transition);
}
.confirm-item:hover { border-color: var(--border-2); background: #fff; }
.confirm-item:has(input:checked) {
  border-color: var(--green-border);
  background: var(--green-bg);
}
.confirm-item:has(input:checked) .cb-box {
  background: var(--green);
  border-color: var(--green);
}
.confirm-item:has(input:checked) .cb-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.confirm-item.shake {
  animation: shake 0.4s ease;
  border-color: var(--red);
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-4px); }
  40%,80%  { transform: translateX(4px); }
}

/* ── ADMIN SECTION ── */
.admin-section {
  border: 1px dashed var(--border-2);
  border-top: none;
  background: #fafbfc;
  overflow: hidden;
}
.admin-header {
  padding: 12px 28px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.admin-header:hover { background: #f0f4f8; }
.admin-body { padding: 16px 28px; }

/* ── SUBMIT ── */
.submit-area {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px 28px;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 52px;
  font-size: 16px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(26,58,92,0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,92,0.38);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary.small { padding: 10px 32px; font-size: 14px; }
.btn-icon { font-size: 16px; }
.submit-note { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }

/* ── SIDEBAR ── */
.sidebar-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 20px 18px;
}
.info-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.flow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: flow;
}
.flow-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  line-height: 1.5;
  counter-increment: flow;
}
.flow-list li:last-child { border-bottom: none; }
.flow-list li::before {
  content: counter(flow);
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── ACCORDION ── */
.accordion { display: flex; flex-direction: column; gap: 0; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 11px 0;
  font-size: 13px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: color var(--transition);
}
.acc-trigger:hover { color: var(--navy-light); }
.acc-arrow {
  font-size: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.acc-trigger.open .acc-arrow { transform: rotate(90deg); }
.acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.2s;
}
.acc-body.open { max-height: 400px; padding-bottom: 12px; }
.acc-body p { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }

.contact-card a.contact-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}
.contact-card a.contact-link:hover { text-decoration: underline; }

/* ── OVERLAY ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,36,64,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

/* ── LOADING ── */
.loading-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 52px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.loading-sub { font-size: 13px; color: var(--text-muted); }

/* ── RESULT MODAL ── */
.result-modal {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  animation: popIn 0.25s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.result-success-header {
  background: linear-gradient(135deg, #276749 0%, #2f855a 100%);
  color: #fff;
  padding: 28px 28px 24px;
  text-align: center;
}
.result-check {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 14px;
}
.result-success-header h2 { font-size: 20px; font-weight: 700; }
.result-message {
  padding: 22px 28px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
}
.result-message p + p { margin-top: 8px; color: var(--text-muted); font-size: 13.5px; }
.result-actions {
  padding: 4px 28px 20px;
  display: flex;
  justify-content: center;
}

/* ── ADMIN DRAFT ── */
.admin-draft {
  border-top: 1px dashed var(--border);
  background: #fafbfc;
}
.draft-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Noto Sans TC', sans-serif;
}
.draft-toggle:hover { background: #f0f4f8; }
.draft-actions { padding: 8px 16px; }
.btn-copy {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-size: 13px;
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-copy:hover { background: var(--navy-dark); }
.draft-body { max-height: 340px; overflow-y: auto; }
.draft-content {
  padding: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}
/* Draft markdown */
.draft-content h2 { font-size: 15px; color: var(--navy); margin: 16px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.draft-content h3 { font-size: 14px; color: var(--navy); margin: 12px 0 6px; }
.draft-content p { margin-bottom: 8px; }
.draft-content ul, .draft-content ol { padding-left: 18px; margin-bottom: 8px; }
.draft-content li { margin-bottom: 3px; }
.draft-content table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.draft-content th { background: var(--navy); color: #fff; padding: 7px 10px; text-align: left; font-size: 12px; }
.draft-content td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.draft-content tr:nth-child(even) td { background: #f8fafc; }
.draft-content strong { color: var(--navy); }
.draft-content blockquote { border-left: 3px solid var(--gold); padding: 6px 14px; background: var(--gold-bg); font-size: 12.5px; margin: 10px 0; }
.draft-content hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 18px 20px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .sidebar-sticky { position: static; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: span 1; }
  .special-checklist { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .header-badges .badge:not(:first-child) { display: none; }
}

@media (max-width: 500px) {
  body { font-size: 16px; }
  .form-section { padding: 20px 16px; }
  .service-overview { padding: 18px 16px; }
  .confirm-block { padding: 18px 16px; }
  .submit-area { padding: 20px 16px; }
  .consult-block { margin: 0 16px; }
  .hero-title { font-size: 20px; }
  .hero-sub { font-size: 14px; }
  .btn-primary { padding: 14px 36px; font-size: 16px; }
  .form-label { font-size: 14px; }
  input, select, textarea { font-size: 16px; }
}
