/* Reference-inspired transit form, with no external image or font dependencies. */
:root{--brand:#0063ed;--ink:#0c193d;--muted:#7186ad;--line:#cbdcf4;--danger:#cf1533}
body{background:radial-gradient(ellipse at 90% 0%,#d8ebff,transparent 45%),linear-gradient(135deg,#eef8ff,#f9fcff 50%,#e5f3ff);min-height:100vh}
header{background:transparent;border:0;padding:16px max(20px,calc((100vw - 1020px)/2));font-size:12px}
.brand{color:#3e6299;letter-spacing:.16em}
main{width:min(1020px,calc(100% - 40px));margin:0 auto 32px;gap:18px}
.card{padding:26px;border-radius:19px;border-color:#cbdff8;background:rgba(255,255,255,.94);box-shadow:0 16px 40px #2359990c}
.scan-card{position:relative;overflow:hidden;background:radial-gradient(ellipse at top right,#aad4ff,transparent 42%),#ffffffeb}
.scan-heading{position:relative;display:flex;gap:20px;align-items:center;margin:4px 0 28px;z-index:1}
.heading-icon{flex:none;display:grid;place-items:center;width:66px;height:66px;border-radius:14px;color:var(--brand);background:#e8f2ff;font-size:32px}
h1{font-size:clamp(22px,2.8vw,30px);line-height:1.2;letter-spacing:-.035em;margin:0 0 9px}
.scan-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.earth-banner{position:absolute;right:-26px;top:-30px;bottom:0;width:44%;height:auto;pointer-events:none;background:url('/assets/airport-counter-hd.png') center 62%/cover no-repeat;mask-image:linear-gradient(90deg,transparent,#000 38%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 38%)}
.scan-heading{max-width:100%}.scan-heading>.heading-icon,.scan-heading>div:not(.earth-banner){position:relative;z-index:1}.scan-heading>div:not(.earth-banner){max-width:78%}
.scan-heading h1,.scan-heading p{text-shadow:0 1px 8px white,0 0 18px white}
.camera-wrap{border:2px solid #168aff;background:radial-gradient(ellipse,#122d43,#03111f);box-shadow:0 0 0 3px #e2f2ff,0 0 16px #278fff55;min-height:120px}
video{height:120px;max-height:360px;background:transparent}
.camera-wrap.is-scanning video{height:260px}
.aim-box{width:74%;height:60px;border:1px solid #a9defe;border-radius:14px;box-shadow:none;display:flex;align-items:center;justify-content:center;gap:18px;color:#c5e7ff;font-size:14px}
button.aim-box{pointer-events:auto;cursor:pointer;background:transparent;min-height:60px;padding:0;font-weight:500;box-shadow:none}
button.aim-box:hover{background:transparent;filter:none}.aim-box:disabled{cursor:default;opacity:1}
.aim-box::before{content:'▥';font-size:28px;color:white}
button,a.button{background:linear-gradient(#0877ff,#005bea);box-shadow:0 4px 12px #0063ed22;border:1px solid #ffffffa6;min-height:44px;font-size:14px;padding:11px 24px;transition:filter .15s,box-shadow .15s}
button:hover{filter:brightness(1.07)}button:disabled{opacity:.55;cursor:wait}
button.secondary{background:#e8f1fc;color:#365991;box-shadow:none}
button.danger{background:#ffe6ea;color:#d7223e;width:46px;height:46px;padding:0;box-shadow:none;font-size:22px}
button:focus-visible,input:focus-visible,select:focus-visible,.attachment-upload:focus-within{outline:3px solid #70b6ff;outline-offset:3px}
#start{min-width:170px}#stop{min-width:150px}#start::before{content:'▶';margin-right:12px}#stop::before{content:'■';margin-right:12px}
.status{font-size:12px;min-height:0;margin:12px 0 0;font-weight:600}
.form-title-row{margin-bottom:22px}.form-title-row h2{font-size:28px;letter-spacing:-.035em;display:flex;align-items:center;gap:18px}
.form-title-row .heading-icon{width:60px;height:60px;border-radius:13px;background:#edf5ff}
#clearForm::before{content:'↻';margin-right:10px;font-size:20px}
form{gap:16px}.field-grid{gap:20px 22px}label{color:#43669f;font-size:12px;letter-spacing:.045em}
input,select{height:50px;border-radius:12px;background:#fafdff;font-size:14px;font-weight:500;padding:12px 18px}
input::placeholder{color:#8799bb;opacity:1}select{appearance:auto}.error{font-size:12px}.error:empty{display:none}
.itinerary{gap:14px}.itinerary::before{width:2px;background:linear-gradient(#99c6ff,#0064ff)}
.stop{grid-template-columns:64px 180px minmax(0,1fr) auto;min-height:42px}.stop.from-row{grid-template-columns:64px minmax(0,1fr) auto}
.stop::before{width:16px;height:16px;border-width:2px;left:-31px}.stop-title{font-size:14px;color:#153779}
.airport-code{background:#eef5fc;border-radius:11px;min-height:42px;width:112px;padding:10px 20px;font-size:15px}
#addStop{margin-top:-8px;min-width:170px}.attachments{grid-template-columns:repeat(4,minmax(0,1fr))}
.attachment-upload{grid-column:1/-1;min-height:96px;align-content:center;gap:4px;background:#f8fbff;border-color:#98c8ff;padding:12px;text-transform:none;letter-spacing:0}
.attachment-upload .attachment-preview{height:32px;background:transparent}.attachment-upload .attachment-preview::before{content:'↥';background:#0669f5;color:#fff;border:0;width:36px;height:30px;font-size:28px;box-shadow:none}
.attachment-upload .attachment-filename{color:var(--ink);font-size:14px}.attachment-upload .file-drop-hint{color:var(--muted);font-weight:500;font-size:12px}
button[type=submit]{min-width:205px}button[type=submit]::before{content:'➤';margin-right:22px}
@media(max-width:640px){header{padding:14px 18px}main{width:calc(100% - 24px)}.card{padding:18px}.scan-heading{gap:12px;align-items:flex-start}.heading-icon{width:44px;height:44px;font-size:24px}.scan-heading p{font-size:12px}.earth-banner{width:60%;opacity:.25;right:-18px;top:-22px}.scan-heading>div:not(.earth-banner){max-width:none}h1{font-size:22px}.aim-box{width:88%;font-size:12px;gap:8px}.form-title-row h2{font-size:24px;gap:10px}.form-title-row .heading-icon{width:44px;height:44px}.stop,.stop.from-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.stop.from-row .airport-code{grid-column:1/-1}.stop button.danger{grid-column:2;grid-row:1;justify-self:end;width:36px;min-height:36px;height:36px}.stop::before{top:calc(100% - 25px)}.attachments{grid-template-columns:repeat(2,minmax(0,1fr))}.scan-card .actions{flex-wrap:nowrap}#start,#stop{min-width:0;flex:1;padding:10px}.field-grid{gap:18px}button[type=submit]{width:100%}}

.passport-icon{width:34px;height:34px;display:block}
@media(max-width:640px){.passport-icon{width:28px;height:28px}}

/* Keep the scan prompt clear of the camera preview and general button decoration. */
.camera-wrap button.aim-box,.camera-wrap button.aim-box:hover,.camera-wrap button.aim-box:disabled{background:none;border:0;box-shadow:none;border-radius:0;filter:none}
.camera-wrap.is-scanning .aim-box{display:none}
.form-title-row h2::before{content:none;display:none}
