/* Restore the violet ticket form while retaining scan and validation behavior. */
body.aviation-240 { --brand:#4030ff; --ink:#161d68; --muted:#515ba0; --line:#cdd3ff; }
html:has(body.aviation-240),body.aviation-page.aviation-240 { background:#f8f7f3; }
body.aviation-page.aviation-240::before,body.aviation-page.aviation-240::after { content:none; display:none; background:none; }
body.aviation-240 .mobile-aircraft-sky { display:none; }
.aviation-240 main { width:min(804px,calc(100% - 28px)); }
.aviation-240 .card { background:rgba(250,251,255,.88); border-radius:12px; padding:24px; }
.aviation-240 .form-title-row h2 { font-size:20px; }
.aviation-240 .form-title-row .heading-icon { display:grid; width:42px; height:42px; border-radius:12px; background:#eceeff; color:#4030ff; }
.aviation-240 label { color:#454e99; text-transform:uppercase; font-size:12px; font-weight:750; }
.aviation-240 input,.aviation-240 select { border-color:#cdd3ff; border-radius:9px; min-height:42px; font-size:14px; }
.aviation-240 button { background:linear-gradient(135deg,#5145ff,#3929ff); border-radius:20px; }
.aviation-240 button.secondary { color:#202779; background:#f5f6ff; border-color:#d4d9ff; }
.aviation-240 .itinerary { padding-left:0; }
.aviation-240 .itinerary::before { content:none; display:none; }
.aviation-240 .stop { position:relative; grid-template-columns:64px minmax(0,1fr) minmax(0,.8fr) 38px; gap:12px; padding:0; margin-bottom:12px; }
.aviation-240 .stop::before { content:none; display:none; }
.aviation-240 .stop-title { display:flex; align-items:center; justify-content:center; align-self:stretch; min-height:64px; font-size:0; line-height:0; border:1px solid #dce0ff; border-radius:9px; background:#f6f7ff; }
.aviation-240 .stop-title::after { content:''; display:block; flex:none; width:28px; height:28px; background:currentColor; color:#34308b; transform:rotate(90deg); -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.aviation-240 .stop.from-row { grid-template-columns:64px minmax(0,1fr); gap:0; }
.aviation-240 .airport-code { display:flex; align-items:center; height:66px; border-radius:9px; background:linear-gradient(120deg,#fafbff,#e9edff); color:#192465; font-size:28px; padding:12px 24px; border:1px solid #d4d9ff; }
.aviation-240 .stop.active-stop .stop-code,.aviation-240 .stop.active-stop .airport-code,.aviation-240 .stop.active-stop .stop-title { background:linear-gradient(120deg,#2738a4,#171364); color:#fff; border-color:#3430a4; }
.aviation-240 .stop.active-stop .stop-title::after { color:#fff; }
.aviation-240 .stop input { height:44px; }
.aviation-240 .stop button.danger { min-height:38px; height:38px; width:38px; border-radius:50%; background:#ffd5d9; }
.aviation-240 #addStop,.aviation-240 button[type=submit] { min-width:204px; }
.aviation-240 .attachments { display:grid; grid-template-columns:minmax(0,1fr); }
.aviation-240 .attachment-upload { border:1px dashed #c4caff; border-radius:12px; min-height:82px; padding:8px; }
.aviation-240 .attachment-upload .attachment-preview { height:28px; background:transparent; }
.aviation-240 .attachment-upload .attachment-preview::before { content:'↑'; width:27px; height:27px; font-size:20px; background:#4030ff; color:#fff; }
@media(max-width:640px) {
 .aviation-240 .card { padding:18px; }
 .aviation-240 .stop { grid-template-columns:40px minmax(0,1fr) 38px; gap:8px; }
 .aviation-240 .stop.from-row { grid-template-columns:40px minmax(0,1fr); }
 .aviation-240 .stop-title { grid-column:auto; grid-row:1 / span 2; }
 .aviation-240 .stop.from-row .stop-title { grid-row:auto; }
 .aviation-240 .stop-date { grid-column:2; }
 .aviation-240 .stop button.danger { grid-column:3; grid-row:1 / span 2; }
}
.aviation-240 .airport-code { width:auto; }
.aviation-240 .stop.from-row .airport-code { grid-column:2; grid-row:1; }
.aviation-240 .passport-date-field { display:grid; gap:8px; min-width:0; color:#454e99; font-size:12px; font-weight:750; text-transform:uppercase; }
.aviation-240 .passport-wheels { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:6px; width:min(100%,280px); }
.aviation-240 .passport-wheels select { height:50px; min-height:50px; padding:10px 24px 10px 10px; text-align:left; }
.aviation-240 .passport-wheels option { color:#192465; background:#fff; }
.aviation-240 #nationalityTrigger { width:100%; height:50px; border:1px solid #cdd3ff; border-radius:9px; padding:10px 14px; background:#ffffffba; color:#161d68; text-align:left; font:inherit; font-size:14px; font-weight:750; box-shadow:none; display:flex; align-items:center; justify-content:space-between; }
.aviation-240 #nationalityTrigger::after { content:'⌄'; }
.aviation-240 dialog.nationality-picker { width:min(440px,calc(100vw - 24px)); max-height:80dvh; padding:16px; border:1px solid #cdd3ff; border-radius:16px; background:#f8f9ff; color:#161d68; box-shadow:0 18px 60px #17136440; }
.aviation-240 .nationality-picker::backdrop { background:#17136455; }
.aviation-240 .nationality-picker-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.aviation-240 .nationality-picker-heading h2 { margin:0; font-size:16px; }
.aviation-240 #closeNationality { width:40px; height:40px; flex:none; padding:0; font-size:24px; }
.aviation-240 .nationality-choices { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.aviation-240 .nationality-choices button { min-height:44px; padding:8px 2px; border:1px solid #cdd3ff; border-radius:8px; background:#fff; color:#202779; box-shadow:none; font-size:14px; }
.aviation-240 .nationality-choices button[aria-pressed=true] { background:#4030ff; color:#fff; }
.aviation-240 .stop input.stop-code:not(:placeholder-shown) { height:66px; font-size:28px; font-weight:950; padding:12px 24px; }
.aviation-240 .stop-date-label { grid-column:1; grid-row:2; align-self:center; justify-self:center; color:#454e99; font-size:12px; font-weight:750; }
.aviation-240 .stop-date-picker { grid-column:2 / 4; grid-row:2; display:grid; gap:8px; padding:10px 0 0; }
.aviation-240 .stop:has(.stop-date-picker) > .stop-code { grid-column:2 / 4; }
.aviation-240 .stop:has(.stop-date-picker) > button.danger { grid-column:4; grid-row:1; }
.aviation-240 .date-choices { display:flex; flex-wrap:wrap; gap:6px; }
.aviation-240 .date-choice { min-width:54px; min-height:44px; padding:8px; border:1px solid #cdd3ff; border-radius:9px; background:#f6f7ff; color:#202779; box-shadow:none; font-size:13px; }
.aviation-240 .date-choice[aria-pressed=true] { background:#4030ff; border-color:#4030ff; color:#fff; }
.aviation-240 .date-choice:focus-visible { outline:3px solid #8076ff; outline-offset:2px; }
.aviation-240 .stop-date-picker.invalid { outline:1px solid #b42318; outline-offset:4px; border-radius:5px; }
@media(max-width:640px) {
 .aviation-240 .stop:has(.stop-date-picker) > .stop-code { grid-column:2; }
 .aviation-240 .stop:has(.stop-date-picker) > button.danger { grid-column:3; }
 .aviation-240 .stop-date-picker { grid-column:2 / 4; }
 .aviation-240 .stop:has(.stop-date-picker) > .stop-title { grid-row:1; }
}

/* Destination eligibility errors override the active blue ticket immediately. */
.aviation-240 .stop.invalid-destination .stop-code,.aviation-240 .stop.invalid-destination .stop-title { background:linear-gradient(120deg,#dc2626,#991b1b); color:#fff; border-color:#b91c1c; }
.aviation-240 .stop.invalid-destination .stop-title::after { color:#fff; }
.aviation-240 .stop.invalid-destination::before { border-color:#dc2626; }
