/* Salas Transportation · Employment application.
   Design tokens, type and sharp/editorial shapes follow the landing (Salas-landing/Blazor/Salas.Web/wwwroot/app.css). */

:root {
    --ink: #102b42;
    --navy: #0c243a;
    --blue: #126e9d;
    --aqua: #4fc1c8;
    --aqua-soft: #dbf0ef;
    --sky: #eaf5f6;
    --cream: #f8f7f3;
    --line: #d9e3e6;
    --muted: #637482;
    --danger: #be3c48;
    --serif: "DM Serif Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;

    /* Motion */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --t-fast: .18s;
    --t-base: .32s;
    --t-slow: .6s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin: auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell main { flex: 1; }

/* ---------- Boot screen (until the circuit renders) ---------- */
.boot-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--navy); transition: opacity .4s; }
.boot-screen img { width: 210px; animation: boot-breathe 1.8s var(--ease-in-out) infinite; }
.boot-bar { width: 140px; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; position: relative; }
.boot-bar::after { content: ""; position: absolute; inset: 0; background: var(--aqua); transform: translateX(-100%); animation: boot-slide 1.2s var(--ease-in-out) infinite; }
body:has(.site-shell) .boot-screen { opacity: 0; pointer-events: none; }
@keyframes boot-breathe { 50% { opacity: .55; transform: scale(.98); } }
@keyframes boot-slide { to { transform: translateX(100%); } }

/* ---------- Header ---------- */
.site-header { height: 82px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); border-bottom: 1px solid rgba(157,202,211,.18); position: relative; z-index: 5; }
.brand-logo { display: block; line-height: 0; transition: opacity var(--t-fast); }
.brand-logo:hover { opacity: .85; }
.brand-logo img { display: block; width: 194px; height: auto; max-height: 58px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.header-phone { display: flex; align-items: center; gap: 10px; color: #83d8d5; font-size: 11px; line-height: 1.3; }
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform var(--t-base) var(--ease-spring); }
.header-phone:hover svg { transform: rotate(-12deg) scale(1.1); }
.header-phone b { font-size: 14px; letter-spacing: .02em; }

/* Language switch: a thumb that slides between EN and ES */
.lang-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid rgba(131,216,213,.35); border-radius: 2px; background: rgba(255,255,255,.04); }
.lang-switch button { position: relative; z-index: 1; min-width: 42px; padding: 6px 10px; border: 0; background: none; color: #a9c3cc; font-size: 12px; font-weight: 700; letter-spacing: .12em; cursor: pointer; transition: color var(--t-base); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); }
.lang-switch button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.lang-switch-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--aqua); border-radius: 1px; transition: transform var(--t-base) var(--ease-out); }
.lang-switch[data-active="es"] .lang-switch-thumb { transform: translateX(100%); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #0c273e 0%, #103b55 58%, #126888 100%); padding: 84px 0 190px; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; transform: scale(1.06); animation: hero-drift 24s var(--ease-in-out) infinite alternate; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,34,53,.92) 15%, rgba(12,39,62,.55) 60%, rgba(18,104,136,.35)), linear-gradient(0deg, rgba(9,34,53,.45), transparent 60%); }
.hero-grid { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 66px 66px; mask-image: linear-gradient(90deg, #000 20%, transparent 74%); }
.hero-orb { position: absolute; border: 1px solid rgba(135,230,225,.42); border-radius: 50%; animation: orb-float 14s var(--ease-in-out) infinite alternate; }
.orb-one { width: 390px; height: 390px; right: -90px; bottom: -170px; }
.orb-two { width: 220px; height: 220px; right: 24%; top: -110px; animation-duration: 18s; animation-delay: -6s; }
.route-line { position: absolute; right: 9%; top: 22%; width: 34%; height: 58%; border: 1px dashed rgba(141,228,226,.6); border-left: 0; border-bottom: 0; border-radius: 0 150px 0 0; transform: rotate(-24deg); animation: route-draw 1.6s .5s var(--ease-out) both; }
.route-line::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #7ae4df; bottom: -5px; left: -4px; box-shadow: 0 0 0 6px rgba(122,228,223,.17); animation: pulse-ring 2.4s 2s infinite; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.eyebrow span { display: inline-block; width: 27px; height: 2px; background: currentColor; }
.eyebrow.light { color: #83d6d5; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6vw, 78px); letter-spacing: -.045em; line-height: .98; margin: 18px 0 22px; max-width: 760px; }
.hero h1 em { color: var(--aqua); font-style: italic; }
.hero-lead { max-width: 520px; margin: 0; color: #d3e1e7; font-size: 17px; }

@keyframes hero-drift { to { transform: scale(1.14) translate(-2%, -1%); } }
@keyframes orb-float { to { transform: translate(-26px, 18px) scale(1.04); } }
@keyframes route-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(122,228,223,.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(122,228,223,0); } }

/* Generic entrance: rise + fade with a per-element delay (--d) */
.reveal { animation: rise var(--t-slow) var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Application card ---------- */
.apply-section { position: relative; z-index: 2; margin-top: -130px; padding-bottom: 100px; }
.apply-card { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 3px; box-shadow: 0 24px 50px rgba(0,14,30,.16), 0 2px 6px rgba(0,14,30,.05); padding: 40px 48px 36px; scroll-margin-top: 16px; }

/* Stepper */
.stepper { --progress: 0; margin-bottom: 34px; }
.stepper-head { display: none; align-items: baseline; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.stepper-count { color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.stepper-current { color: var(--blue); font-weight: 700; }
.stepper-track { position: relative; height: 2px; margin: 0 calc(100% / 12); background: var(--line); top: 17px; }
.stepper-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--aqua)); transform-origin: left; transform: scaleX(var(--progress)); transition: transform .7s var(--ease-out); }
.stepper ol { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.step-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: #91a3ac; font-size: 12px; font-weight: 700; transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base) var(--ease-spring), box-shadow var(--t-base); }
.step-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; animation: draw-16 .4s .15s var(--ease-out) both; }
.step-label { font-size: 11px; font-weight: 600; color: #91a3ac; letter-spacing: .02em; transition: color var(--t-base); }
.stepper li.is-done .step-dot { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.stepper li.is-current .step-dot { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(79,193,200,.18); }
.stepper li.is-current .step-label { color: var(--ink); }
.stepper li.is-done .step-label { color: var(--muted); }
@keyframes draw-16 { from { stroke-dashoffset: 16; } }

/* Step panel: slides in from the direction of travel, children stagger */
.step-panel { min-height: 240px; }
.step-panel.enter-forward { --from: 34px; }
.step-panel.enter-back { --from: -34px; }
.step-panel.enter-fade { --from: 0px; }
.step-panel > *, .step-panel .form-grid > * { animation: step-in .55s var(--ease-out) both; }
.step-panel .form-grid { animation: none; }
.step-panel > :nth-child(1) { animation-delay: 0ms; }
.step-panel > :nth-child(2) { animation-delay: 60ms; }
.step-panel > :nth-child(3) { animation-delay: 120ms; }
.step-panel > :nth-child(4) { animation-delay: 180ms; }
.form-grid > :nth-child(1) { animation-delay: 70ms; }
.form-grid > :nth-child(2) { animation-delay: 105ms; }
.form-grid > :nth-child(3) { animation-delay: 140ms; }
.form-grid > :nth-child(4) { animation-delay: 175ms; }
.form-grid > :nth-child(5) { animation-delay: 210ms; }
.form-grid > :nth-child(6) { animation-delay: 245ms; }
.form-grid > :nth-child(7) { animation-delay: 280ms; }
.form-grid > :nth-child(8) { animation-delay: 315ms; }
.form-grid > :nth-child(9) { animation-delay: 350ms; }
.form-grid > :nth-child(10) { animation-delay: 385ms; }
.form-grid > :nth-child(n+11) { animation-delay: 420ms; }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--from, 0)); } to { opacity: 1; transform: none; } }

.step-head { margin-bottom: 26px; }
.step-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 38px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 8px; }
.step-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 600px; }
.step-hint { margin: 22px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Fields ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.span-2 { grid-column: 1 / -1; }
.field { margin: 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field > label, .field legend, .field-label { display: block; padding: 0; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: #45606e; line-height: 1.45; }
.req { color: var(--blue); margin-left: 2px; }
.optional { margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #91a3ac; }
.field-hint { margin: -2px 0 10px; font-size: 12px; color: var(--muted); }

.control { position: relative; display: flex; }
.control input, .control textarea { display: block; width: 100%; border: 1px solid #d8e2e4; background: #fbfcfc; border-radius: 2px; padding: 12px 13px; color: var(--ink); font-size: 14px; outline: none; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-base); }
.control textarea { resize: vertical; min-height: 104px; line-height: 1.6; }
.control input::placeholder, .control textarea::placeholder { color: #a6b4bb; }
.control input:hover, .control textarea:hover { border-color: #bfd0d4; }
.control input:focus, .control textarea:focus { border-color: var(--aqua); background: #fff; box-shadow: 0 0 0 4px rgba(79,193,200,.14); }
.control-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); pointer-events: none; }
.control:focus-within .control-line { transform: scaleX(1); }
.control.has-prefix input { padding-left: 46px; }
.prefix { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 36px; display: grid; place-items: center; border-right: 1px solid #e3eaec; color: var(--muted); font-size: 13px; font-weight: 600; z-index: 1; }

.has-error .control input, .has-error .control textarea { border-color: var(--danger); background: #fffafa; }
.has-error .control-line { background: var(--danger); }
.has-error { animation: shake .42s var(--ease-out); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: 11px; font-weight: 600; animation: error-in var(--t-base) var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes error-in { from { opacity: 0; transform: translateY(-4px); } }

/* Choice pills / cards (radio + checkbox) */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-cards .choices { display: grid; grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px 10px 13px; border: 1px solid #d8e2e4; border-radius: 2px; background: #fbfcfc; color: #405a69; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-base); }
.choice:hover { border-color: #a9cfd4; transform: translateY(-1px); }
.choice:active { transform: scale(.98); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(79,193,200,.35); }
.choice.is-selected { border-color: var(--aqua); background: var(--sky); color: var(--ink); }
.choice-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b6c6cb; display: grid; place-items: center; transition: border-color var(--t-fast); }
.choice-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform var(--t-base) var(--ease-spring); }
.choice.is-selected .choice-dot { border-color: var(--blue); }
.choice.is-selected .choice-dot::after { transform: scale(1); }
.choice-box { flex: none; width: 18px; height: 18px; border-radius: 2px; border: 1.5px solid #b6c6cb; display: grid; place-items: center; background: #fff; transition: background var(--t-fast), border-color var(--t-fast); }
.choice-box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset var(--t-base) var(--ease-out); }
.is-selected > .choice-box { background: var(--blue); border-color: var(--blue); animation: pop var(--t-base) var(--ease-spring); }
.is-selected > .choice-box svg { stroke-dashoffset: 0; }
.has-error .choice { border-color: #e9b8bd; }
@keyframes pop { 50% { transform: scale(1.18); } }

/* Languages: "Others" panel + tags */
.others-panel { margin-top: 14px; padding: 16px; background: var(--cream); border-left: 2px solid var(--aqua); border-radius: 2px; animation: expand .4s var(--ease-out); }
.others-panel > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #45606e; }
.others-panel .field-hint { margin: 8px 0 0; }
.tag-input { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px; border: 1px solid #d8e2e4; border-radius: 2px; background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-base); }
.tag-input:focus-within { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(79,193,200,.14); }
.tag-input input { flex: 1 1 160px; min-width: 120px; border: 0; outline: 0; padding: 6px; font-size: 14px; color: var(--ink); background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; background: var(--ink); color: #fff; border-radius: 2px; font-size: 13px; font-weight: 600; animation: tag-in var(--t-base) var(--ease-spring); }
.tag button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 2px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; transition: background var(--t-fast), transform var(--t-fast); }
.tag button:hover { background: var(--danger); transform: rotate(90deg); }
.tag-add { border: 0; padding: 7px 12px; border-radius: 2px; background: var(--aqua); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; transition: opacity var(--t-fast), transform var(--t-fast); }
.tag-add:hover:not(:disabled) { transform: translateY(-1px); }
.tag-add:disabled { opacity: .35; cursor: default; }
@keyframes expand { from { opacity: 0; transform: translateY(-8px); } }
@keyframes tag-in { from { opacity: 0; transform: scale(.6); } }

/* Resume upload */
.dropzone { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border: 1.5px dashed #b9cdd2; border-radius: 3px; background: #fbfcfc; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-base) var(--ease-out); }
.dropzone:hover, .dropzone:focus-within, .dropzone:has(input:hover) { border-color: var(--aqua); background: var(--sky); }
.dropzone:hover .dropzone-icon svg { transform: translateY(-3px); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #e6f2f3; color: var(--blue); }
.dropzone-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-base) var(--ease-spring); }
.dropzone-text { font-size: 14px; color: var(--muted); }
.dropzone-text b { color: var(--blue); }
.dropzone-text small { display: block; margin-top: 2px; font-size: 12px; color: #91a3ac; }
.dropzone.is-reading .dropzone-icon svg { animation: bob 1s var(--ease-in-out) infinite; }
.resume-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--aqua); border-radius: 3px; background: var(--sky); animation: tag-in var(--t-base) var(--ease-spring); }
.resume-icon { flex: none; width: 40px; height: 40px; border-radius: 2px; display: grid; place-items: center; background: var(--ink); color: var(--aqua); }
.resume-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.resume-name { flex: 1; min-width: 0; }
.resume-name b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-name small { font-size: 12px; color: var(--muted); }
.resume-remove { width: 32px; height: 32px; border: 0; border-radius: 2px; background: #fff; color: var(--muted); font-size: 18px; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.resume-remove:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* Step 1 · language cards */
.lang-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lang-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid #dce5e7; border-radius: 3px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base), border-color var(--t-base), background var(--t-base), color var(--t-base); }
.lang-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, #0c273e, #126888); transform: translateY(101%); transition: transform .45s var(--ease-out); }
.lang-card > * { position: relative; }
.lang-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(19,54,72,.1); }
.lang-card:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.lang-card.is-selected { border-color: transparent; color: #fff; }
.lang-card.is-selected::before { transform: none; }
.lang-code { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e6f2f3; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .1em; transition: background var(--t-base), color var(--t-base); }
.lang-card.is-selected .lang-code { background: rgba(255,255,255,.12); color: var(--aqua); }
.lang-name b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.lang-name small { font-size: 13px; color: var(--muted); transition: color var(--t-base); }
.lang-card.is-selected .lang-name small { color: #c0d3d9; }
.lang-check { margin-left: auto; width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--aqua); transform: scale(0); transition: transform var(--t-base) var(--ease-spring); }
.lang-check svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lang-card.is-selected .lang-check { transform: scale(1); }

/* Step 6 · statement */
.statement { padding: 24px 26px; background: var(--cream); border-radius: 3px; }
.statement-intro { margin: 0 0 14px; font-weight: 700; }
.statement ol { counter-reset: statement; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.statement li { counter-increment: statement; position: relative; padding-left: 38px; color: #425967; font-size: 14px; line-height: 1.65; }
.statement li::before { content: counter(statement); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua-soft); color: #138495; font-size: 11px; font-weight: 700; }
.agree { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 16px 18px; border: 1px solid #d8e2e4; border-radius: 2px; cursor: pointer; font-weight: 700; transition: border-color var(--t-fast), background var(--t-fast); }
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(79,193,200,.35); }
.agree.is-selected { border-color: var(--aqua); background: var(--sky); }
.agree .choice-box { width: 22px; height: 22px; }
.agree.has-error { border-color: var(--danger); }

/* ---------- Actions ---------- */
.form-summary { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; padding: 10px 12px; border-radius: 2px; background: #fff0f1; color: #a8323e; font-size: 12px; font-weight: 600; animation: shake .42s var(--ease-out); }
.form-summary::before { content: "!"; width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #a8323e; color: #fff; font-size: 11px; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #e8edef; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 2px; padding: 14px 22px; font-size: 14px; font-weight: 700; cursor: pointer; overflow: hidden; transition: transform .2s var(--ease-out), background .2s, border-color .2s, color .2s, box-shadow .2s; }
.button span { font-size: 18px; line-height: 12px; transition: transform var(--t-base) var(--ease-out); }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.button-primary { background: var(--aqua); color: var(--ink); }
.button-primary:hover:not(:disabled) { background: #74d8d7; box-shadow: 0 10px 22px rgba(79,193,200,.3); }
.button-primary:hover:not(:disabled) span { transform: translateX(4px); }
.button-ghost { background: #fff; color: var(--ink); border-color: #c9d6da; }
.button-ghost:hover:not(:disabled) { border-color: var(--ink); }
.button-ghost:hover:not(:disabled) span { transform: translateX(-4px); }
.button:disabled { opacity: .4; cursor: default; }

/* ---------- Result ---------- */
.result { min-height: 300px; display: grid; place-items: center; text-align: center; }
.result h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; letter-spacing: -.03em; margin: 18px 0 8px; }
.result p { max-width: 460px; margin: 0 auto 26px; color: var(--muted); }
.result-done > *, .result-failed > * { animation: rise .6s var(--ease-out) both; }
.result-done > :nth-child(2), .result-failed > :nth-child(2) { animation-delay: .45s; }
.result-done > :nth-child(3), .result-failed > :nth-child(3) { animation-delay: .55s; }
.result-done > :nth-child(4), .result-failed > :nth-child(4) { animation-delay: .65s; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.spinner { display: inline-block; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--aqua-soft); border-top-color: var(--blue); animation: spin .9s linear infinite; }
.success-mark { width: 92px; height: 92px; fill: none; stroke-linecap: round; stroke-linejoin: round; animation: none !important; }
.success-ring { stroke: var(--aqua); stroke-width: 3; stroke-dasharray: 227; transform: rotate(-90deg); transform-origin: center; animation: draw-227 .7s var(--ease-out) both; }
.success-check { stroke: var(--blue); stroke-width: 5; stroke-dasharray: 50; animation: draw-50 .45s .55s var(--ease-out) both; }
.failed-mark { width: 64px; height: 64px; margin: 0 auto; display: grid !important; place-items: center; border-radius: 50%; background: #fff0f1; color: var(--danger); font-family: var(--serif); font-size: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw-227 { from { stroke-dashoffset: 227; } }
@keyframes draw-50 { from { stroke-dashoffset: 50; } }

/* ---------- Footer ---------- */
.site-footer { background: #081c2d; color: #becbd2; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; font-size: 13px; }
.footer-main p { margin: 0; color: #9db1ba; }
.footer-main p a { color: #fff; font-weight: 600; transition: color .2s; }
.footer-main a:hover { color: #7ee1da; }
.footer-link { flex: none; color: #7ee1da; font-weight: 700; }
.footer-link span { display: inline-block; transition: transform var(--t-base) var(--ease-out); }
.footer-link:hover span { transform: translateX(4px); }
.footer-bottom { border-top: 1px solid #1d3546; padding: 18px 0; font-size: 11px; color: #75909c; }

#blazor-error-ui { display: none; position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; padding: .8rem 1rem; background: #fff3cd; color: #532d00; box-shadow: 0 -1px 4px #0002; }
#blazor-error-ui .dismiss { float: right; border: 0; background: none; font-size: 18px; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .site-header { height: 70px; padding: 0 16px; }
    .brand-logo img { width: 150px; max-height: 46px; }
    .header-actions { gap: 14px; }
    .header-phone span { display: none; }
    .header-phone svg { width: 22px; height: 22px; }
    .hero { padding: 56px 0 160px; }
    .route-line { display: none; }
    .container { width: min(100% - 32px, 1160px); }
    .apply-section { margin-top: -110px; padding-bottom: 60px; }
    .apply-card { padding: 26px 20px 24px; }
    .stepper-head { display: flex; }
    .stepper-track { top: 0; margin: 0; }
    .stepper ol { display: none; }
    .form-grid { grid-template-columns: 1fr; gap: 16px; }
    .lang-cards, .choice-cards .choices { grid-template-columns: 1fr; }
    .footer-main { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
    .hero h1 { font-size: 42px; }
    .hero-lead { font-size: 15px; }
    .choices { display: grid; grid-template-columns: 1fr; }
    .choice-pills .choices { grid-template-columns: 1fr 1fr; }
    .step-actions .button { flex: 1; padding: 14px 12px; }
    .statement { padding: 18px 16px; }
}

/* ---------- Reduced motion: keep the state changes, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
    .hero-media img, .hero-orb, .boot-screen img { animation: none !important; }
}
