@font-face { font-family: Inter; src: url(/assets/fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/inter-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/inter-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Schibsted; src: url(/assets/fonts/schibsted-grotesk.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
    --ink: #1c1433; --muted: #625c74; --line: #dfdbe8; --soft: #f6f4fa;
    --brand: #271151; --brand-2: #3f1b80; --accent: #f28a2e;
    --ok: #14663a; --ok-bg: #e8f8ee; --bad: #b3261e; --bad-bg: #fdecec;
    --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--soft); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--brand-2); }

.tp-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; }

/* Brand panel */
.tp-brand { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 48px; color: #fff; background: var(--brand); overflow: hidden; }
.tp-brand::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; background: var(--brand-2); }
.tp-brand > * { position: relative; z-index: 1; }
.tp-logo { align-self: flex-start; display: inline-flex; padding: 10px 14px; background: #fff; border-radius: var(--r); }
.tp-logo img { display: block; height: 36px; width: auto; }
.tp-eyebrow { margin: 0 0 12px; font-weight: 700; font-size: 14px; color: var(--accent); }
.tp-headline { margin: 0 0 28px; font: 700 clamp(30px, 3.2vw, 44px)/1.12 Schibsted, Inter, sans-serif; letter-spacing: -.01em; text-wrap: balance; }
.tp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tp-points li { position: relative; padding-left: 30px; color: #e5dff3; }
.tp-points li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.tp-help { display: flex; flex-direction: column; font-size: 14px; color: #cfc6e4; }
.tp-help a { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.tp-help a:hover { text-decoration: underline; }

/* Form side */
.tp-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.tp-card { width: 100%; max-width: 480px; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
h1 { margin: 0 0 4px; font: 700 28px/1.2 Schibsted, Inter, sans-serif; letter-spacing: -.01em; }
h2 { margin: 0 0 12px; font: 700 22px/1.25 Schibsted, Inter, sans-serif; }
.tp-sub { margin: 0; color: var(--muted); }
.tp-legal { max-width: 480px; margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.grecaptcha-badge { visibility: hidden; }

/* Progress */
.tp-progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; padding: 0; counter-reset: s; }
.tp-progress li { position: relative; padding-top: 36px; text-align: center; font-size: 12.5px; color: var(--muted); counter-increment: s; }
.tp-progress li::before { content: counter(s); position: absolute; z-index: 1; top: 0; left: 50%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; font-weight: 700; font-size: 13px; line-height: 28px; color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.tp-progress li + li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.tp-progress li.is-now { color: var(--ink); font-weight: 600; }
.tp-progress li.is-now::before { color: #fff; background: var(--brand); box-shadow: none; }
.tp-progress li.is-done::before { content: "✓"; color: #fff; background: var(--brand-2); box-shadow: none; }
.tp-progress li.is-done::after, .tp-progress li.is-now::after { background: var(--brand-2); }

/* Fields */
.tp-field { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=tel], input[type=email] { width: 100%; height: 48px; padding: 0 14px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9c4d6; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
input:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(63, 27, 128, .18); }
input[aria-invalid=true] { border-color: var(--bad); }
.iti { display: block; width: 100%; }
.iti__country-list { max-width: min(400px, calc(100vw - 80px)); white-space: normal; }
.tp-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.tp-code { height: 58px !important; text-align: center; font-size: 26px !important; font-weight: 700; letter-spacing: .4em; padding-left: .4em !important; font-variant-numeric: tabular-nums; }
.tp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.tp-btn { display: block; width: 100%; min-height: 50px; padding: 12px 20px; font: 700 16px/1.5 Inter, sans-serif; text-align: center; text-decoration: none; color: #fff; background: var(--brand); border: 0; border-radius: 10px; cursor: pointer; transition: background .15s; }
.tp-btn:hover { background: var(--brand-2); }
.tp-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tp-btn:disabled { opacity: .65; cursor: progress; }
.tp-btn-quiet { color: var(--brand); background: #fff; box-shadow: inset 0 0 0 1px #c9c4d6; }
.tp-btn-quiet:hover { background: var(--soft); }
.tp-row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.tp-link { margin-top: 24px; color: #fff; }

/* Messages */
.tp-alert { margin-bottom: 18px; padding: 12px 14px; font-size: 14px; border-radius: 10px; color: var(--bad); background: var(--bad-bg); }
.tp-alert.is-ok { color: var(--ok); background: var(--ok-bg); }

/* Searchable list */
.tp-combo { position: relative; }
.tp-combo ul { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 240px; margin: 0; padding: 4px; overflow: auto; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(39, 17, 81, .16); }
.tp-combo li { padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.tp-combo li.is-active, .tp-combo li:hover { background: var(--soft); }
.tp-combo li.is-empty { color: var(--muted); cursor: default; background: none; }

/* Finished */
.tp-done { text-align: center; }
.tp-tick { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; color: var(--ok); background: var(--ok-bg); border-radius: 50%; }
.tp-percent { margin: 0 0 12px; font-weight: 600; font-size: 14px; }
.tp-bar { height: 8px; margin: 0 0 8px; overflow: hidden; background: var(--soft); border-radius: 8px; }
.tp-bar div { width: 0; height: 100%; background: var(--brand-2); border-radius: 8px; transition: width .4s linear; }

.tp-orbit { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 16px; }
.tp-orbit b { font: 700 20px Schibsted, Inter, sans-serif; color: var(--brand); font-variant-numeric: tabular-nums; }
.tp-orbit span { position: absolute; inset: 0; border: 3px solid transparent; border-top-color: var(--brand-2); border-radius: 50%; animation: tp-spin 1.6s linear infinite; }
.tp-orbit span:nth-child(2) { inset: 9px; border-top-color: var(--accent); animation-duration: 2.3s; animation-direction: reverse; }
.tp-orbit span:nth-child(3) { inset: 18px; border-top-color: #b9a6e3; animation-duration: 3.1s; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.tp-bar div { position: relative; overflow: hidden; }
.tp-bar div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: tp-shine 1.5s linear infinite; }
@keyframes tp-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.tp-stages { list-style: none; margin: 16px 0 10px; padding: 0; display: grid; gap: 8px; text-align: left; font-size: 14px; }
.tp-stages li { position: relative; padding-left: 28px; color: #9a94aa; transition: color .3s; }
.tp-stages li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 14px; height: 14px; border: 2px solid var(--line); border-radius: 50%; box-sizing: border-box; }
.tp-stages li.is-now { color: var(--ink); font-weight: 600; }
.tp-stages li.is-now::before { border-color: var(--accent); border-top-color: transparent; animation: tp-spin .9s linear infinite; }
.tp-stages li.is-done { color: var(--muted); }
.tp-stages li.is-done::before { content: "\2713"; border: 0; top: 0; color: var(--ok); font-weight: 700; font-size: 15px; }
.tp-elapsed { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tp-tip { min-height: 66px; margin: 0 0 12px; padding: 12px 14px; font-size: 14px; text-align: left; color: var(--brand); background: var(--soft); border-radius: 10px; animation: tp-fade .5s ease; }
@keyframes tp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tp-tick { animation: tp-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tp-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 900px) {
    .tp-shell { display: block; }
    .tp-brand { position: static; height: auto; padding: 20px 16px; }
    .tp-brand::after, .tp-points, .tp-eyebrow { display: none; }
    .tp-brand { flex-direction: row; align-items: center; gap: 12px; }
    .tp-brand-copy { display: none; }
    .tp-logo { padding: 6px 10px; }
    .tp-logo img { height: 28px; }
    .tp-help { text-align: right; font-size: 12px; }
    .tp-help a { font-size: 14px; }
    .tp-main { padding: 16px; justify-content: flex-start; }
    .tp-card { padding: 22px 16px; }
    h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
