/* Tanzania Youth Dialogue 2026 page — standalone stylesheet (does not load style.css).
   Palette derived from the ECSA-HC teal/orange; text colours meet WCAG AA on their backgrounds. */

:root {
    --color-primary: #066b77;        /* ECSA-HC teal, darkened for AA text/button contrast (5.9:1 on white) */
    --color-primary-dark: #0b4f5c;
    --color-primary-soft: #e6f4f5;
    --color-accent: #f7941d;         /* ECSA-HC orange — decorative/highlight only, never small text */
    --color-accent-soft: #fff4e6;
    --color-surface: #ffffff;
    --color-muted-surface: #f4f7f8;
    --color-text: #12262f;
    --color-muted: #52626b;          /* 6.2:1 on white */
    --color-border: #d9e2e6;
    --color-border-strong: #a9b8bf;
    --color-success: #0d7a4b;
    --color-success-soft: #e9f7f0;
    --color-danger: #b42318;
    --color-danger-soft: #fdeceb;
    --color-info-soft: #eaf3f8;
    --color-focus: #1a73e8;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-soft: 0 1px 2px rgba(16, 40, 50, .05), 0 8px 24px rgba(16, 40, 50, .07);
    --shadow-raised: 0 2px 4px rgba(16, 40, 50, .06), 0 18px 40px rgba(16, 40, 50, .10);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    --container: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --touch: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.tz-page {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-dark); }
em { font-style: normal; font-weight: 600; color: var(--color-primary-dark); }

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }
section[id] { scroll-margin-top: 80px; }

.tz-container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.tz-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tz-icon { width: 1.25em; height: 1.25em; flex: none; }

.tz-skip {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--color-primary-dark); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
    font-weight: 600; text-decoration: none;
}
.tz-skip:focus { top: 12px; color: #fff; }

/* ---------- Top bar ---------- */
.tz-topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(217, 226, 230, .8);
}
.tz-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 60px; }
.tz-wordmark { font-weight: 800; letter-spacing: .02em; color: var(--color-primary-dark); }
.tz-nav { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.tz-nav a {
    display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--space-3);
    border-radius: var(--radius-pill); color: var(--color-text); text-decoration: none; font-size: .94rem; font-weight: 500;
}
.tz-nav a:hover { background: var(--color-muted-surface); color: var(--color-primary-dark); }

/* ---------- Buttons ---------- */
.tz-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: var(--touch); padding: 0 22px;
    border: 1px solid transparent; border-radius: var(--radius-pill);
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tz-btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.tz-btn-block { width: 100%; }
.tz-btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 16px rgba(6, 107, 119, .25); }
.tz-btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.tz-btn-secondary { background: var(--color-primary-soft); color: var(--color-primary-dark); border-color: #c7e4e7; }
.tz-btn-secondary:hover { background: #d5ecee; color: var(--color-primary-dark); }
.tz-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.tz-btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.tz-btn:active { transform: translateY(1px); }
.tz-btn:disabled, .tz-btn[aria-disabled="true"] {
    background: #e3e8ea; color: #5b6970; border-color: #d0d8dc; box-shadow: none; cursor: not-allowed; transform: none;
}
.tz-hero .tz-btn:focus-visible, .tz-highlight .tz-btn:focus-visible { outline-color: #fff; }

/* ---------- Hero ---------- */
/* Walkathon photo as the hero background (cover, centred) under a dark teal overlay that keeps
   white text above WCAG AA contrast. Smaller file on narrow screens. */
.tz-hero {
    position: relative; overflow: hidden;
    color: #fff;
    background-color: #0b4f5c;
    background-image:
        linear-gradient(100deg, rgba(8, 52, 62, .94) 0%, rgba(9, 66, 77, .86) 45%, rgba(8, 72, 84, .62) 100%),
        linear-gradient(180deg, rgba(8, 52, 62, .35) 0%, rgba(8, 52, 62, .55) 100%),
        url("../img/tzyd-walkathon-hero-1024.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(48px, 8vw, 104px) 0 clamp(96px, 12vw, 148px);
}
@media (min-width: 1024px) {
    .tz-hero {
        background-image:
            linear-gradient(100deg, rgba(8, 52, 62, .95) 0%, rgba(9, 66, 77, .88) 42%, rgba(8, 72, 84, .40) 100%),
            linear-gradient(180deg, rgba(8, 52, 62, .15) 0%, rgba(8, 52, 62, .45) 100%),
            url("../img/tzyd-walkathon-hero.jpg");
    }
}
.tz-hero-inner { max-width: var(--container); }
.tz-hero-logo {
    display: block;
    width: clamp(180px, 22vw, 260px); height: auto; aspect-ratio: 640 / 200;
    margin-bottom: var(--space-5);
}

/* Brand mark in the top bar */
.tz-brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--touch); text-decoration: none; }
.tz-brand-emblem { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.tz-badge {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: 6px 14px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
    font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.tz-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.tz-hero h1 {
    margin-top: var(--space-5);
    max-width: 16ch;
    font-size: clamp(2.2rem, 5.6vw, 4.2rem);
    line-height: 1.04; letter-spacing: -.025em; font-weight: 750;
}
.tz-year { color: #ffd29a; font-weight: 600; }
.tz-theme {
    margin-top: var(--space-5);
    max-width: 30ch;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.3; font-weight: 500; letter-spacing: -.01em;
    color: rgba(255, 255, 255, .94);
    padding-left: var(--space-4); border-left: 3px solid var(--color-accent);
}
.tz-when { margin-top: var(--space-5); display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.tz-lede { margin-top: var(--space-3); max-width: 62ch; color: rgba(255, 255, 255, .86); }
.tz-cta-row { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.tz-cta-row .tz-btn-primary { background: #fff; color: var(--color-primary-dark); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.tz-cta-row .tz-btn-primary:hover { background: #f1f8f9; color: var(--color-primary-dark); }

/* ---------- Quick facts ---------- */
.tz-facts-strip { margin-top: clamp(-96px, -8vw, -64px); position: relative; z-index: 2; }
.tz-fact-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4);
}
.tz-fact {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-raised);
}
.tz-fact-icon {
    display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-3);
    border-radius: 12px; background: var(--color-primary-soft); color: var(--color-primary);
}
.tz-fact-label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.tz-fact strong { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
.tz-fact > span:last-child { color: var(--color-muted); font-size: .93rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.tz-section { padding: clamp(56px, 8vw, 96px) 0; }
.tz-section-tight { padding-top: 0; }
.tz-section-muted { background: var(--color-muted-surface); }
.tz-kicker {
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--color-primary); margin-bottom: var(--space-2);
}
.tz-h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.tz-h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.tz-section-lede { margin-top: var(--space-3); max-width: 64ch; color: var(--color-muted); font-size: 1.05rem; }
.tz-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: start; }
.tz-prose { display: grid; gap: var(--space-4); font-size: 1.12rem; line-height: 1.7; max-width: 62ch; color: #2b3d45; }

/* Three Zeros */
.tz-zero-grid {
    list-style: none; margin: var(--space-6) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5);
}
.tz-zero {
    position: relative; overflow: hidden;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
    padding: var(--space-6); min-height: 220px; box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2);
}
.tz-zero-mark {
    position: absolute; top: 12px; right: 20px;
    font-size: 6.5rem; line-height: 1; font-weight: 800; letter-spacing: -.05em;
    color: var(--color-primary-soft);
}
.tz-zero-num { position: relative; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); }
.tz-zero h3 { position: relative; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; }

/* Discussion chips */
.tz-chips { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.tz-chip {
    display: inline-flex; align-items: center; min-height: var(--touch);
    padding: 0 18px; border-radius: var(--radius-pill);
    background: var(--color-muted-surface); border: 1px solid var(--color-border);
    font-weight: 500; color: var(--color-text);
}

/* Bonanza highlight */
.tz-highlight {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5);
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-accent-soft), #fffaf3 60%, #ffffff);
    border: 1px solid #f6dcb8;
}
.tz-highlight-icon {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
    background: #fff; color: #a35a00; box-shadow: var(--shadow-soft); font-size: 1.3rem;
}
.tz-highlight .tz-kicker { color: #8a4b00; }
.tz-dl { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-4) 0 0; }
.tz-dl dt { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6b4a1f; }
.tz-dl dd { margin: 0; font-weight: 600; }
.tz-highlight-note {
    margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .75); border: 1px solid #f3dcbc; font-weight: 500;
}

/* ---------- Registration layout ---------- */
.tz-reg-layout {
    margin-top: var(--space-6);
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); align-items: start;
}
.tz-reg-main { display: grid; gap: var(--space-5); min-width: 0; }
.tz-reg-aside { position: sticky; top: 84px; }
.tz-form { display: grid; gap: var(--space-5); }

.tz-step {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-soft);
    display: grid; gap: var(--space-5);
}
.tz-step-head { display: flex; gap: var(--space-4); align-items: flex-start; }
.tz-step-num {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--color-primary); color: #fff; font-weight: 700; font-size: .95rem;
}
.tz-step-head h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
.tz-step-head p { margin-top: 2px; color: var(--color-muted); font-size: .95rem; }

.tz-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.tz-span-2 { grid-column: 1 / -1; }

/* Fields */
.tz-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tz-field > label, .tz-choice legend { font-weight: 600; font-size: .95rem; color: var(--color-text); }
.tz-req { color: var(--color-danger); font-weight: 700; margin-left: 2px; }
.tz-optional { font-weight: 400; color: var(--color-muted); }
.tz-hint { font-size: .87rem; color: var(--color-muted); }

.tz-form input:not([type="radio"]):not([type="checkbox"]),
.tz-form select,
.tz-form textarea {
    width: 100%; min-height: 48px;
    padding: 12px 14px;
    font: inherit; font-size: 1rem; color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tz-form textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.tz-form select {
    appearance: none; -webkit-appearance: none; padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2352626b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.tz-form input:hover, .tz-form select:hover, .tz-form textarea:hover { border-color: #7f9198; }
.tz-form input:focus, .tz-form select:focus, .tz-form textarea:focus {
    outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(6, 107, 119, .18);
}
.tz-form input:focus-visible, .tz-form select:focus-visible, .tz-form textarea:focus-visible,
.tz-form input[type="date"]:focus-within {
    outline: 3px solid var(--color-focus); outline-offset: 1px; box-shadow: none;
}

.tz-age:not(:empty) {
    align-self: flex-start; margin-top: 2px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: var(--radius-pill);
    background: var(--color-primary-soft); color: var(--color-primary-dark); font-weight: 600; font-size: .9rem;
}

/* Radio "segmented" choices */
.tz-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.tz-choice legend { padding: 0; margin-bottom: var(--space-2); }
.tz-legend-sub { display: block; font-weight: 400; font-size: .87rem; color: var(--color-muted); }
.tz-segment { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.tz-segment label {
    position: relative; display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: 48px; padding: 0 var(--space-4);
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
    background: var(--color-surface); cursor: pointer; font-weight: 500;
    transition: border-color .15s ease, background-color .15s ease;
}
.tz-segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tz-segment label:hover { border-color: #7f9198; }
.tz-segment label:has(input:checked) {
    border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary-dark); font-weight: 650;
    box-shadow: inset 0 0 0 1px var(--color-primary);
}
.tz-segment label:has(input:checked)::before { content: "✓"; font-weight: 700; }
.tz-segment label:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* Areas of interest — multi-select chips (real checkboxes, keyboard + screen-reader friendly) */
.tz-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-2); }
.tz-checks label {
    position: relative; display: flex; align-items: center; gap: var(--space-3);
    min-height: 48px; padding: 8px var(--space-4);
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
    background: var(--color-surface); cursor: pointer; font-weight: 500; line-height: 1.3;
    transition: border-color .15s ease, background-color .15s ease;
}
.tz-checks input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--color-primary); }
.tz-checks label:hover { border-color: #7f9198; }
.tz-checks label:has(input:checked) {
    border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary-dark);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}
.tz-checks label:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.tz-invalid .tz-checks label { border-color: var(--color-danger); }

/* Youth step */
.tz-youth { display: block; }
.tz-muted-note { color: var(--color-muted); font-size: .95rem; }
.tz-step .tz-muted-note:not(:empty) {
    padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--color-muted-surface);
}

/* Consent */
.tz-form .tz-consent {
    display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer;
    padding: var(--space-4); border-radius: var(--radius-sm);
    background: var(--color-muted-surface); border: 1px solid var(--color-border);
    font-weight: 400;
}
.tz-form .tz-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--color-primary); }
.tz-consent-text { flex: 1 1 0; min-width: 0; }

/* Notices & messages (classes also set by unified-checkout.js / tzyd-registration.js) */
.tz-notice, .payment-message {
    display: flex; gap: var(--space-3); align-items: flex-start;
    padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
    background: var(--color-info-soft); color: #134a63; border: 1px solid #cfe3ee;
    font-size: .95rem; line-height: 1.5;
}
.tz-notice::before, .payment-message::before {
    flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    font-size: .8rem; font-weight: 800; content: "i"; background: #134a63; color: #fff; margin-top: 1px;
}
.payment-message { margin: 0; }
.payment-message.success { background: var(--color-success-soft); color: #0a5c39; border-color: #bfe5d1; }
.payment-message.success::before { content: "✓"; background: var(--color-success); }
.payment-message.error { background: var(--color-danger-soft); color: #8f1c13; border-color: #f4c6c1; }
.payment-message.error::before { content: "!"; background: var(--color-danger); }
.tz-notice { background: var(--color-accent-soft); color: #5c3300; border-color: #f6dcb8; }
.tz-notice::before { background: #a35a00; }
.tz-static { margin-top: var(--space-5); }

/* Inline errors — icon + text, never colour alone */
.tz-invalid input:not([type="radio"]):not([type="checkbox"]), .tz-invalid select, .tz-invalid textarea,
.tz-invalid .tz-segment label, .tz-invalid.tz-consent { border-color: var(--color-danger); border-width: 2px; }
.tz-error {
    display: flex; align-items: flex-start; gap: 6px; margin-top: 2px;
    color: var(--color-danger); font-size: .88rem; font-weight: 600; flex-basis: 100%;
}
.tz-error::before {
    content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-danger); color: #fff; font-size: .72rem; font-weight: 800; margin-top: 2px;
}
.tz-consent .tz-error { margin-top: var(--space-2); }

/* Honeypot (visually hidden, not display:none) */
.tz-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Summary card ---------- */
.tz-summary {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-raised);
    padding: var(--space-5); display: grid; gap: var(--space-4);
}
.tz-summary h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.tz-summary-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.tz-status {
    display: inline-flex; align-items: center; gap: 6px; min-height: 30px;
    padding: 2px 12px; border-radius: var(--radius-pill);
    font-size: .85rem; font-weight: 700;
    background: var(--color-muted-surface); color: var(--color-muted); border: 1px solid var(--color-border);
}
.tz-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tz-status[data-state="received"] { background: var(--color-primary-soft); color: var(--color-primary-dark); border-color: #c7e4e7; }
.tz-status[data-state="review"] { background: var(--color-accent-soft); color: #7a4100; border-color: #f6dcb8; }
.tz-status[data-state="pending"] { background: #fff8e1; color: #6d4c00; border-color: #f1df9e; }
.tz-status[data-state="confirmed"] { background: var(--color-success-soft); color: #0a5c39; border-color: #bfe5d1; }
.tz-status[data-state="confirmed"]::before { content: "✓"; width: auto; height: auto; background: none; }
.tz-summary-ref { font-size: .9rem; color: var(--color-muted); }
.tz-summary-ref strong { color: var(--color-text); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.tz-summary-list { margin: 0; display: grid; border-top: 1px solid var(--color-border); }
.tz-summary-list > div {
    display: flex; justify-content: space-between; gap: var(--space-4);
    padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); font-size: .93rem;
}
.tz-summary-list dt { color: var(--color-muted); }
.tz-summary-list dd { margin: 0; font-weight: 600; text-align: right; }
#tz-sum-amount-row dd strong { font-size: 1.15rem; color: var(--color-primary-dark); }
.tz-fee-preview:empty { display: none; }
.tz-fee-preview {
    padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
    background: var(--color-muted-surface); font-size: .93rem; font-weight: 500; color: #2b3d45;
}
.tz-summary-foot { display: flex; gap: var(--space-2); align-items: flex-start; font-size: .85rem; color: var(--color-muted); }
.tz-summary-foot .tz-icon { color: var(--color-primary); margin-top: 2px; }

/* ---------- Payment panel ---------- */
.tz-payment { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-raised); }
.tz-payment .tz-step-num { background: var(--color-primary-soft); color: var(--color-primary); }
.tz-pay-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.payment-buttons, .payment-form-frame { min-height: 60px; }
/* Cybersource fills these containers; collapse them while empty. */
.tz-payment .payment-buttons:empty, .tz-payment .payment-form-frame:empty { display: none; }

/* ---------- Confirmation code request ---------- */
.tz-code-request { margin-top: var(--space-5); max-width: 860px; }
.tz-code-request .tz-step-num { background: var(--color-primary-soft); color: var(--color-primary); }

/* ---------- Support ---------- */
.tz-support {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7);
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #f6fafb, #ffffff);
    border: 1px solid var(--color-border);
}
.tz-support-intro { display: grid; gap: var(--space-3); align-content: start; }
.tz-support-intro p:not(.tz-kicker) { color: #2b3d45; }
.tz-support-form { gap: var(--space-4); }
.tz-support-form .tz-btn { justify-self: start; }

/* ---------- FAQ & contacts ---------- */
.tz-faq-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: start; }
.tz-faq { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.tz-faq details {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(16, 40, 50, .04);
}
.tz-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
    min-height: 56px; padding: var(--space-3) var(--space-5);
    font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--radius-md);
}
.tz-faq summary::-webkit-details-marker { display: none; }
.tz-faq summary::after {
    content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--color-muted-surface); color: var(--color-primary); font-size: 1.2rem; font-weight: 500;
}
.tz-faq details[open] summary::after { content: "−"; }
.tz-faq details p { padding: 0 var(--space-5) var(--space-5); color: #2b3d45; max-width: 66ch; }
.tz-contacts { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.tz-contact {
    display: grid; gap: 2px; padding: var(--space-5);
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.tz-contact-role { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); }
.tz-contact strong { font-size: 1.05rem; }
.tz-contact a {
    display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--touch);
    font-weight: 600; overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.tz-footer { padding: var(--space-6) 0; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .tz-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .tz-reg-layout { grid-template-columns: 1fr; }
    .tz-reg-aside { position: static; }
    .tz-split, .tz-support, .tz-faq-layout { grid-template-columns: 1fr; gap: var(--space-5); }
    .tz-zero-grid { grid-template-columns: 1fr; }
    .tz-zero { min-height: 0; padding-top: var(--space-7); }
}
@media (max-width: 720px) {
    .tz-nav { display: none; }
}
@media (max-width: 600px) {
    .tz-container { width: calc(100% - 32px); }
    .tz-fact-grid, .tz-grid-2 { grid-template-columns: 1fr; }
    .tz-fact { padding: var(--space-4) var(--space-5); }
    .tz-cta-row .tz-btn { width: 100%; }
    .tz-highlight { grid-template-columns: 1fr; }
    .tz-step-head { gap: var(--space-3); }
    .tz-summary-list > div { flex-direction: column; gap: 2px; }
    .tz-summary-list dd { text-align: left; }
    .tz-support-form .tz-btn, .tz-pay-actions .tz-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
    .tz-status, .tz-chip, .tz-step, .tz-summary { border: 1px solid CanvasText; }
}
