
/* =========================================================
   UK ETA EXPRESS / 中文版
   概念：英國護照。深藏青封面是頁面，申請表是打開的資料頁，
   資料頁底部的機讀區 (MRZ) 隨填寫即時生成。
   ========================================================= */
:root {
    /* 核心色票 */
    --cover-navy: #0E1B3D;   /* 護照封面藏青 */
    --crown-blue: #00247D;   /* 品牌藍 */
    --paper: #EEF2F7;        /* 證件防偽紙 */
    --paper-line: #C9D3E6;   /* 防偽底紋 */
    --foil-gold: #C2A465;    /* 封面燙金 */
    --signal-red: #C8102E;   /* 品牌紅，行動按鈕 */
    --stamp-green: #1E7B4F;  /* 核准印章綠 */
    --ink: #141A2E;          /* 文字墨色 */

    /* 頁面層 (預設深色：護照封面) */
    --bg: var(--cover-navy);
    --bg-raised: #15254D;
    --fg: #F2F4F8;
    --fg-muted: rgba(242, 244, 248, 0.68);
    --rule: rgba(194, 164, 101, 0.30);
    --accent: var(--foil-gold);
    --nav-bg: rgba(14, 27, 61, 0.92);

    /* 共用腳本 (refusal-protection.js) 注入內容所使用的變數 */
    --text-main: var(--fg);
    --text-muted: var(--fg-muted);
    --input-border: rgba(242, 244, 248, 0.25);

    --font-display: 'Chiron Sung HK', 'Noto Serif TC', 'Songti TC', serif;
    --font-body: 'Chiron Hei HK', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    --font-mrz: 'OCR-B', 'OCRB', 'IBM Plex Mono', ui-monospace, monospace;

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
}

body.light-mode {
    --bg: #F4F6FA;
    --bg-raised: #FFFFFF;
    --fg: var(--ink);
    --fg-muted: #4A5370;
    --rule: rgba(0, 36, 125, 0.16);
    --accent: var(--crown-blue);
    --nav-bg: rgba(244, 246, 250, 0.94);
    --text-main: var(--fg);
    --text-muted: var(--fg-muted);
    --input-border: #C3CCDD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    background-color: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 封面燙金壓紋：同心圓紋，只在首屏右上 */
.cover-emboss {
    position: absolute; inset: 0 0 auto 0; height: 980px; z-index: -1; pointer-events: none;
    background:
        repeating-radial-gradient(circle at 88% 8%, transparent 0 13px, rgba(194,164,101,.10) 13px 14px),
        repeating-radial-gradient(circle at 70% -10%, transparent 0 17px, rgba(194,164,101,.06) 17px 18px);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 10%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 70% at 85% 10%, #000 20%, transparent 75%);
}
body.light-mode .cover-emboss {
    background:
        repeating-radial-gradient(circle at 88% 8%, transparent 0 13px, rgba(0,36,125,.07) 13px 14px),
        repeating-radial-gradient(circle at 70% -10%, transparent 0 17px, rgba(0,36,125,.045) 17px 18px);
}

/* ---------- 導覽列 ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.wordmark { font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--fg); white-space: nowrap; text-decoration: none; }
.wordmark span { color: var(--signal-red); }
.brand-by { font-size: 12px; color: var(--fg-muted); }
.brand-partner { display: flex; align-items: center; gap: 8px; }
.brand-partner img:first-child { height: 15px; width: auto; }
.brand-partner img:last-child { height: 18px; width: auto; border-radius: 2px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links svg { width: 15px; height: 15px; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: transparent;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-muted);
}
.icon-btn:hover { color: var(--fg); }
.icon-btn svg { width: 17px; height: 17px; }
.light-icon { display: none; }
body.light-mode .light-icon { display: inline; }
body.light-mode .dark-icon { display: none; }

.lang { position: relative; }
.lang summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--rule); font-size: 13px; font-weight: 700;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 14px; height: 14px; }
.lang-list {
    position: absolute; right: 0; top: calc(100% + 8px); width: 184px; padding: 6px;
    background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.lang-list a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.lang-list a:hover { background: var(--crown-blue); color: #fff; }
.lang-list a[aria-current="page"] { color: var(--fg); font-weight: 700; }

.menu-btn { display: none; }
#mobile-menu {
    position: absolute; left: 0; right: 0; top: 72px; background: var(--bg-raised); border-bottom: 1px solid var(--rule);
    max-height: 0; opacity: 0; overflow: hidden auto; transition: max-height .35s ease, opacity .35s ease;
}
#mobile-menu.open { max-height: 82vh; opacity: 1; }
.mobile-inner { padding: 20px var(--gutter) 28px; display: grid; gap: 18px; }
.mobile-inner > a { font-size: 17px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.mobile-inner svg { width: 17px; height: 17px; }
.mobile-group { padding-top: 16px; border-top: 1px solid var(--rule); }
.mobile-group p { margin: 0 0 10px; font-size: 13px; color: var(--fg-muted); }
.mobile-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.mobile-langs a { font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.mobile-langs a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.mobile-theme { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font-size: 15px; cursor: pointer; }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 128px 0 72px; }
.hero-grid {
    display: grid; gap: 40px 64px;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "intro form" "proof form";
    align-items: start;
}
.intro { grid-area: intro; padding-top: 24px; }
.proof { grid-area: proof; }
.datapage { grid-area: form; }

.agency-line { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--accent); margin: 0 0 28px; }
.agency-line svg { width: 18px; height: 18px; }
.hero h1 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(42px, 6.2vw, 76px); line-height: 1.14; letter-spacing: .02em;
    margin: 0 0 32px; color: var(--fg);
    text-wrap: balance;
}
.hero h1::after {
    content: ""; display: block; width: 96px; height: 2px; margin-top: 28px;
    background: var(--accent);
}
.lead { max-width: 34em; font-size: 18px; line-height: 1.85; margin: 0; color: var(--fg); }
.lead strong { font-weight: 700; color: var(--fg); white-space: nowrap; }
.lead-note { display: block; margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--fg-muted); }
.lead-link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--fg); text-underline-offset: 5px; text-decoration-color: var(--signal-red); text-decoration-thickness: 2px; }

.assurances { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 44em; }
.assurances li { display: flex; gap: 12px; align-items: flex-start; }
.assurances svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.assurances b { display: block; font-size: 15px; font-weight: 700; line-height: 1.45; }
.assurances small { display: block; font-size: 13px; line-height: 1.55; color: var(--fg-muted); margin-top: 2px;  text-wrap: pretty; }
.assurances a { text-decoration: none; }
.assurances a:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* 信任數據 */
.stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--rule); max-width: 40em; margin-top: 8px;
}
.stat { padding: 18px 16px 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num .star { color: #E0B44A; font-size: .8em; }
.stat-label { font-size: 13px; color: var(--fg-muted); margin-top: 6px; line-height: 1.5; }
a.stat:hover .stat-label { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 資料頁 (申請表) ---------- */
.datapage {
    --text-main: var(--ink);
    --text-muted: #4A5370;
    --input-border: #C3CCDD;
    position: relative; color: var(--ink);
    background-color: var(--paper);
    background-image:
        repeating-radial-gradient(circle at 0% 100%, transparent 0 9px, rgba(0,36,125,.045) 9px 10px),
        repeating-radial-gradient(circle at 100% 0%, transparent 0 11px, rgba(200,16,46,.03) 11px 12px);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -20px rgba(4, 10, 30, .55);
    overflow: hidden;
}
body.light-mode .datapage { border: 1px solid #D5DCE8; box-shadow: 0 24px 50px -24px rgba(0, 36, 125, .28); }
.dp-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 22px 28px 16px; border-bottom: 1px solid var(--paper-line);
}
.dp-kicker { font-size: 13px; font-weight: 700; color: var(--crown-blue); }
.dp-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.2; margin: 4px 0 0; color: var(--ink); }
.dp-crest { width: 46px; height: 46px; flex-shrink: 0; color: var(--crown-blue); opacity: .85; }
.dp-body { padding: 22px 28px 26px; }

/* 步驟 (真正的四步流程，因此使用編號) */
.stepper { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stepper li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; color: #6A7390; }
.step-mark {
    width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-mrz); font-size: 13px; border: 1.5px solid #AEB8CC; color: #6A7390; background: var(--paper);
}
.stepper li.is-done .step-mark { background: var(--crown-blue); border-color: var(--crown-blue); color: #fff; }
.stepper li.is-done { color: var(--ink); }
.stepper li.is-current { color: var(--signal-red); font-weight: 700; }
.stepper li.is-current .step-mark { border-color: var(--signal-red); color: var(--signal-red); border-width: 2px; animation: stamp .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes stamp { 0% { transform: scale(1.6) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.progress-track { height: 2px; background: var(--paper-line); margin: 12px 0 22px; position: relative; }
#progress-bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--signal-red); transition: width .5s ease; }

.form-step { display: none; }
.form-step.active { display: block; animation: pageIn .35s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.input-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #3B4463; margin: 0 0 6px 2px; line-height: 1.4; }
.input-theme {
    width: 100%; height: 48px; padding: 0 14px; border-radius: 8px;
    background: #fff; border: 1px solid var(--input-border); color: var(--ink);
    font-size: 16px; font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input-theme::placeholder { color: #9AA3B8; }
.input-theme:focus { border-color: var(--crown-blue); box-shadow: 0 0 0 3px rgba(0, 36, 125, .16); }
.input-theme.is-error { border-color: var(--signal-red); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: #6A7390; }

.hint { position: relative; display: inline-flex; color: #6A7390; cursor: help; }
.hint svg { width: 14px; height: 14px; }
.hint-bubble {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    width: max-content; max-width: 220px; padding: 6px 10px; border-radius: 6px;
    background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.5;
    opacity: 0; visibility: hidden; transition: opacity .2s; pointer-events: none; z-index: 5;
}
.hint:hover .hint-bubble, .hint:focus .hint-bubble { opacity: 1; visibility: visible; }

fieldset.question { border: 0; margin: 0; padding: 14px 0; border-top: 1px solid var(--paper-line); min-width: 0; }
fieldset.question:last-of-type { border-bottom: 1px solid var(--paper-line); }
fieldset.question legend { padding: 0; float: left; width: 100%; }
fieldset.question .yesno { clear: both; }
/* Keep address fields below the floated fieldset legend. */
fieldset.question > .field { clear: both; }
.question .input-label { margin-bottom: 10px; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yesno label {
    display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 8px;
    border: 1px solid var(--input-border); background: #fff; cursor: pointer; font-size: 15px; font-weight: 700;
}
.yesno label:has(input:checked) { border-color: var(--crown-blue); background: #E6EBF5; }
.yesno input { accent-color: var(--crown-blue); width: 16px; height: 16px; margin: 0; }

.dropzone {
    position: relative; border: 1.5px dashed #A9B4CA; border-radius: 10px; padding: 22px 16px; text-align: center;
    background: rgba(255, 255, 255, .6); transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--crown-blue); }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.dz-icon { display: inline-flex; color: #6A7390; margin-bottom: 6px; }
.dz-icon svg { width: 28px; height: 28px; }
.dz-main { display: block; font-size: 15px; font-weight: 700; }
.dz-sub { display: block; font-size: 13px; color: #6A7390; margin-top: 2px; }
.dropzone.is-done { border-style: solid; border-color: var(--stamp-green); background: #E7F3EC; }
.dropzone.is-done .dz-icon, .dropzone.is-done .dz-main { color: var(--stamp-green); }
.dz-file { display: block; font-size: 13px; color: #4A5370; margin: 2px auto 0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.btn {
    height: 52px; border-radius: 8px; border: 0; cursor: pointer; font-size: 16px; font-weight: 700; letter-spacing: .04em;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; transition: background .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--signal-red); color: #fff; flex: 2; width: 100%; }
.btn-primary:hover { background: #A90D27; }
.btn-pay { background: var(--crown-blue); color: #fff; flex: 2; }
.btn-pay:hover { background: #001A5C; }
.btn-pay:disabled { cursor: progress; opacity: .92; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--input-border); flex: 1; }
.btn-ghost:hover { background: rgba(0, 36, 125, .06); }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 第四步：價目 (卡片由 /js/refusal-protection.js 重新生成，以下樣式同時套用) */
#step-4 > .input-label { margin-bottom: 10px; }
.pricing-card-label { position: relative; display: block; cursor: pointer; margin-bottom: 8px; }
.pricing-card-input.hidden {
    display: block !important; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.pricing-card-content {
    position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
    column-gap: 12px; align-items: center;
    padding: 12px 16px 12px 46px; border-radius: 10px; border: 1px solid var(--input-border); background: #fff;
    transition: border-color .2s, background .2s;
}
.pricing-card-content::before {
    content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
    border-radius: 50%; border: 1.5px solid #A9B4CA; background: #fff;
}
.pricing-card-input:checked + .pricing-card-content { border-color: var(--crown-blue); background: #E6EBF5; box-shadow: 0 0 0 1px var(--crown-blue) inset; }
.pricing-card-input:checked + .pricing-card-content::before { border: 5px solid var(--crown-blue); }
.pricing-card-input:focus-visible + .pricing-card-content { outline: 2px solid var(--crown-blue); outline-offset: 2px; }
.pricing-card-content > div:not(.absolute) { display: contents; }
.pricing-card-content > div:not(.absolute) > span:first-child { font-size: 16px; font-weight: 700; color: var(--ink) !important; opacity: 1 !important; grid-column: 1; }
.pricing-card-content > div:not(.absolute):not(:last-child) > span:last-child {
    font-family: var(--font-display); font-weight: 800; font-size: 20px; grid-column: 2; grid-row: 1 / span 2; font-variant-numeric: tabular-nums;
}
.pricing-card-content > div:last-child { color: #4A5370; }
.pricing-card-content > div:last-child svg, .pricing-card-content > div:last-child i { display: none; }
.pricing-card-content > div:last-child > span { grid-column: 1; font-size: 13px; font-weight: 500; }
.pricing-card-content > .absolute {
    position: absolute; top: -9px; right: 14px; padding: 1px 10px; border-radius: 10px;
    background: var(--signal-red); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-transform: none; letter-spacing: 0;
}

/* 拒簽退款保障 (腳本注入) */
#step-4 label:has(> #refund_protection),
#refund_terms_consent_wrap,
.consent {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-top: 12px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--input-border); background: rgba(255, 255, 255, .7);
}
#refund_terms_consent_wrap.hidden { display: none !important; }
#step-4 label:has(> #refund_protection) { border-color: rgba(30, 123, 79, .45); background: #EAF4EE; margin-top: 16px; }
#step-4 label:has(> #refund_protection:checked) { border-color: var(--stamp-green); box-shadow: 0 0 0 1px var(--stamp-green) inset; }
#step-4 input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--crown-blue); cursor: pointer; }
#refund_protection { accent-color: var(--stamp-green) !important; }
#step-4 label:has(> #refund_protection) > span,
#refund_terms_consent_wrap > span,
.consent > span { font-size: 13px !important; line-height: 1.7; color: #3B4463 !important; }
#step-4 label:has(> #refund_protection) .block { display: block; }
#step-4 label:has(> #refund_protection) .block:first-child { font-size: 15px; font-weight: 700; color: var(--ink); }
#step-4 label:has(> #refund_protection) .block:first-child span { color: var(--stamp-green); }
#step-4 label:has(> #refund_protection) .mt-1 { margin-top: 4px; }
#step-4 label:has(> #refund_protection) a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--crown-blue); }
.ssl-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: #6A7390; }
.ssl-note svg { width: 14px; height: 14px; }

/* 機讀區 MRZ */
.mrz {
    container-type: inline-size;
    background: #E3E8F1; border-top: 1px solid var(--paper-line);
    padding: 14px 28px 16px; color: #2A3352;
}
.mrz-line {
    display: block; font-family: var(--font-mrz); font-weight: 500;
    font-size: min(15px, 2.62cqw); letter-spacing: .14em; line-height: 1.65; white-space: pre; overflow: hidden;
}

/* ---------- 流程 ---------- */
.section { padding: 72px 0; }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.route::before {
    content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 0;
    border-top: 1.5px dashed var(--rule);
}
.route li { position: relative; }
.route-stop {
    position: relative; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--bg); border: 1.5px solid var(--accent); color: var(--accent); margin-bottom: 20px;
}
.route-stop svg { width: 22px; height: 22px; }
.route h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.3; margin: 0 0 8px; }
.route p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--fg-muted); max-width: 22em; }

/* ---------- 評價 ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.reviews-head h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; margin: 0; }
.verified { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: #4FBF86; text-decoration: none; }
body.light-mode .verified { color: var(--stamp-green); }
.verified svg { width: 15px; height: 15px; }
.verified:hover { text-decoration: underline; text-underline-offset: 3px; }
.slider-btns { display: flex; gap: 8px; }
.testimonial-slider-container {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px;
}

.testimonial-card {
    flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px;
    padding: 22px 22px 20px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--rule);
}
.t-stars { color: #E0B44A; letter-spacing: .12em; font-size: 14px; }
.t-text { margin: 0; font-size: 15px; line-height: 1.8; flex: 1; }
.t-meta { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }
.t-meta b { display: block; font-size: 14px; color: var(--fg); font-weight: 700; }

/* ---------- 簽證要點 (資料頁欄位) ---------- */
.facts {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 2px solid var(--accent); border-bottom: 1px solid var(--rule);
}
.fact { padding: 24px 24px 26px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.fact-label svg { width: 15px; height: 15px; color: var(--accent); }
.fact-value { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.25; margin: 8px 0 8px; }
.fact p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--fg-muted); }

/* ---------- 頁尾 ---------- */
.footer { margin-top: 40px; padding: 56px 0 40px; background: #091330; color: #C9D0E0; text-align: center; }
body.light-mode .footer { background: #E7EBF3; color: #3B4463; }
.footer-note { max-width: 36em; margin: 0 auto 28px; font-size: 14px; line-height: 1.9; }
.footer-note span { display: block; margin-top: 6px; opacity: .7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-bottom: 32px; }
.footer-links a { font-size: 14px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.payment-icons { display: flex; justify-content: center; align-items: center; gap: 32px; margin-bottom: 28px; }
.payment-icons img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .5; }
body.light-mode .payment-icons img { filter: grayscale(1) brightness(.3); opacity: .7; }
.copyright { font-size: 12px; opacity: .6; margin: 0; }

/* ---------- 響應式 ---------- */
@media (max-width: 1080px) {
    .nav-links { display: none; }
    .nav-tools .icon-btn.theme, .nav-tools .lang { display: none; }
    .menu-btn { display: inline-flex; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "proof"; max-width: 640px; margin: 0 auto; }
    .intro { padding-top: 0; }
    .facts { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(3) { padding-left: 0; border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 720px) {
    .hero { padding: 100px 0 48px; }
    .agency-line { margin-bottom: 18px; font-size: 13px; }
    .hero h1 { margin-bottom: 24px; }
    .hero h1::after { margin-top: 20px; width: 64px; }
    .lead { font-size: 16px; }
    .assurances { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 24px; }
    .dp-head, .dp-body { padding-left: 18px; padding-right: 18px; }
    .mrz { padding-left: 18px; padding-right: 18px; }
    .row { grid-template-columns: 1fr; gap: 0; }
    .row.keep { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stepper li { font-size: 12px; }
    .section { padding: 52px 0; }
    .route { grid-template-columns: 1fr; gap: 28px; }
    .route::before { left: 23px; right: auto; top: 24px; bottom: 24px; height: auto; border-top: 0; border-left: 1.5px dashed var(--rule); }
    .route li { padding-left: 68px; }
    .route-stop { position: absolute; left: 0; top: 0; margin: 0; }
    .testimonial-card { flex-basis: 82%; }
    .facts { grid-template-columns: 1fr; }
    .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
    .fact + .fact { border-top: 1px solid var(--rule); }
    .wordmark { font-size: 16px; }
    .brand-by, .brand-partner img:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


:root { --font-display: 'Source Serif 4', Georgia, serif; --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif; }
.hero h1, .dp-head h2, .stat-num, .route h3, .reviews-head h3, .fact-value, .pricing-card-content > div:not(.absolute):not(:last-child) > span:last-child { font-weight: 700; }
.hero h1{letter-spacing:-.01em;line-height:1.06}.dp-head h2,.route h3,.reviews-head h3,.fact-value{letter-spacing:-.005em}


.refusal-block { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #FBE9EC; border: 1px solid rgba(200, 16, 46, .35); color: #7A0A1C; font-size: 14px; line-height: 1.7; }
.refusal-block[hidden] { display: none; }
.refusal-block a { color: #7A0A1C; font-weight: 700; white-space: nowrap; }
#refusal-question.is-error legend { color: var(--signal-red); }
#refusal-question.is-error .yesno label { border-color: var(--signal-red); }

/* =========================================================
   UK ETA EXPRESS / shared theme for all sub pages
   Same system as the homepages: passport cover navy, security paper,
   foil gold, signal red. Loaded after each page's own styles.
   ========================================================= */
:root, body {
    --cover-navy: #0E1B3D;
    --crown-blue: #00247D;
    --paper: #EEF2F7;
    --paper-line: #C9D3E6;
    --foil-gold: #C2A465;
    --signal-red: #C8102E;
    --stamp-green: #1E7B4F;
    --ink: #141A2E;

    --bg: var(--cover-navy);
    --bg-raised: #15254D;
    --fg: #F2F4F8;
    --fg-muted: rgba(242, 244, 248, 0.70);
    --rule: rgba(194, 164, 101, 0.30);
    --accent: var(--foil-gold);
    --site-nav-bg: rgba(14, 27, 61, 0.92);
    --field-bg: #0F1F45;
    --field-border: rgba(242, 244, 248, 0.22);

    /* legacy variables used inside the page content */
    --text-main: var(--fg);
    --text-muted: var(--fg-muted);
    --text-faint: rgba(242, 244, 248, 0.45);
    --bg-page: var(--bg);
    --bg-card: var(--bg-raised);
    --border-color: var(--rule);
    --header-bg: var(--site-nav-bg);
    --nav-bg: var(--site-nav-bg);
    --glass-bg: var(--bg-raised);
    --glass-border: var(--rule);
    --glass-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
    --card-hover-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.6);
    --input-bg: var(--field-bg);
    --input-border: var(--field-border);
    --input-text: var(--fg);
    --mobile-menu-bg: var(--bg-raised);
    --mobile-border: var(--rule);
    --bg-overlay: transparent;
    --hero-overlay-start: transparent;
    --hero-overlay-mid: transparent;

    --font-display: 'Source Serif 4', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --font-mrz: 'IBM Plex Mono', ui-monospace, monospace;
    --dw: 700;
    --display-tracking: -0.01em;
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
}
body.light-mode, html.light-mode body {
    --bg: #F4F6FA;
    --bg-raised: #FFFFFF;
    --fg: var(--ink);
    --fg-muted: #4A5370;
    --rule: rgba(0, 36, 125, 0.16);
    --accent: var(--crown-blue);
    --site-nav-bg: rgba(244, 246, 250, 0.94);
    --field-bg: #FFFFFF;
    --field-border: #C3CCDD;
    --text-main: var(--fg);
    --text-muted: var(--fg-muted);
    --text-faint: rgba(20, 26, 46, 0.45);
    --bg-page: var(--bg);
    --bg-card: var(--bg-raised);
    --border-color: var(--rule);
    --header-bg: var(--site-nav-bg);
    --nav-bg: var(--site-nav-bg);
    --glass-bg: var(--bg-raised);
    --glass-border: var(--rule);
    --glass-shadow: 0 20px 44px -30px rgba(0, 36, 125, 0.35);
    --card-hover-shadow: 0 16px 36px -26px rgba(0, 36, 125, 0.35);
    --input-bg: var(--field-bg);
    --input-border: var(--field-border);
    --input-text: var(--fg);
    --mobile-menu-bg: var(--bg-raised);
    --mobile-border: var(--rule);
}

/* Fonts per language (same pairing as the homepages) */
:lang(zh) { --font-display: 'Chiron Sung HK', 'Noto Serif TC', serif; --font-body: 'Chiron Hei HK', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; --dw: 800; --display-tracking: .02em; }
:lang(ja), :lang(jp) { --font-display: 'Noto Serif JP', 'Hiragino Mincho ProN', serif; --font-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif; --dw: 800; --display-tracking: .02em; }
:lang(ko), :lang(kr) { --font-display: 'Noto Serif KR', 'AppleMyungjo', serif; --font-body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; --dw: 800; --display-tracking: 0; }
:lang(ar) { --font-display: 'Noto Naskh Arabic', serif; --font-body: 'Noto Sans Arabic', Tahoma, sans-serif; --dw: 700; --display-tracking: 0; }

/* ---------- Base ---------- */
html { scroll-padding-top: 88px; }
body {
    font-family: var(--font-body) !important;
    background-color: var(--bg) !important;
    background-image: none !important;
    color: var(--fg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main h1, main h2, main h3, section h1, section h2, section h3, article h1, article h2, article h3 {
    font-family: var(--font-display) !important;
    font-weight: var(--dw) !important;
    letter-spacing: var(--display-tracking) !important;
    text-transform: none !important;
}
main h1, section h1, article h1 { line-height: 1.15 !important; }
:lang(ar) main h1, :lang(ar) section h1 { line-height: 1.5 !important; }
main h4, main h5, main h6, section h4, section h5, section h6 { text-transform: none !important; letter-spacing: 0 !important; }

/* Retire the template chrome: all-caps labels, wide tracking, tiny type */
body .uppercase { text-transform: none !important; }
body [class*="tracking-"] { letter-spacing: .01em !important; }
:lang(ar) [class*="tracking-"] { letter-spacing: 0 !important; }
body [class*="text-[8px]"], body [class*="text-[9px]"], body [class*="text-[10px]"] { font-size: 12px !important; }
body [class*="text-[11px]"] { font-size: 13px !important; }
body .font-black:not(h1):not(h2):not(h3) { font-weight: 700 !important; }

/* Photo heroes give way to the cover embossing */
.bg-uk-hero, .bg-hero-overlay { display: none !important; }
.cover-emboss {
    position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
    background:
        repeating-radial-gradient(circle at 88% 8%, transparent 0 13px, rgba(194,164,101,.10) 13px 14px),
        repeating-radial-gradient(circle at 70% -10%, transparent 0 17px, rgba(194,164,101,.06) 17px 18px);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 10%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 70% at 85% 10%, #000 20%, transparent 75%);
}
body.light-mode .cover-emboss {
    background:
        repeating-radial-gradient(circle at 88% 8%, transparent 0 13px, rgba(0,36,125,.07) 13px 14px),
        repeating-radial-gradient(circle at 70% -10%, transparent 0 17px, rgba(0,36,125,.045) 17px 18px);
}

/* Surfaces */
.glass-panel, .glass-card, .bg-card {
    background: var(--bg-raised) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border: 1px solid var(--rule) !important;
    box-shadow: var(--glass-shadow) !important;
}
body [class*="rounded-[2"], body [class*="rounded-[3"], body .rounded-3xl { border-radius: 14px !important; }
body .rounded-2xl { border-radius: 12px !important; }
body [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body .drop-shadow-2xl, body .drop-shadow-md, body .drop-shadow-lg { filter: none !important; }
.input-theme {
    background: var(--field-bg) !important; border: 1px solid var(--field-border) !important; color: var(--fg) !important;
    border-radius: 8px !important; font-size: 16px !important; font-weight: 500 !important; min-height: 48px;
}
.input-theme:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(0, 36, 125, .18) !important; }
.input-label { font-size: 13px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--fg-muted) !important; }
details > summary { cursor: pointer; }

/* ---------- Navigation (identical to the homepages) ---------- */
.site-wrap, .nav .wrap, .footer .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: var(--site-nav-bg);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-body);
    line-height: 1.5;
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nav .wordmark { font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--fg); white-space: nowrap; text-decoration: none; }
.nav .wordmark span { color: var(--signal-red); }
.nav .brand-by { font-size: 12px; color: var(--fg-muted); }
.nav .brand-partner { display: flex; align-items: center; gap: 8px; }
.nav .brand-partner img { display: block; }
.nav .brand-partner img:first-child { height: 15px; width: auto; }
.nav .brand-partner img:last-child { height: 18px; width: auto; border-radius: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links svg { width: 15px; height: 15px; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: transparent;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-muted);
}
.icon-btn:hover { color: var(--fg); }
.icon-btn svg { width: 17px; height: 17px; }
.nav .light-icon { display: none; }
body.light-mode .nav .light-icon { display: inline; }
body.light-mode .nav .dark-icon { display: none; }
.lang { position: relative; }
.lang summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--fg);
    height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--rule); font-size: 13px; font-weight: 700;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 14px; height: 14px; }
.lang-list {
    position: absolute; right: 0; top: calc(100% + 8px); width: 184px; padding: 6px;
    background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.lang-list a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.lang-list a:hover { background: var(--crown-blue); color: #fff; }
.lang-list a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.menu-btn { display: none !important; }
#mobile-menu {
    position: absolute; left: 0; right: 0; top: 72px; background: var(--bg-raised); border-bottom: 1px solid var(--rule);
    max-height: 0; opacity: 0; overflow: hidden auto; transition: max-height .35s ease, opacity .35s ease;
}
#mobile-menu.open { max-height: 82vh; opacity: 1; }
.mobile-inner { padding: 20px var(--gutter) 28px; display: grid; gap: 18px; }
.mobile-inner > a { font-size: 17px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.mobile-inner svg { width: 17px; height: 17px; }
.mobile-group { padding-top: 16px; border-top: 1px solid var(--rule); }
.mobile-group p { margin: 0 0 10px; font-size: 13px; color: var(--fg-muted); }
.mobile-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.mobile-langs a { font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.mobile-langs a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.mobile-theme { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font-size: 15px; cursor: pointer; color: var(--fg); }

/* ---------- Footer (identical to the homepages) ---------- */
.footer { margin-top: 40px; padding: 56px 0 40px; background: #091330; color: #C9D0E0; text-align: center; font-family: var(--font-body); line-height: 1.7; }
body.light-mode .footer { background: #E7EBF3; color: #3B4463; }
.footer-note { max-width: 36em; margin: 0 auto 28px; font-size: 14px; line-height: 1.9; }
.footer-note span { display: block; margin-top: 6px; opacity: .7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-bottom: 32px; }
.footer-links a, .footer-links span { font-size: 14px; text-decoration: none; color: inherit; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.payment-icons { display: flex; justify-content: center; align-items: center; gap: 32px; margin-bottom: 28px; }
.payment-icons img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .5; }
body.light-mode .payment-icons img { filter: grayscale(1) brightness(.3); opacity: .7; }
.copyright { font-size: 12px; opacity: .6; margin: 0; }

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .nav-tools .icon-btn.theme, .nav-tools .lang { display: none; }
    .menu-btn { display: inline-flex !important; }
}
@media (max-width: 720px) {
    .nav .wordmark { font-size: 16px; }
    .nav .brand-by, .nav .brand-partner img:last-child { display: none; }
}

/* ---------- Right to left ---------- */
[dir=rtl] .lang-list { right: auto; left: 0; }
[dir=rtl] .lucide-arrow-right, [dir=rtl] .lucide-chevron-left, [dir=rtl] .lucide-chevron-right { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Dark mode for content written with light utility colours ---------- */
body:not(.light-mode) [class*="text-[#00247D]"], body:not(.light-mode) [class*="text-[#1a42a8]"], body:not(.light-mode) .text-brand-blue,
body:not(.light-mode) [class*="text-blue-"], body:not(.light-mode) [style*="color: var(--brand-blue)"], body:not(.light-mode) [style*="color:var(--brand-blue)"] { color: #A9BEF5 !important; }
body:not(.light-mode) .bg-white, body:not(.light-mode) .bg-gray-50, body:not(.light-mode) .bg-gray-100, body:not(.light-mode) .bg-slate-50 { background-color: var(--bg-raised) !important; }
body:not(.light-mode) .text-gray-900, body:not(.light-mode) .text-gray-800, body:not(.light-mode) .text-black, body:not(.light-mode) .text-slate-900 { color: var(--fg) !important; }
body:not(.light-mode) .text-gray-700, body:not(.light-mode) .text-gray-600, body:not(.light-mode) .text-gray-500, body:not(.light-mode) .text-slate-600 { color: var(--fg-muted) !important; }
body:not(.light-mode) [class*="border-gray-"] { border-color: var(--rule) !important; }
body:not(.light-mode) .content-card, body:not(.light-mode) .requirement-box { background: var(--bg-raised) !important; border-color: var(--rule) !important; color: var(--fg); }
body:not(.light-mode) [class*="bg-white/"], body:not(.light-mode) [class*="bg-gray-50/"] { background-color: var(--bg-raised) !important; }
body.dark-mode [class*="dark:bg-[#1"], body.dark-mode [class*="dark:bg-[#0"], body.dark-mode [class*="dark:bg-black"],
body.dark-mode [class*="dark:bg-gray-9"], body.dark-mode [class*="dark:bg-slate-9"], body.dark-mode [class*="dark:bg-zinc-9"], body.dark-mode [class*="dark:bg-neutral-9"] { background-color: var(--bg-raised) !important; }
