@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --ink: #1c1c1c;
    --muted: #5e6872;
    --line: #e4e4e4;
    --blue: #194776;
    --blue-dark: #083954;
    --error: #9d1c3c;
    --ok: #1f7a4d;
    --stage: #d9d9d9;
    --stage-image: url("/assets/panels/tmfs.jpg");
    --bg: #fff;
    --hint: #66707a;
    --focus: #9cc7e4;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    color: var(--ink);
    background: var(--bg);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sheet {
    width: 100%;
    padding: 20px 18px 32px;
    background: #fff;
}

.sheet--center { padding-top: 28px; }

.sheet--wide { max-width: 760px; }

.stage {
    height: 132px;
    flex: none;
    background-color: var(--stage);
    background-image: var(--stage-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.brand-logo {
    display: block;
    max-height: 52px;
    max-width: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pet-flag {
    margin: 0;
    background: #e7f4ef;
    color: #0d5c45;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
}

.progress {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.progress li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress li span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd5db;
    font-size: 12px;
}

.progress .is-current { color: var(--ink); }
.progress .is-current span,
.progress .is-done span {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

h1 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
}

h2 { font-size: 16px; margin: 0 0 8px; }
h3 { font-size: 16px; margin: 0 0 6px; }

.lede { margin: 0 0 18px; color: #333; }

.step-kicker {
    margin: 0 0 6px;
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.field { margin: 0 0 14px; }

.field label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.optional { font-weight: 500; color: var(--muted); }

.field input,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.field input[readonly] { background: #f7f7f7; }

.field input:focus,
.field select:focus {
    outline: 3px solid var(--focus);
    border-color: var(--blue);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid .order-prefix { border-color: var(--error); }

.order-entry {
    display: flex;
    align-items: stretch;
}

.order-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #f7f7f7;
    font-weight: 700;
    white-space: nowrap;
}

.order-entry input { border-radius: 0 6px 6px 0; }

.field-error {
    color: var(--error);
    font-size: 14px;
    margin: 6px 0 0;
}

.hint { color: var(--hint); font-size: 13px; margin: 6px 0 0; }

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 16px;
    font-size: 14px;
}

.check input { margin-top: 3px; }

.consent {
    font-size: 13px;
    color: #3c4650;
    margin: 0 0 14px;
}

.button {
    appearance: none;
    display: inline-block;
    width: 100%;
    border: 0;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.button:hover,
.button:focus,
.button:focus-visible,
.button:active {
    background: var(--blue-dark);
    color: #fff;
}

.button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.button--ghost {
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--blue);
}

a.button:visited { color: #fff; }

a.button.button--ghost:visited {
    background: #fff;
    color: var(--blue);
}

.banner {
    background: #eef6fb;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 0 14px;
}

.banner--error {
    background: #fdecef;
    color: var(--error);
}

.code-ok {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin: 0 0 12px;
}

.tick {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ok);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.about { margin: 18px 0; }
.about h2 { font-size: 15px; }

.sample-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sample-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.sample-step img { width: 48px; height: 48px; }

.guidance { margin-bottom: 0; }

.address-block { margin-top: 8px; }

address {
    font-style: normal;
    background: #f6f7f8;
    border-radius: 8px;
    padding: 14px 16px;
}

address strong, address span { display: block; }

.next-note { color: #333; }

.text-links {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.text-links li { margin: 6px 0; }

.text-links a, .site-foot a { color: var(--blue); }

.text-links a.button,
.text-links a.button:visited { color: #fff; }

.text-links a.button--ghost,
.text-links a.button--ghost:visited {
    background: #fff;
    color: var(--blue);
}

.text-links a.button:hover,
.text-links a.button:focus,
.text-links a.button:focus-visible,
.text-links a.button:active,
.text-links a.button:visited:hover,
.text-links a.button:visited:focus,
.text-links a.button:visited:focus-visible,
.text-links a.button:visited:active,
.text-links a.button--ghost:hover,
.text-links a.button--ghost:focus,
.text-links a.button--ghost:focus-visible,
.text-links a.button--ghost:active,
.text-links a.button--ghost:visited:hover,
.text-links a.button--ghost:visited:focus,
.text-links a.button--ghost:visited:focus-visible,
.text-links a.button--ghost:visited:active {
    background: var(--blue-dark);
    color: #fff;
}

.site-foot {
    margin-top: 28px;
    color: var(--muted);
    font-size: 13px;
}

.site-foot p { margin: 0; }

.status-card {
    background: #f6f7f8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.status-card__source {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.status-card__label {
    margin: 4px 0;
    font-size: 20px;
    font-weight: 700;
}

.status-card__when { margin: 0 0 8px; color: var(--muted); }

.code-list { padding-left: 18px; }

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.privacy-page h2, .sheet h2 { margin-top: 22px; }

.help {
    background: #eef6fb;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 16px;
}

.help p { margin: 0 0 8px; }
.help p:last-child { margin: 0; }

.pet-choice {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 0 16px;
    padding: 12px 14px 8px;
}

.pet-choice legend {
    font-weight: 700;
    padding: 0 4px;
}

.pet-choice label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-weight: 600;
}

.pet-choice.is-invalid { border-color: var(--error); }

ul { padding-left: 18px; }

.choices {
    display: grid;
    gap: 12px;
    margin: 0;
}

.choice {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 16px 14px;
    background: #fff;
}

.choice:hover,
.choice:focus-visible {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px var(--focus);
}

.choice__title {
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: var(--blue);
    margin-bottom: 4px;
}

.choice__text {
    display: block;
    color: #333;
    font-size: 15px;
}

.choice-label {
    margin: 22px 0 10px;
    font-size: 14px;
    font-weight: 700;
}

@media (min-width: 900px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }
    .shell {
        flex-direction: row;
        align-items: stretch;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
    .stage {
        flex: 0 0 45%;
        width: 45%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        position: sticky;
        top: 0;
    }
    .sheet {
        flex: 1 1 55%;
        width: 55%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow-y: auto;
        padding: 36px 48px 48px;
    }
    .sheet--center {
        display: flex;
        flex-direction: column;
        justify-content: safe center;
    }
}

@media print {
    html, body { height: auto; overflow: visible; }
    .stage, .site-foot, .progress, .text-links, .button { display: none !important; }
    .shell { display: block; height: auto; overflow: visible; }
    .sheet { max-width: none; height: auto; overflow: visible; }
}
