:root {
    --order-ink: #132642;
    --order-muted: #64748b;
    --order-teal: #0055f4;
    --order-teal-dark: #0044ce;
    --order-border: #dce5f1;
    --order-bg: #f7faff;
    --bs-primary: #0055f4;
    --bs-primary-rgb: 0, 85, 244;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: radial-gradient(ellipse at 12% 24%, #dcecff91, transparent 45%),
        radial-gradient(ellipse at 90% 75%, #e2efffa8, transparent 43%), #f8fbff;
    color: var(--order-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    width: min(75vw, 1000px);
    aspect-ratio: 1;
    left: 50%;
    top: 110px;
    transform: translateX(-50%);
    border: 1px solid #dce9f69c;
    border-radius: 50%;
    box-shadow: 0 0 0 85px #e7effa38, 0 0 0 170px #e7effa26;
    pointer-events: none;
    z-index: -1;
}

.journey-header {
    max-width: 1160px;
    margin: auto;
    padding: 30px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.journey-brand { display: inline-flex; align-items: center; gap: 10px; color: #040e29; font-size: 27px; font-weight: 750; letter-spacing: -1.2px; text-decoration: none; }
.journey-brand:hover { color: #040e29; }
.journey-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #239bff, #0057ff 70%, #0044d8); color: #fff; box-shadow: 0 6px 14px #0868ed24; }
.journey-brand-mark .icon { width: 28px; height: 28px; }
.brand-period { color: var(--order-teal); margin-left: -9px; }
.header-home-link { color: #5b708f; font-size: 15px; text-decoration: none; white-space: nowrap; }
.header-home-link:hover { color: var(--order-teal); }
.header-home-link:focus-visible, .journey-brand:focus-visible { outline: 3px solid #83b9ff; outline-offset: 5px; border-radius: 5px; }

.journey-layout { width: 100%; max-width: 620px; margin: 22px auto 28px; padding: 0 24px; }
.order-container { max-width: none; width: 100%; margin: 0; padding: 0; }
.itinerary-card { position: relative; border: 1px solid #dde7f3 !important; border-radius: 22px; background: linear-gradient(155deg, #ffffff, #fff 65%, #fafdff); box-shadow: 0 18px 65px #144c8b0d, 0 2px 8px #144c8b04; }
.itinerary-card::before { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 3px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, #b6dbff, #2582ff 50%, #b6dbff); }
.itinerary-card .card-body { padding: 30px 32px 26px; }
.form-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 1px; color: #58799e; margin-bottom: 17px; }
.form-eyebrow > span { display: grid; place-items: center; width: 33px; height: 33px; color: var(--order-teal); background: #eef5ff; border: 1px solid #e1edfe; border-radius: 10px; }
.form-eyebrow .icon { width: 18px; height: 18px; }
.itinerary-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -.9px; line-height: 1.25; margin: 0 0 9px; }
.form-introduction { font-size: 16px; color: #6a7d96; line-height: 1.6; margin: 0 0 24px; }

.itinerary-card .row { --bs-gutter-x: 0; }
.itinerary-card .mb-4 { margin-bottom: 18px !important; }
.itinerary-card .trip-type.mb-4 { margin-bottom: 23px !important; }
.trip-type > .d-flex { display: flex; gap: 6px !important; background: #f0f5fc; padding: 5px; border: 1px solid #e5edf7; border-radius: 12px; }
.trip-type .form-check { position: relative; flex: 1; padding: 0; margin: 0; min-height: 0; }
.trip-type .form-check-input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0 !important; }
.trip-type .form-check-label { display: block; padding: 10px 12px; border-radius: 8px; text-align: center; font-size: 16px; line-height: 22px; font-weight: 500; color: #6b7d96; cursor: pointer; }
.trip-type input:checked + label { background: #fff; color: var(--order-teal); box-shadow: 0 2px 7px #204d8a0c; }
.trip-type input:focus-visible + label { outline: 2px solid var(--order-teal); outline-offset: 1px; }
.form-label { font-size: 17px; font-weight: 600; line-height: 22px; margin-bottom: 8px; color: #354e70; }
.form-control { height: 54px; border-radius: 10px; border: 1px solid #dbe5f1; font: inherit; font-size: 18px; color: #29405f; background: #fdfeff; box-shadow: 0 1px 2px #16396303; }
.form-control::placeholder, .placeholder-text { color: #8394ac; }
.form-control:hover { border-color: #aac7ec; background: #fff; }
.form-control:focus { border-color: #6ea6f7; background: #fff; box-shadow: 0 0 0 3px #0055f40b; }
.form-control.has-value { background: #f9fcff; border-color: #cbdff7; }
.input-shell .form-control { padding-left: 46px; padding-right: 35px; }
.input-shell .field-icon { width: 19px; height: 19px; top: 17px; left: 16px; color: #7194bf; }
.clear-airport { top: 10px; right: 5px; font-size: 22px; color: #7e92ae; }
.airport-field[data-airport="from"] { padding-right: 49px; }
.swap-airports { position: absolute; left: auto; right: 0; top: 38px; transform: rotate(90deg); display: grid; place-items: center; width: 39px; height: 39px; padding: 9px; border: 1px solid #dceafd; border-radius: 50%; background: #edf5ff; color: var(--order-teal); }
.swap-airports .icon { width: 20px; height: 20px; }
.swap-airports:hover { color: #0044ce; background: #deecff; border-color: #bdd6fb; }
.date-trigger, .passenger-trigger { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.date-trigger > .icon, .passenger-trigger > .icon { width: 19px; height: 19px; color: #7194bf; }
.date-trigger .trailing-icon, .passenger-trigger .trailing-icon { width: 15px; height: 15px; color: #8ba5c5; }
.date-text, #passenger-summary { font-size: 16px; }
.form-text { font-size: 16px; line-height: 21px; margin-top: 8px; color: #70839e; }
#passengers-column { margin-bottom: 0 !important; }
.continue-button, .passenger-done { --bs-btn-bg: #0060ff; --bs-btn-border-color: #0060ff; --bs-btn-color: #fff; --bs-btn-hover-bg: #004ce1; --bs-btn-hover-border-color: #004ce1; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #0046ce; --bs-btn-active-border-color: #0046ce; --bs-btn-disabled-bg: #0060ff; --bs-btn-disabled-border-color: #0060ff; --bs-btn-focus-shadow-rgb: 0,85,244; background-image: linear-gradient(115deg, #198dff, #0055ff 65%, #0346d4); color: #fff; border: 0; border-radius: 11px; font-size: 18px; font-weight: 600; box-shadow: 0 8px 20px #0064ed21; }
.continue-button { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 52px; margin: 24px 0 0; padding: 12px 20px; }
.continue-button .icon { width: 20px; height: 20px; }
.continue-button:hover .icon { transform: translateX(3px); }
.journey-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; color: #7184a0; font-size: 14px; line-height: 21px; }
.journey-progress > span { min-width: 0; }
.journey-progress > div { display: flex; gap: 4px; flex-shrink: 0; }
.journey-progress i { display: block; width: 17px; height: 4px; border-radius: 4px; background: #e5edf8; }
.journey-progress i.is-complete { background: #79aaf2; }
.journey-progress.is-ready { color: #346aa6; }
.journey-progress.is-ready i.is-complete { background: #3585ee; }
.invalid-feedback, .alert { font-size: 14px; line-height: 1.6; }
.alert { margin: 18px 0 0; border-radius: 10px; }
.journey-footer { max-width: 1160px; margin: 0 auto; padding: 0 28px 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; line-height: 1.6; color: #7183a0; }

/* Matching, readable airport, date and passenger pickers. */
.airport-panel { max-height: 350px; border: 1px solid #dce6f4; border-radius: 12px; box-shadow: 0 12px 35px #1b4e8c15; padding: 6px; }
.airport-status { padding: 15px 12px; font-size: 14px; line-height: 1.6; color: #667e9f; }
.airport-option { padding: 13px 11px; gap: 11px; }
.airport-option:hover, .airport-option[aria-selected="true"] { background: #eef5ff; }
.airport-option .icon { color: #7194bf; }
.airport-city { font-size: 18px; line-height: 1.5; }
.airport-name { font-size: 16px; line-height: 1.5; color: #71839b; max-width: 360px; }
.airport-code { font-size: 15px; color: #5076a7; background: #f0f6ff; border-color: #e0ebfa; }
.modal { --bs-modal-border-radius: 18px; color: var(--order-ink); }
.modal-content { max-height: calc(100dvh - 40px); box-shadow: 0 20px 70px #153e7126; }
.modal-header { padding: 22px 24px; border-color: #edf2f9; }
.modal-body { padding: 20px 24px 24px; overflow-y: auto; }
.modal-title.fs-5 { font-size: 20px !important; }
.modal-backdrop { background: #163451; }
.modal-backdrop.show { opacity: .32; }
.btn-close { font-size: 14px; padding: 12px; }
.calendar-modal .modal-dialog { max-width: 740px; }
.calendar-eyebrow { font-size: 14px; line-height: 1.5; letter-spacing: .7px; color: #547da8; margin-bottom: 6px; }
.calendar-navigation { font-size: 14px; color: #6b80a0; }
.calendar-nav { width: 38px; height: 38px; font-size: 27px; border-color: #dce6f2; }
.calendar-months { gap: 28px; }
.calendar-month-title { font-size: 17px; margin-bottom: 17px; }
.calendar-week span { font-size: 14px; color: #7b8fab; }
.calendar-day { font-size: 15px; min-height: 38px; }
.calendar-day:disabled { color: #a4b2c5; }
.calendar-day:hover:not(:disabled), .calendar-nav:hover, .counter-button:hover { background: #eaf3ff; color: var(--order-teal); }
.calendar-day.is-between { background: #eaf3ff; }
.calendar-footer { margin-top: 20px; padding-top: 16px; font-size: 14px; line-height: 1.6; flex-wrap: wrap; color: #7086a3; }
.passenger-modal .modal-dialog { position: relative; left: auto; top: auto; width: calc(100% - 32px); max-width: 420px; margin: 24px auto; min-height: calc(100% - 48px); }
.passenger-modal .modal-header { padding: 22px 24px; }
.passenger-modal .modal-body { padding: 16px 24px 24px; }
.passenger-row { padding: 18px 0; border-color: #edf2f9; }
.passenger-row h3 { font-size: 16px; margin-bottom: 5px; }
.passenger-row p { font-size: 14px; color: #7486a0; }
.passenger-counter { gap: 18px; }
.passenger-counter output { font-size: 16px; }
.counter-button { width: 38px; height: 38px; font-size: 23px; border-color: #d1e1f5; }
.counter-button:disabled { color: #9dadc2; border-color: #e0e7f1; }
.passenger-limit { font-size: 14px; line-height: 1.6; margin: 20px 0; color: #6f83a1; }
.passenger-done { height: 48px; }
.journey-confetti { position: absolute; inset: 0; overflow: hidden; border-radius: 22px; pointer-events: none; z-index: 4; }
.journey-confetti i { position: absolute; top: 27%; left: 50%; width: 6px; height: 9px; background: var(--confetti-color); border-radius: 2px; animation: little-celebration .85s ease-out forwards; }

@media (max-width: 767.98px) {
    .journey-header { padding: 23px 22px; }
    .journey-brand { font-size: 24px; }
    .journey-brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .journey-brand-mark .icon { width: 24px; height: 24px; }
    .journey-layout { margin-top: 13px; padding: 0 18px; }
    .itinerary-card .card-body { padding: 28px 25px 24px; }
    .itinerary-card h1 { font-size: 28px; }
    .journey-footer { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 575.98px) {
    .journey-header { padding: 21px 18px; gap: 10px; }
    .journey-brand { font-size: 23px; gap: 8px; }
    .header-home-link { font-size: 14px; }
    .journey-layout { margin: 10px auto 25px; padding: 0 12px; }
    .itinerary-card { border-radius: 18px; }
    .itinerary-card .card-body { padding: 25px 20px 23px; }
    .itinerary-card::before { left: 22px; right: 22px; }
    .itinerary-card h1 { font-size: 26px; letter-spacing: -.7px; }
    .form-eyebrow { margin-bottom: 16px; font-size: 14px; letter-spacing: .6px; }
    .form-introduction { font-size: 15px; margin-bottom: 22px; }
    .itinerary-card .mb-4 { margin-bottom: 17px !important; }
    .form-label { font-size: 15px; }
    .form-control { height: 52px; font-size: 16px; }
    .input-shell .field-icon { top: 16px; left: 13px; }
    .input-shell .form-control { padding-left: 40px; padding-right: 29px; }
    .airport-field[data-airport="from"] { padding-right: 44px; }
    .clear-airport { right: 0; top: 9px; }
    .swap-airports { right: 0; top: 38px; width: 36px; height: 36px; padding: 8px; }
    .swap-airports .icon { width: 19px; height: 19px; }
    .date-trigger, .passenger-trigger { padding: 0 13px; gap: 10px; }
    .date-text, #passenger-summary { font-size: 16px; }
    .continue-button { min-height: 52px; }
    .journey-progress { font-size: 14px; gap: 10px; }
    .journey-progress i { width: 13px; }
    .journey-footer { flex-direction: column; text-align: center; gap: 5px; font-size: 14px; }
    .airport-modal .modal-content { max-height: none; }
    .airport-modal .modal-header { padding: 20px; }
    .airport-modal .modal-body { padding: 6px 18px 20px; }
    .airport-modal .airport-panel { padding: 0; border: 0; box-shadow: none; }
    .airport-modal .airport-option { padding: 16px 6px; }
    .airport-name { max-width: 210px; }
    .mobile-search-shell .form-control { height: 52px; font-size: 16px; }
    .calendar-modal .modal-dialog, .passenger-modal .modal-dialog { position: relative; left: auto; top: auto; width: 100%; margin: 0; min-height: 100%; max-width: none; }
    .calendar-modal .modal-content, .passenger-modal .modal-content { border-radius: 20px 20px 0 0; max-height: 95dvh; }
    .calendar-modal .modal-header, .passenger-modal .modal-header { padding: 22px 20px 18px; }
    .calendar-modal .modal-body, .passenger-modal .modal-body { padding: 16px 20px 24px; }
    .calendar-month-title { font-size: 18px; }
    .calendar-navigation { font-size: 14px; }
    .calendar-day { font-size: 16px; min-height: 40px; }
    .calendar-week span { font-size: 14px; }
    .calendar-footer { font-size: 14px; gap: 8px; }
    .calendar-footer .ms-auto { margin-left: 0 !important; }
    .passenger-row { padding: 19px 0; }
    .passenger-row h3 { font-size: 16px; }
    .passenger-row p { font-size: 14px; }
    .passenger-counter { gap: 16px; }
    .counter-button { width: 38px; height: 38px; }
    .passenger-done { height: 50px; }
}

@media (max-width: 359.98px) {
    .journey-brand { font-size: 21px; }
    .journey-brand-mark { width: 32px; height: 32px; }
    .journey-header { padding-inline: 14px; }
    .itinerary-card .card-body { padding-inline: 16px; }
    .itinerary-card h1 { font-size: 24px; }
    .airport-name { max-width: 170px; }
    .passenger-counter { gap: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
    .form-control, .form-check-label, .continue-button .icon { transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
    @keyframes little-celebration { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: var(--x) var(--y); rotate: var(--spin); } }
}
@media (prefers-reduced-motion: reduce) { .journey-confetti { display: none; } }
