.ticket-prices-page {
    max-width: 1080px;
    margin: -1rem auto 2rem;
    padding: 0 clamp(.75rem, 2.5vw, 1.5rem);
    color: #102b49;
}

.ticket-prices-hero {
    margin: 0 calc(clamp(.75rem, 2.5vw, 1.5rem) * -1) 1.5rem;
    padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
    color: #fff;
    background: linear-gradient(120deg, #123f5c, #0871a5);
}

.ticket-prices-hero__eyebrow,
.ticket-price-result__eyebrow {
    margin: 0 0 .45rem;
    color: #cce8fa;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ticket-prices-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
}

.ticket-prices-hero > p:last-child {
    max-width: 650px;
    margin: .8rem 0 0;
    color: rgba(255, 255, 255, .94);
    font-size: 1.05rem;
    line-height: 1.6;
}

.ticket-price-search,
.ticket-price-result,
.ticket-price-empty,
.ticket-price-help {
    margin-bottom: 1.5rem;
    padding: clamp(1.1rem, 3vw, 1.75rem);
    border: 1px solid #e0e8ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16, 43, 73, .07);
}

.ticket-price-search__heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.2rem;
}

.ticket-price-search__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 50%;
    color: #0569b7;
    background: #e8f4fc;
    font-size: 1.5rem;
    font-weight: 700;
}

.ticket-price-search h2,
.ticket-price-result h2,
.ticket-price-popular h2,
.ticket-price-help h2,
.ticket-price-empty h2 {
    margin: 0;
    color: #102b49;
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    font-weight: 800;
}

.ticket-price-search__heading p {
    margin: .25rem 0 0;
    color: #536a7d;
}

.ticket-price-search__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: end;
    gap: .9rem;
}

.ticket-price-search__field label {
    display: block;
    margin-bottom: .4rem;
    color: #27445d;
    font-weight: 700;
}

.ticket-price-search__field select {
    width: 100%;
    min-height: 46px;
    padding: .6rem .75rem;
    border: 1px solid #cbd8e2;
    border-radius: 7px;
    color: #102b49;
    background: #fff;
}

.ticket-price-search__field select:focus-visible,
.ticket-price-search__button:focus-visible,
.ticket-price-result__schedule-link:focus-visible,
.ticket-price-famous-table tbody th a:focus-visible {
    outline: 3px solid rgba(5, 105, 183, .35);
    outline-offset: 2px;
}

.ticket-price-search__arrow {
    padding-bottom: .65rem;
    color: #648096;
    font-size: 1.3rem;
}

.ticket-price-search__button {
    min-height: 46px;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #0569b7;
    font-weight: 800;
    white-space: nowrap;
}

.ticket-price-search__button:hover {
    background: #034f8e;
}

.ticket-price-result__heading,
.ticket-price-popular__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ticket-price-result__eyebrow {
    color: #0871a5;
}

.ticket-price-result h2 {
    line-height: 1.3;
}

.ticket-price-result__distance {
    margin: .4rem 0 0;
    color: #536a7d;
}

.ticket-price-result__badge {
    padding: .45rem .7rem;
    border-radius: 999px;
    color: #075b45;
    background: #e7f5ef;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.ticket-price-result__fares {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1.2rem;
}

.ticket-fare-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #dce8f0;
    border-radius: 9px;
    background: #f7fbfe;
}

.ticket-fare-card__class {
    color: #425e75;
    font-weight: 700;
}

.ticket-fare-card strong {
    color: #0569b7;
    font-size: 1.2rem;
    white-space: nowrap;
}

.ticket-price-result__note {
    margin: 1rem 0 .75rem;
    color: #536a7d;
    font-size: .92rem;
}

.ticket-price-result__schedule-link {
    color: #0569b7;
    font-weight: 800;
    text-decoration: none;
}

.ticket-price-result__schedule-link:hover {
    color: #034f8e;
    text-decoration: underline;
}

.ticket-price-empty {
    border-left: 4px solid #e3aa32;
}

.ticket-price-empty p,
.ticket-price-help p {
    margin: .6rem 0 0;
    color: #536a7d;
    line-height: 1.65;
}

.ticket-price-popular {
    margin-bottom: 1.5rem;
}

.ticket-price-popular__heading {
    align-items: end;
    margin-bottom: .9rem;
}

.ticket-price-famous-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e8ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 43, 73, .05);
}

.ticket-price-famous-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.ticket-price-famous-table th,
.ticket-price-famous-table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid #e6edf2;
    text-align: left;
}

.ticket-price-famous-table thead th {
    color: #27445d;
    background: #f2f7fa;
    font-size: .9rem;
}

.ticket-price-famous-table tbody tr:last-child th,
.ticket-price-famous-table tbody tr:last-child td {
    border-bottom: 0;
}

.ticket-price-famous-table tbody th {
    font-weight: 700;
}

.ticket-price-famous-table tbody th a {
    color: #0569b7;
    text-decoration: none;
}

.ticket-price-famous-table tbody th a:hover,
.ticket-price-famous-table tbody th a:focus-visible {
    color: #034f8e;
    text-decoration: underline;
}

.ticket-price-famous-table tbody td {
    color: #102b49;
    font-weight: 700;
}

.ticket-price-help {
    background: #f7fbfe;
}

@media (max-width: 767.98px) {
    .ticket-prices-hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .ticket-price-search__form {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .ticket-price-search__arrow {
        display: none;
    }

    .ticket-price-search__button {
        width: 100%;
    }

}

@media (max-width: 520px) {
    .ticket-price-result__heading,
    .ticket-price-popular__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-price-result__fares {
        grid-template-columns: 1fr;
    }

    .ticket-fare-card {
        align-items: flex-start;
        flex-direction: column;
        gap: .35rem;
    }
}

.ticket-prices-page {
    max-width: 1160px;
    margin-top: -1rem;
    color: #10233f;
}

.ticket-prices-hero {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 1.5rem max(1.25rem, calc((100vw - 1160px) / 2 + clamp(.75rem, 2.5vw, 1.5rem)));
    background: linear-gradient(90deg, rgba(7, 45, 80, .96) 0%, rgba(7, 76, 126, .88) 46%, rgba(7, 76, 126, .08) 100%), url('../img/Sri%20Lanka%20Railways%20Ticket%20Stack.webp') center 53% / cover no-repeat;
}

.ticket-prices-hero__eyebrow {
    margin-bottom: .35rem;
    color: #d3eaff;
    font-size: .75rem;
    letter-spacing: .16em;
}

.ticket-prices-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.ticket-prices-hero > p:last-child {
    max-width: 560px;
    margin-top: .45rem;
    font-size: .94rem;
    line-height: 1.45;
}

.ticket-price-search,
.ticket-price-result,
.ticket-price-empty {
    margin-bottom: 1.2rem;
    padding: clamp(.85rem, 2vw, 1.15rem);
    border: 1px solid #dce8f6;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(18, 68, 115, .09);
}

.ticket-price-search {
    position: relative;
    margin-top: -1rem;
    padding: .8rem;
}

.ticket-price-search::before {
    position: absolute;
    z-index: 0;
    inset: .65rem;
    border-radius: 11px;
    background: linear-gradient(115deg, #f1f7ff, #e6f1ff);
    content: '';
}

.ticket-price-search > * {
    position: relative;
}

.ticket-price-search__heading {
    gap: .75rem;
    margin: .15rem 0 .75rem;
    padding: 0 .3rem;
}

.ticket-price-search__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 9px;
    background: #dcecff;
    font-size: 1.8rem;
    transform: rotate(-20deg);
}

.ticket-price-search h2,
.ticket-price-result h2,
.ticket-price-popular h2,
.ticket-price-help h2,
.ticket-price-empty h2 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    letter-spacing: -.025em;
}

.ticket-price-search__heading p {
    margin-top: .15rem;
    color: #31445e;
    font-size: .88rem;
}

.ticket-price-search__form {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) auto;
    gap: .65rem;
    padding: 0 .1rem .1rem;
}

.ticket-price-search__field label {
    margin-bottom: .28rem;
    color: #12233d;
    font-size: .83rem;
}

.ticket-price-search__field select {
    min-height: 40px;
    padding: .45rem .65rem;
    border-color: #bfcee0;
    border-radius: 7px;
    font-size: .86rem;
}

.ticket-price-search__arrow {
    display: grid;
    width: 28px;
    height: 28px;
    align-self: end;
    place-items: center;
    margin-bottom: .35rem;
    padding: 0;
    border-radius: 50%;
    color: #075db4;
    background: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.ticket-price-search__button {
    min-height: 40px;
    padding: .5rem 1rem;
    border-radius: 7px;
    background: #075fc2;
    font-size: .86rem;
}

.ticket-price-search__button span {
    margin-right: .25rem;
    font-size: 1.1rem;
}

.ticket-price-result {
    padding: clamp(1rem, 2.5vw, 1.4rem);
    border: 0;
    background: linear-gradient(115deg, #eaf4ff, #d9eaff);
    box-shadow: none;
}

.ticket-price-result__eyebrow {
    margin-bottom: .25rem;
    color: #075fc2;
    font-size: .7rem;
}

.ticket-price-result__badge {
    color: #075fc2;
    background: #fff;
}

.ticket-price-result__fares {
    gap: 0;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, .78);
}

.ticket-fare-card {
    padding: .7rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ticket-fare-card + .ticket-fare-card {
    border-left: 1px solid #cbd9ea;
}

.ticket-fare-card__class {
    color: #273a56;
    font-size: .85rem;
}

.ticket-fare-card strong {
    color: #10233f;
    font-size: 1.05rem;
}

.ticket-price-result__note {
    margin: .8rem 0 .55rem;
    font-size: .84rem;
}

.ticket-price-result__schedule-link {
    font-size: .86rem;
}

.ticket-price-popular {
    margin-bottom: 1.2rem;
}

.ticket-price-popular__heading {
    margin: 0 0 .65rem;
}

.ticket-price-popular__heading .ticket-price-result__eyebrow {
    display: none;
}

.ticket-price-popular h2::before {
    display: inline-block;
    width: .85em;
    height: .85em;
    margin-right: .45rem;
    background: linear-gradient(to top, #075fc2 0 36%, transparent 36%), linear-gradient(to top, #075fc2 0 68%, transparent 68%), linear-gradient(to top, #075fc2 0 100%, transparent 100%);
    background-position: left bottom, center bottom, right bottom;
    background-repeat: no-repeat;
    background-size: 25% 100%;
    content: '';
    vertical-align: -.04em;
}

.ticket-price-famous-table-wrap {
    border-color: #d8e3f0;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(16, 43, 73, .04);
}

.ticket-price-famous-table {
    min-width: 560px;
}

.ticket-price-famous-table th,
.ticket-price-famous-table td {
    padding: .45rem .8rem;
    border-bottom-color: #e4ebf3;
    font-size: .84rem;
}

.ticket-price-famous-table thead th {
    color: #17283f;
    background: #edf3fa;
    font-weight: 800;
}

.ticket-price-famous-table tbody th a {
    color: #075bb3;
}

.ticket-price-famous-table tbody td {
    color: #17283f;
    font-weight: 600;
}

.ticket-price-help {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0;
    background: transparent;
}

.ticket-price-help__card {
    min-width: 0;
    padding: .9rem 1rem;
    border: 1px solid #dce8f6;
    border-radius: 12px;
    background: linear-gradient(120deg, #f6faff, #edf5ff);
}

.ticket-price-help__card h2 {
    margin-bottom: .55rem;
    font-size: 1rem;
}

.ticket-price-help__card h2 span {
    margin-right: .35rem;
    color: #075fc2;
}

.ticket-price-help__card ul {
    display: grid;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticket-price-help__card li {
    color: #1d2b40;
    font-size: .82rem;
}

.ticket-price-help__card li::before {
    margin-right: .45rem;
    color: #199447;
    content: '✓';
    font-weight: 800;
}

.ticket-price-help__card dl {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
}

.ticket-price-help__card dl div {
    display: grid;
    grid-template-columns: minmax(115px, .8fr) minmax(0, 1.5fr);
    gap: .5rem;
    padding: .35rem .5rem;
    background: rgba(255, 255, 255, .78);
}

.ticket-price-help__card dl div + div {
    border-top: 1px solid #e4ebf3;
}

.ticket-price-help__card dt,
.ticket-price-help__card dd {
    margin: 0;
    color: #1d2b40;
    font-size: .76rem;
}

.ticket-price-help__card dt {
    font-weight: 700;
}

.ticket-price-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: 0 0 1rem;
    padding: .75rem .9rem;
    border-radius: 9px;
    color: #20344f;
    background: #eaf3ff;
    font-size: .78rem;
    line-height: 1.5;
}

.ticket-price-disclaimer > span {
    color: #075fc2;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .ticket-price-search__form {
        grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    }

    .ticket-price-search__button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .ticket-price-help {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ticket-prices-hero {
        min-height: 170px;
        background-position: 63% center;
    }

    .ticket-price-search__form {
        grid-template-columns: 1fr;
    }

    .ticket-price-search__arrow {
        display: none;
    }

    .ticket-price-search__button {
        grid-column: auto;
    }

    .ticket-price-result__fares {
        grid-template-columns: 1fr;
    }

    .ticket-fare-card + .ticket-fare-card {
        border-top: 1px solid #cbd9ea;
        border-left: 0;
    }

    .ticket-fare-card {
        flex-direction: row;
        align-items: center;
    }

    .ticket-price-help__card dl div {
        grid-template-columns: 1fr;
        gap: .15rem;
    }
}
