/* Visit TH Arrival Assist — original service styles.
   Typography is loosely related to visit-th.com (Noto Sans/Serif TC);
   layout, colour use, and components are written for this site alone. */

:root {
  --ink: #17211f;
  --ink-soft: #2c3a37;
  --muted: #5a6663;
  --line: rgba(23, 33, 31, 0.1);
  --line-strong: rgba(23, 33, 31, 0.16);
  --paper: #f4f0e6;
  --paper-2: #eae4d6;
  --white: #fffcf6;
  --teal: #0f5c54;
  --teal-dark: #0a3f3a;
  --teal-mid: #187469;
  --teal-soft: #e3efed;
  --teal-wash: #f0f6f5;
  --gold: #c9a227;
  --gold-deep: #8a7014;
  --gold-soft: #f3e7b8;
  --danger: #8b2e1f;
  --danger-soft: #f8e8e4;
  --ok: #0f5c54;
  --ok-soft: #e3efed;
  --shadow: 0 18px 40px rgba(15, 92, 84, 0.1);
  --shadow-sm: 0 6px 18px rgba(23, 33, 31, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Hiragino Sans CNS", sans-serif;
  --display: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --max: 1120px;
  --header-h: 4.6rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.03125rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
a:hover { color: var(--teal-dark); }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  background: var(--teal);
  color: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: var(--white); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container-narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }

/* Notice bar */
.notice-bar {
  background: var(--teal-dark);
  color: #eef6f5;
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 0.55rem 0;
}
.notice-bar a {
  color: #f3e7b8;
  text-decoration: underline;
}
.notice-bar a:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 240, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.15rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: max-content;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.logo-text span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 10px;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--ink);
}
.nav-toggle:hover { border-color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--gold);
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  flex: none;
}
.lang-switch a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  color: var(--muted);
}
.lang-switch a[aria-current="true"],
.lang-switch a.is-active {
  background: var(--teal);
  color: var(--white);
}
.lang-switch a:hover:not(.is-active):not([aria-current="true"]) { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.8rem 1.25rem;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: rgba(15, 92, 84, 0.35);
}
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-nav {
  background: var(--teal);
  color: var(--white);
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  flex: none;
}
.btn-nav:hover { background: var(--teal-dark); color: var(--white); }
.btn-wide { width: 100%; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 3.6rem;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(15, 92, 84, 0.09), transparent 55%),
    radial-gradient(ellipse at 100% 20%, rgba(201, 162, 39, 0.16), transparent 45%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.6rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
.hero-notes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-notes li {
  padding-left: 1.35rem;
  position: relative;
}
.hero-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Service card in hero */
.panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-card header {
  background: var(--teal);
  color: var(--white);
  padding: 1rem 1.2rem 0.95rem;
}
.panel-card header strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
}
.panel-card header p {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #d9ebe8;
}
.panel-card .panel-body { padding: 0.4rem 0.4rem 0.7rem; }
.tier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  margin: 0.3rem;
}
.tier-row.is-featured {
  background: var(--teal-wash);
  border: 1px solid rgba(15, 92, 84, 0.12);
}
.tier-row .name { font-weight: 700; }
.tier-row .meta { font-size: 0.82rem; color: var(--muted); grid-column: 1; }
.tier-row .price {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal);
  text-align: right;
}
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: 0.1em;
}
.panel-foot {
  padding: 0 1.15rem 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--teal-wash); }
.section-ink {
  background: var(--teal-dark);
  color: #eef6f5;
}
.section-ink h2,
.section-ink .lede { color: #fffcf6; }
.section-ink .lede { color: #cfe3df; }

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2,
.page-hero h1,
.legal-page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.section-kicker {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.section-ink .section-kicker { color: var(--gold-soft); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.step-num {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 0.65rem;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* Cards / who needs */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}
.info-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.info-card ul,
.prose ul {
  list-style: disc;
  padding-left: 1.15rem;
}
.info-card li,
.prose li { margin: 0.35rem 0; color: var(--ink-soft); }
.info-card li::marker,
.prose li::marker { color: var(--gold-deep); }

.callout {
  border-left: 3px solid var(--gold);
  background: var(--white);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
}
th:first-child { border-radius: calc(var(--radius) - 1px) 0 0 0; }
th:last-child { border-radius: 0 calc(var(--radius) - 1px) 0 0; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); }
.table-note {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.price-card.is-featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.price-card .plan {
  font-weight: 700;
  font-size: 1.05rem;
}
.price-card .amount {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--teal);
  line-height: 1;
  margin: 0.7rem 0 0.35rem;
}
.price-card .amount small {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}
.price-card .sla {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.price-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 1.2rem;
  flex: 1;
}
.price-card li { margin: 0.3rem 0; }
.popular-flag {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  background: var(--gold);
  color: #3d3208;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

/* Calculator */
.calc-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}
.calc-total strong {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--teal);
}
.breakdown {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
  padding: 0 1.15rem 1.05rem;
  color: var(--ink-soft);
}
.faq-item .faq-body a { font-weight: 600; }

/* Page hero */
.page-hero {
  padding: 2.6rem 0 1.4rem;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(201, 162, 39, 0.14), transparent 50%),
    var(--paper);
}
.page-hero .lede { margin-bottom: 0; }

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
  gap: 1.4rem;
  align-items: start;
}
.form-sheet,
.summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-sheet { padding: 1.4rem 1.3rem 1.5rem; }
.summary-card {
  padding: 1.2rem 1.15rem 1.25rem;
  position: sticky;
  top: 5.5rem;
}
.summary-card h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}
.progress li {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid transparent;
}
.progress li.is-done { color: var(--teal); }
.progress li.is-current {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-color: rgba(15, 92, 84, 0.18);
}

.form-step { display: none; }
.form-step.is-active { display: block; }
.form-step h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
  width: max-content;
  max-width: 100%;
}
.form-step .hint {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

.field { margin-bottom: 1rem; }
.field label,
.field .label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.req { color: var(--danger); font-weight: 700; }
.field-help {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.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%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 92, 84, 0.16);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(139, 46, 31, 0.12);
}
.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  display: none;
}
.field.is-error .field-error { display: block; }

.choice-grid {
  display: grid;
  gap: 0.6rem;
}
.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  background: var(--white);
}
.choice:hover { border-color: var(--teal); }
.choice:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-wash);
  box-shadow: 0 0 0 3px rgba(15, 92, 84, 0.12);
}
.choice input { accent-color: var(--teal); }
.choice .choice-title { font-weight: 700; }
.choice .choice-meta { font-size: 0.85rem; color: var(--muted); }
.choice .choice-price {
  font-family: var(--display);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.15rem;
}

.traveler-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: var(--teal-wash);
}
.traveler-block h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0.7rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.check input { margin-top: 0.25rem; accent-color: var(--teal); }

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.form-nav .btn { min-width: 8rem; }

.window-msg {
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  margin: 0.8rem 0 0.2rem;
}
.window-msg.is-open { background: var(--ok-soft); color: var(--teal-dark); }
.window-msg.is-hold { background: #f6edd2; color: #5a4a12; }
.window-msg.is-pending { background: var(--paper); color: var(--muted); }
.window-msg.is-late,
.window-msg.is-invalid { background: var(--danger-soft); color: var(--danger); }

.confirm-box {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow);
  text-align: left;
}
.confirm-box.is-visible { display: block; }
.confirm-box h2 {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 0.4rem 0 0.7rem;
}
.confirm-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
}

/* Legal */
.legal-page { padding: 2.4rem 0 4rem; }
.prose h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 1.8rem 0 0.55rem;
}
.prose p { margin: 0.7rem 0; color: var(--ink-soft); }
.prose { max-width: 44rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band .lede { margin-inline: auto; margin-bottom: 1.2rem; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Footer */
.site-footer {
  background: #102623;
  color: #d5e4e1;
  padding: 2.6rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}
.site-footer h2,
.site-footer .footer-brand {
  font-family: var(--display);
  color: #fffcf6;
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}
.site-footer a { color: #f3e7b8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: grid; gap: 0.35rem; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 252, 246, 0.12);
  padding-top: 1.1rem;
  font-size: 0.84rem;
  color: #b7c9c5;
}
.footer-disclaimer p + p { margin-top: 0.45rem; }
.footer-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #93a8a4;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
  text-align: center;
}
.error-page h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.7rem;
}

/* Misc */
.tiny { font-size: 0.82rem; color: var(--muted); }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .steps,
  .split-2,
  .price-grid,
  .form-layout,
  .footer-grid,
  .calc-controls,
  .grid-2 { grid-template-columns: 1fr; }
  .price-card.is-featured { transform: none; }
  .summary-card { position: static; }
  .hero { padding: 2.2rem 0 2.4rem; }
  .section { padding: 3rem 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0 0 0.9rem;
    gap: 0.15rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.55rem 0; border-bottom: 0; }
  .btn-nav { display: none; }
  .lang-switch { margin-left: 0; }
  table { min-width: 28rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.btn-on-ink {
  color: #f3e7b8 !important;
  border-color: rgba(243, 231, 184, 0.45) !important;
}
.btn-on-ink:hover {
  background: rgba(243, 231, 184, 0.12) !important;
  color: #fffcf6 !important;
}
.section-tight-top { padding-top: 0.4rem; }
.section-apply { padding-top: 0.3rem; padding-bottom: 4rem; }
.confirm-box { margin: 2.5rem auto 4rem; }
#check-error { display: none; }
#check-error.is-visible { display: block; }
.error-page .tiny { margin-top: 1.2rem; }
.footer-on-ink { /* reserved */ }

.confirm-box .hero-actions { margin-top: 1.2rem; }

/* Filing intake additions */
.progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  list-style: none;
  padding: 0 0 1rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.progress li {
  position: relative;
  padding: 0.15rem 0.2rem;
}
.progress li.is-current { color: var(--teal-dark); font-weight: 700; }
.progress li.is-done { color: var(--teal); }
.pay-note {
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.88rem;
}
.ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  font-size: 1.15em;
}
.confirm-icon.is-success {
  background: var(--ok-soft);
  color: var(--teal-dark);
}
#countries-visited { min-height: 10rem; }
fieldset.field {
  border: 0;
  padding: 0;
  margin-bottom: 1rem;
}
fieldset.field legend {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.status-card, .track-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.3rem;
  max-width: 40rem;
}
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.status-pill.is-ready, .status-pill.is-received { background: var(--teal-soft); color: var(--teal-dark); }
.status-pill.is-held { background: #f6edd2; color: #5a4a12; }
.status-pill.is-filing { background: #e7eefc; color: #1e3a8a; }
.status-pill.is-filed { background: var(--ok-soft); color: var(--teal-dark); }
.status-pill.is-failed, .status-pill.is-cancelled, .status-pill.is-refunded { background: var(--danger-soft); color: var(--danger); }
.status-pill.is-unpaid { background: #f6edd2; color: #5a4a12; }
.status-pill.is-paid { background: var(--ok-soft); color: var(--teal-dark); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 0.45rem 0.4rem; text-align: left; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
