/* /dummy-ticket landing (src/views/pages/dummyTicket.ejs).
   Main-page foundations (main_page.css: .container, .title_h2, fonts) plus an
   airline-style hero: one white search bar, fields in a row, button at the end.
   The bar restyles the shared generator form partial — same DOM and JS as
   /fake, only the CSS under .flight-search differs. */

:root {
    --kf-blue: #4450F2;
    --kf-ink: #141414;
    --kf-lavender: #EEF0FF;
    --kf-grad: linear-gradient(138deg, #9096EA 5%, #FF7EBC 100%);
}

/* ── Frosted header over the hero ── */
.dummy-page .pages__header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    padding: 18px 0;
    background: rgba(7, 11, 36, .1);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

@media (min-width: 1024px) {
    .dummy-page .pages__header .main-menu__link {
        color: #fff;
    }

    .dummy-page .pages__header .main-menu__link:hover {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

    .dummy-page .pages__header .logo img {
        filter: brightness(0) invert(1);
    }

    .dummy-page .pages__header .link-new {
        background-color: #fff;
    }

    /* The Tickets group is marked active here (Dummy tickets lives in it);
       the light-grey active fill of header.css would hide the white label. */
    .dummy-page .pages__header .main-menu__item--group.active > .main-menu__toggle,
    .dummy-page .pages__header .main-menu__item--group.is-open > .main-menu__toggle {
        background: rgba(255, 255, 255, .14);
        color: #fff;
    }

    .dummy-page .pages__header .main-menu__caret {
        filter: brightness(0) invert(1);
        opacity: .8;
    }

    /* the dropdown stays a white panel, so its links keep dark text */
    .dummy-page .pages__header .main-menu__sublink {
        color: #141414;
    }

    .dummy-page .pages__header .main-menu__sublink.active {
        color: #4450F2;
    }
}

@media (max-width: 1023px) {
    .dummy-page .pages__header {
        position: fixed;
        padding: 15px 0;
        background: rgba(255, 255, 255, .82);
        border-bottom: .5px solid rgba(146, 153, 162, .6);
    }
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 150px 0 120px;
    /* deep navy at the top fading into the white page below */
    background: linear-gradient(180deg, #070B24 0%, #0E1650 34%, #2C3D9E 62%, #B7C0F3 86%, #FFFFFF 100%);
    color: #fff;
}

.hero .container {
    position: relative;
    margin-bottom: 0;
}

/* The globe is clipped by its own layer, not by .hero:
   the airport suggestions have to drop out of the hero over the stats. */
.hero__sky {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__globe {
    position: absolute;
    top: -260px;
    left: 50%;
    width: 1100px;
    height: 1100px;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero__eyebrow {
    display: inline-block;
    margin: 0 0 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}

.hero__inner {
    text-align: center;
}

.hero__title {
    max-width: 960px;
    margin: 0 auto 20px;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 60px;
    line-height: 68px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}

.hero__desc {
    max-width: 680px;
    margin: 0 auto 36px;
    font-size: 19px;
    line-height: 30px;
    color: rgba(255, 255, 255, .78);
}

.hero__notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 36px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.hero__notes li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    line-height: 24px;
    color: rgba(255, 255, 255, .85);
}

.hero__notes li:before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 12px;
    height: 7px;
    border-left: 2px solid #35C658;
    border-bottom: 2px solid #35C658;
    transform: rotate(-45deg);
}

/* ── Stats row ── */
.stats .container {
    margin-bottom: 0;
}

.stats__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 0 24px;
}

.stat {
    padding: 8px 16px;
    text-align: center;
    border-left: 1px solid #E6E7F5;
}

.stat:first-child {
    border-left: none;
}

.stat__num {
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: var(--kf-ink);
}

.stat__label {
    margin-top: 2px;
    font-size: 14px;
    line-height: 20px;
    color: #9299A2;
}

/* ── Tabs (Auto Search / Manual) ── */
.flight-search .generate__tabs {
    display: inline-flex;
    margin: 0 auto 20px;
    padding: 4px;
    background: rgba(255, 255, 255, .16);
    border-radius: 14px;
}

.flight-search {
    text-align: center;
}

.flight-search .generate__tab {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.flight-search .generate__tab--active {
    background: #fff;
    color: #141414;
}

.flight-search .generate__tab-content {
    display: none;
    text-align: left;
}

.flight-search .generate__tab-content--active {
    display: block;
}

/* ── Search bar ── */
.flight-search form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.flight-search form {
    background: #fff;
    border-radius: 14px;
}

.flight-search #tab-1 form {
    border-radius: 40px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.flight-search .generate_row {
    display: contents;
}

.flight-search .generate__label {
    display: flex;
    flex: 1 1 150px;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 10px 16px;
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: text;
}

.flight-search .generate__label:last-of-type {
    border-right: none;
}

.flight-search .generate__input {
    width: 100%;
    margin-top: 2px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Inter", Roboto, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #141414;
}

.flight-search .generate__input::placeholder {
    color: #9299A2;
    font-weight: 400;
}

.flight-search .generate__label.error-label {
    border: 1px solid #f44336;
}

.flight-search .generate__label .error {
    left: 0;
    background: #fff;
    border-radius: 4px;
}

.flight-search .generate__label .error:not(:empty) {
    padding: 2px 6px;
}

/* Clear button inside the Return cell */
.flight-search .generate__label--return {
    padding-right: 40px;
}

.flight-search .generate__clear {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #EEEEEE;
    color: #141414;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

.flight-search .generate__clear:hover {
    background: #4450F2;
    color: #fff;
}

/* Submit at the end of the Auto Search bar */
.flight-search #tab-1 .generate__submit {
    flex: 0 0 auto;
    margin: 6px;
    padding: 0 36px;
    border: none;
    border-radius: 34px;
    background: #141414;
    color: #fff;
    font-family: "Inter", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s;
}

.flight-search #tab-1 .generate__label {
    border-bottom: none;
}

.flight-search #tab-1 .generate__label {
    padding: 12px 24px;
}

.flight-search #tab-1 .generate__label:first-child {
    border-radius: 40px 0 0 40px;
}

.flight-search .generate__submit:hover {
    background: #2b2b2b;
}

/* ── Manual: one bar per flight, actions underneath ── */
.flight-search #tab-2 form {
    background: transparent;
}

.flight-search #tab-2 form > .generate_row,
.flight-search #tab-2 .flight-block {
    display: contents;
}

/* The first flight's fields form the first bar; the caption only matters once
   a second flight exists. */
.flight-search #tab-2 form > .generate__flight-label {
    display: none;
}

.flight-search #tab-2 form:has(.flight-block) > .generate__flight-label {
    display: block;
}

.flight-search #flight-list-manual {
    display: contents;
}

.flight-search #tab-2 form > .generate_row .generate__label,
.flight-search #tab-2 .flight-block .generate__label {
    background: #fff;
}

/* Bars are drawn per flight through the labels' own borders, so the wrapper
   stays transparent and the rounded corners land on the cells. */
.flight-search #tab-2 form > .generate_row:first-of-type .generate__label:first-child { border-radius: 14px 0 0 14px; }
.flight-search #tab-2 form > .generate_row:nth-of-type(4) .generate__label:last-child { border-radius: 0 14px 14px 0; border-right: none; }

.flight-search .flight-block hr {
    display: none;
}

.flight-search .generate__flight-label {
    flex: 0 0 100%;
    margin: 16px 0 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

.flight-search .remove-flight {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

.flight-search .flight-block > .generate_row:first-of-type .generate__label:first-child { border-radius: 14px 0 0 14px; }
.flight-search .flight-block > .generate_row:nth-of-type(4) .generate__label:last-child { border-radius: 0 14px 14px 0; border-right: none; }

.flight-search #tab-2 .add-flight {
    flex: 0 0 auto;
    width: auto;
    margin: 16px 0 0;
    padding: 0 20px;
    height: 52px;
    border: 1px dashed rgba(255, 255, 255, .7);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.flight-search #tab-2 .add-flight:hover {
    background: rgba(255, 255, 255, .12);
}

.flight-search #tab-2 form > div:last-child {
    flex: 0 0 auto;
    margin: 16px 0 0 auto;
}

.flight-search #tab-2 .generate__submit {
    height: 52px;
    padding: 0 40px;
    border: none;
    border-radius: 12px;
    background: #141414;
    color: #fff;
    font-family: "Inter", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s;
}

/* Airport / airline suggestions drop below the cell */
.flight-search .generate__label .list {
    top: calc(100% + 6px);
    text-align: left;
    color: #141414;
    font-weight: 400;
}

/* ── Content sections ── */
.dummy-crumbs {
    margin: 32px auto 0;
}

.dummy-crumbs .breadcrumb-container,
.dummy-crumbs .breadcrumb-container ol {
    padding: 0;
    margin-bottom: 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 40px;
}

.section-head .title_h2 {
    margin-bottom: 16px;
}

.title_h2 {
    letter-spacing: -.02em;
}

.dummy-text {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 30px;
    color: #3A3D46;
}

/* Two-column intro with the sample ticket */
.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: center;
}

.split__media {
    padding: 24px;
    background: var(--kf-lavender);
    border-radius: 24px;
}

.split__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(20, 20, 20, .14);
    transform: rotate(-2deg);
}

/* Bento grid */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento__card {
    position: relative;
    padding: 32px 28px 28px;
    background: var(--kf-lavender);
    border-radius: 24px;
    transition: transform .2s, box-shadow .2s;
}

.bento__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(68, 80, 242, .14);
}

.bento__card--wide {
    grid-column: span 2;
}

.bento__card--accent {
    background: var(--kf-ink);
    color: #fff;
}


.bento__num {
    margin-bottom: 40px;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--kf-blue);
}

.bento__card--accent .bento__num {
    color: #FF7EBC;
}

.bento__title {
    margin-bottom: 10px;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: var(--kf-ink);
}

.bento__card p {
    margin: 0;
    font-size: 16px;
    line-height: 26px;
    color: #3A3D46;
}

.bento__card--accent .bento__title,
.bento__card--accent p {
    color: #fff;
}

/* Dark steps block (same treatment as the tariff block on the main page) */
.steps {
    padding: 72px 64px;
    background: var(--kf-ink);
    border-radius: 32px;
}

.steps .title_h2 {
    margin-bottom: 48px;
    color: #fff;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: var(--kf-grad);
    color: #fff;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.step__title {
    margin-bottom: 10px;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: #fff;
}

.step p {
    margin: 0;
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, .7);
}

/* Use cases with photos */
.cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case {
    overflow: hidden;
    border-radius: 24px;
    background: #0E1030;
    border: 1px solid #0E1030;
    transition: transform .2s, box-shadow .2s;
}

.case:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(68, 80, 242, .3);
}

.case__img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* Blend the render's own background into the card so the seam never shows */
.case__img:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 56px;
    background: linear-gradient(180deg, rgba(14, 16, 48, 0) 0%, #0E1030 100%);
}

.case__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case__body {
    padding: 24px 24px 28px;
}

.case__title {
    margin-bottom: 8px;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    color: #fff;
}

.case__body p {
    margin: 0;
    font-size: 15px;
    line-height: 25px;
    color: rgba(255, 255, 255, .7);
}

/* Cross-links */
.links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.links__item {
    position: relative;
    display: block;
    height: 100%;
    padding: 28px 56px 28px 28px;
    border: 1px solid #E6E7F5;
    border-radius: 24px;
    color: var(--kf-ink);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.links__item:hover {
    border-color: var(--kf-blue);
    color: var(--kf-ink);
    text-decoration: none;
    transform: translateY(-2px);
}

.links__title {
    display: block;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.links__sub {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 22px;
    color: #6b7280;
}

.links__arrow {
    position: absolute;
    top: 28px;
    right: 24px;
    font-size: 22px;
    color: var(--kf-blue);
    transition: transform .2s;
}

.links__item:hover .links__arrow {
    transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .hero__title {
        font-size: 44px;
        line-height: 52px;
    }

    .stats__inner {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }

    .stat:nth-child(3) {
        border-left: none;
    }

    .split,
    .bento,
    .steps__grid,
    .cases,
    .links {
        grid-template-columns: 1fr;
    }

    .bento__card--wide {
        grid-column: auto;
    }

    .steps {
        padding: 48px 28px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 96px 0 80px;
    }

    .hero__globe {
        top: -120px;
        width: 720px;
        height: 720px;
    }

    .hero__title {
        font-size: 34px;
        line-height: 42px;
    }

    .hero__desc {
        font-size: 16px;
        line-height: 24px;
    }

    .flight-search form {
        flex-direction: column;
    }

    .flight-search .generate__label {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }

    .flight-search #tab-1 form {
        border-radius: 20px;
    }

    .flight-search #tab-1 .generate__label:first-child {
        border-radius: 20px 20px 0 0;
    }

    .flight-search #tab-1 .generate__label {
        border-bottom: 1px solid #E5E7EB;
    }

    .flight-search #tab-1 .generate__submit {
        height: 52px;
        margin: 10px;
        border-radius: 26px;
    }

    .flight-search #tab-2 form > .generate_row:first-of-type .generate__label:first-child { border-radius: 14px 14px 0 0; }
    .flight-search #tab-2 form > .generate_row:nth-of-type(4) .generate__label:last-child { border-radius: 0 0 14px 14px; }
    .flight-search .flight-block > .generate_row:first-of-type .generate__label:first-child { border-radius: 14px 14px 0 0; }
    .flight-search .flight-block > .generate_row:nth-of-type(4) .generate__label:last-child { border-radius: 0 0 14px 14px; }

    .flight-search #tab-2 .add-flight,
    .flight-search #tab-2 form > div:last-child {
        margin: 12px 0 0;
    }

    .flight-search #tab-2 .generate__submit {
        width: 100%;
    }

    .hero__notes {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        border-left: none;
    }

    .title_h2 {
        font-size: 30px;
        line-height: 38px;
    }

    .split__media img {
        transform: none;
    }
}
