/* ==========================================================================
   Wende Wealth Management — Design System
   Modern financial-services aesthetic: deep navy + refined gold.
   No external resources (fonts, images, scripts) — CSP: default-src 'self'.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #061120;
  --navy-900: #081729;
  --navy-800: #0b1f3a;
  --navy-700: #11294b;
  --navy-600: #16335d;
  --navy-100: #e8edf5;

  --gold-600: #b8912c;
  --gold-500: #c9a032;
  --gold-400: #d4af37;
  --gold-300: #e3c766;
  --gold-100: #f7efd8;
  /* WCAG-safe gold for TEXT on light backgrounds (≥4.5:1 on #fff, --bg and --gold-100).
     Keep --gold-400/600 for backgrounds, borders, and text on navy. */
  --gold-text: #856818;

  --text: #1c2a3a;
  --muted: #56677c;
  --line: #e2e8f0;
  --bg: #f7f9fc;
  --card: #ffffff;

  --ok: #1d7a4f;
  --ok-bg: #e9f6ef;
  --err: #b3261e;
  --err-bg: #fdecea;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 23, 41, 0.06), 0 1px 3px rgba(8, 23, 41, 0.08);
  --shadow-md: 0 4px 14px rgba(8, 23, 41, 0.08), 0 2px 4px rgba(8, 23, 41, 0.05);
  --shadow-lg: 0 16px 40px rgba(8, 23, 41, 0.14);

  --container: 1160px;
  --header-h: 72px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

/* Traditional Chinese gets Traditional-first font stacks */
html[lang="zh-Hant"] body,
html[lang="zh-Hant"] button,
html[lang="zh-Hant"] input,
html[lang="zh-Hant"] select,
html[lang="zh-Hant"] textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei",
    "Noto Sans CJK TC", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--navy-800);
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }

a {
  color: var(--navy-600);
  text-decoration: none;
}
a:hover { color: var(--gold-text); }

:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-900);
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section.tight { padding: clamp(36px, 5vw, 56px) 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #dbe4f0;
}
.section.dark h2, .section.dark h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}
/* A group heading that follows a card grid needs room to breathe. */
.grid + .section-head,
.notice + .section-head {
  margin-top: clamp(36px, 5vw, 56px);
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.section.dark .section-head p { color: #b6c4d8; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 12px;
}
.section.dark .eyebrow { color: var(--gold-300); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}
.section-head:not(.left) .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}

.grid {
  display: grid;
  gap: 22px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(201, 160, 50, 0.35);
}
.btn-gold:hover {
  color: var(--navy-950);
  box-shadow: 0 8px 22px rgba(201, 160, 50, 0.5);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-600); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold-300); color: var(--gold-300); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline-navy:hover { border-color: var(--gold-600); color: var(--gold-600); }

.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 23, 41, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: 0;
}
.brand:hover { color: #fff; }
/* The logo is purple/green on transparent — a white chip keeps it readable on navy. */
.brand-mark {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub { font-size: 0.72rem; color: var(--gold-300); letter-spacing: 0.08em; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  color: #cfdaea;
  font-weight: 600;
  font-size: 0.97rem;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a.active { color: var(--gold-300); }
.site-nav a.nav-cta {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  margin-left: 6px;
}
.site-nav a.nav-cta:hover { color: var(--navy-950); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .brand-mark { height: 34px; padding: 5px 6px; }
  .brand-name { font-size: 0.88rem; }
  .brand-sub { display: none; }
  .header-actions { gap: 8px; }
  .lang-btn { padding: 7px 11px; gap: 5px; }
}

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lang-btn .globe { width: 16px; height: 16px; }
.lang-btn .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
}
.lang-switch.open .lang-btn .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 120;
}
.lang-menu[hidden] { display: none; }
.lang-menu li {
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.lang-menu li:hover { background: var(--navy-100); }
.lang-menu li[aria-selected="true"] {
  color: var(--gold-text);
  background: var(--gold-100);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* The 6-item nav + full brand need ~1150px — below that, use the drawer. */
@media (max-width: 1160px) {
  .nav-toggle { display: flex; }
  .brand-name { font-size: 0.95rem; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px 22px;
    transform: translateY(calc(-100% - var(--header-h) - 24px));
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    z-index: 90;
  }
  body.nav-open .site-nav { transform: translateY(0); visibility: visible; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { padding: 13px 16px; border-radius: 10px; font-size: 1.05rem; }
  .site-nav a.nav-cta { margin: 10px 0 0; text-align: center; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(22, 51, 93, 0.9), transparent 65%),
    linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #e7edf5;
  padding: clamp(72px, 10vw, 130px) 0 clamp(64px, 9vw, 110px);
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  max-width: 780px;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--gold-300); }
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: #c3d0e2;
  max-width: 640px;
  margin-bottom: 1.8em;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-300);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}
.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9c7da;
  font-size: 0.93rem;
  font-weight: 600;
}
.trust-chips .tick {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-400);
}

/* ---------- Interior page hero ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(212, 175, 55, 0.14), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800) 70%);
  color: #dbe4f0;
  padding: clamp(52px, 7vw, 84px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p {
  color: #bccadd;
  max-width: 680px;
  font-size: 1.08rem;
  margin-bottom: 0;
}

/* Breadcrumb-ish subtle label */
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero .eyebrow::before { background: var(--gold-300); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card { display: block; color: inherit; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 160, 50, 0.45);
}
.card h3 { margin-top: 14px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--gold-text);
  font-size: 0.95rem;
}
.card:hover .card-link { gap: 10px; }
.card .card-link .arrow { transition: transform 0.15s ease; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-100), #fff);
  border: 1px solid var(--line);
  color: var(--navy-700);
}
.icon-badge svg { width: 27px; height: 27px; }
.icon-badge.gold {
  background: linear-gradient(140deg, var(--gold-100), #fff);
  color: var(--gold-600);
  border-color: rgba(201, 160, 50, 0.35);
}

/* Feature list (checkmark bullets) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-list .tick {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-600);
}
.feature-list strong { color: var(--navy-800); }
.feature-list span.desc { color: var(--muted); display: block; font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-300);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Profile / credential panel ---------- */
.profile-panel {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius);
  padding: 34px 30px;
  color: #d5dfec;
  box-shadow: var(--shadow-lg);
}
.profile-panel .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.profile-panel h3 { color: #fff; margin-bottom: 2px; }
.profile-panel .role { color: var(--gold-300); font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; }
.profile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.97rem;
}
.profile-panel ul li { display: flex; gap: 10px; align-items: flex-start; }
.profile-panel .tick { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--gold-400); }

/* ---------- Partners strip ---------- */
.partner-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.partner-chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  color: var(--navy-700);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.partners-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 22px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(212, 175, 55, 0.18), transparent 60%),
    linear-gradient(140deg, var(--navy-950), var(--navy-700));
  border-radius: var(--radius);
  padding: clamp(38px, 6vw, 64px) clamp(24px, 5vw, 64px);
  color: #d9e2ee;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; max-width: 520px; color: #b9c7da; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Timeline (About) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 2px solid var(--gold-400);
  display: grid;
  gap: 26px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-400);
}
.timeline .when {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.timeline h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.timeline p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- FAQ (native details/summary) ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  color: var(--navy-800);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold-600);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 16px 22px 20px; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Notices ---------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-100);
  border: 1px solid rgba(201, 160, 50, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: #6b5518;
  font-size: 0.96rem;
}
.notice.info {
  background: var(--navy-100);
  border-color: rgba(22, 51, 93, 0.25);
  color: var(--navy-700);
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.notice p { margin: 0; }

/* ---------- Forms ---------- */
.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 40px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.field .req { color: var(--err); }
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-text);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}
.field .error-msg {
  display: none;
  color: var(--err);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
}
.field.invalid .error-msg { display: block; }

/* Checkbox / consent row */
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
}
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--gold-600);
}

/* Radio cards (plan type picker) */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 640px) {
  .radio-cards { grid-template-columns: 1fr; }
}
.radio-card { position: relative; }
.radio-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.radio-card label {
  display: block;
  height: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.radio-card label strong {
  display: block;
  color: var(--navy-800);
  margin-bottom: 4px;
}
.radio-card label span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; display: block; }
.radio-card input:checked + label {
  border-color: var(--gold-500);
  background: var(--gold-100);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.radio-card input:focus-visible + label {
  outline: 3px solid var(--gold-text);
  outline-offset: 2px;
}

/* Fieldset used as a plain field wrapper (e.g. the plan-type radio group) —
   strip the UA's default fieldset chrome. */
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

/* Wizard */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
  counter-reset: wstep;
}
.wizard-progress li {
  counter-increment: wstep;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  position: relative;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.wizard-progress li::before {
  content: counter(wstep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.wizard-progress li::after {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(50% + 26px);
  right: calc(-50% + 26px);
  height: 2px;
  background: var(--line);
}
.wizard-progress li:last-child::after { display: none; }
.wizard-progress li.current { color: var(--navy-800); }
.wizard-progress li.current::before {
  border-color: var(--gold-500);
  background: var(--gold-100);
  color: var(--navy-800);
}
.wizard-progress li.done::before {
  content: "✓";
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--gold-300);
}
.wizard-progress li.done::after { background: var(--gold-500); }
@media (max-width: 640px) {
  .wizard-progress li span { display: none; }
  .wizard-progress li::after {
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
  }
}

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeUp 0.3s ease; }
.wizard-step > h3 { margin-bottom: 4px; }
.wizard-step > .step-desc { color: var(--muted); margin-bottom: 22px; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Traveller repeater */
.traveller-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg);
}
.traveller-card .traveller-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.traveller-card .traveller-head h4 { margin: 0; }
.btn-remove {
  background: transparent;
  border: 1px solid var(--err);
  color: var(--err);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.btn-remove:hover { background: var(--err-bg); }
.btn-add {
  background: transparent;
  border: 2px dashed var(--gold-500);
  color: var(--gold-text);
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  width: 100%;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-add:hover { background: var(--gold-100); }

/* Review summary */
.review-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.review-block .review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.review-block .review-head h4 { margin: 0; font-size: 0.98rem; }
.btn-edit {
  background: none;
  border: none;
  color: var(--gold-text);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.btn-edit:hover { text-decoration: underline; }
.btn-edit[disabled] { opacity: 0.5; cursor: not-allowed; }
.review-block dl {
  margin: 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(120px, 40%) 1fr;
  gap: 8px 16px;
  font-size: 0.95rem;
}
.review-block dt { color: var(--muted); font-weight: 600; }
.review-block dd { margin: 0; color: var(--text); font-weight: 600; }

/* Form status messages */
.form-status { margin-top: 18px; }
.form-status .status-ok,
.form-status .status-err {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
}
.form-status .status-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(29, 122, 79, 0.3); }
.form-status .status-err { background: var(--err-bg); color: var(--err); border: 1px solid rgba(179, 38, 30, 0.3); }
.form-status svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }

/* Honeypot — visually hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success panel */
.success-panel {
  text-align: center;
  padding: clamp(30px, 5vw, 56px) 20px;
}
.success-panel .success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-panel .success-icon svg { width: 36px; height: 36px; }
.success-panel p { color: var(--muted); max-width: 520px; margin: 0 auto 1em; }

/* ---------- WeChat panel ---------- */
.wechat-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 44px);
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 36px);
}
.wechat-panel .wechat-qr {
  width: 240px;
  max-width: 70vw;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.wechat-panel > div {
  max-width: 420px;
}
.wechat-panel h3 { margin-bottom: 6px; }
.wechat-panel p { color: var(--muted); margin-bottom: 0.5em; }
.wechat-panel p:last-child { margin-bottom: 0; }

/* ---------- Contact info cards ---------- */
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--muted); margin: 0; font-size: 0.98rem; }
.contact-card a { font-weight: 700; color: var(--navy-700); }
.contact-card a:hover { color: var(--gold-text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #9fb0c5;
  padding: clamp(44px, 6vw, 70px) 0 0;
  margin-top: clamp(56px, 8vw, 96px);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
}
.site-footer .footer-brand .brand-mark { height: 36px; padding: 5px 7px; }
.site-footer .footer-brand strong { font-size: 1.05rem; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer a { color: #9fb0c5; }
.site-footer a:hover { color: var(--gold-300); }
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--gold-400); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 28px;
  font-size: 0.83rem;
  color: #7488a1;
}
.footer-legal p { margin: 0 0 8px; }
.footer-legal .copyright { margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy-800);
  color: var(--gold-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 80;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-600); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wizard-step.active { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Small helpers ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
