/* GENERAL SETTINGS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #f5f6f8;
    color: #172033;
}

/* HEADER */
.header {
    width: 100%;
    padding: 20px 7%;
    background: #07182e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: #e6ad45;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
}

.navbar a:hover {
    color: #e6ad45;
}

.header-btn,
.hero-btn {
    background: #e6ad45;
    color: #07182e;
    padding: 13px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* HERO SECTION */
.hero {
    min-height: 570px;
    padding: 100px 7%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #07182e;
}

.hero-slideshow,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: hero-photo-cycle 30s infinite;
}

.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: -5s; }
.hero-slideshow img:nth-child(3) { animation-delay: -10s; }
.hero-slideshow img:nth-child(4) { animation-delay: -15s; }
.hero-slideshow img:nth-child(5) { animation-delay: -20s; }
.hero-slideshow img:nth-child(6) { animation-delay: -25s; }

@keyframes hero-photo-cycle {
    0%, 100% { opacity: 0; }
    3%, 16% { opacity: 1; }
    20% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slideshow img {
        animation: none;
    }

    .hero-slideshow img:first-child {
        opacity: 1;
    }
}

.hero-shade {
    background: linear-gradient(90deg, rgba(7,24,46,.94) 5%, rgba(7,24,46,.58) 70%, rgba(7,24,46,.35));
}

.hero-content {
    max-width: 600px;
    color: white;
    position: relative;
    z-index: 1;
}

.welcome {
    color: #e6ad45;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* BOOKING SECTION */
.booking {
    background: white;
    width: 86%;
    margin: -55px auto 60px;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,.10);
    position: relative;
}

.booking h2,
.about h2,
.routes h2,
.contact h2 {
    font-size: 30px;
    margin-bottom: 25px;
    color: #07182e;
}

#booking-form {
    display: block;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

#booking-form .next-button,
#booking-form .print-ticket-button {
    background: #07182e;
    color: white;
    padding: 14px 22px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#booking-form .next-button:hover,
#booking-form .print-ticket-button:hover {
    background: #e6ad45;
    color: #07182e;
}

.booking-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}

.booking-heading h2 {
    color: #07182e;
    font-size: 30px;
}

.booking-eyebrow {
    margin: 0 0 8px;
    color: #a56e12;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: bold;
}

.booking-demo-note {
    max-width: 440px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff5dc;
    color: #675222;
    font-size: 13px;
    line-height: 1.5;
}

.booking-progress {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 0 0 30px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e6eaf0;
}

.booking-progress li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7b8491;
}

.booking-progress li span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf0f4;
    color: #667080;
    font-size: 13px;
    font-weight: bold;
}

.booking-progress li.active span,
.booking-progress li.complete span {
    background: #07182e;
    color: white;
}

.booking-progress li.active small,
.booking-progress li.complete small {
    color: #07182e;
    font-weight: bold;
}

.booking-panel h3 {
    margin-bottom: 20px;
    color: #07182e;
    font-size: 22px;
}

.step-help {
    margin: -8px 0 20px;
    color: #687385;
    font-size: 14px;
}

.booking-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.booking-field {
    display: grid;
    gap: 8px;
    color: #273247;
    font-size: 14px;
    font-weight: bold;
}

.booking-field input,
.booking-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d7dce4;
    border-radius: 6px;
    background: white;
    color: #172033;
    font-size: 15px;
}

.booking-field input:focus,
.booking-field select:focus {
    outline: 2px solid #e6ad45;
    outline-offset: 1px;
}

.bus-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bus-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid #d7dce4;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.bus-option:has(input:checked) {
    border-color: #e6ad45;
    box-shadow: 0 0 0 2px rgba(230,173,69,.2);
}

.bus-option input {
    margin-top: 3px;
    accent-color: #07182e;
}

.bus-option-details strong,
.bus-option-details small {
    display: block;
}

.bus-option-details small {
    margin-top: 6px;
    color: #687385;
    line-height: 1.4;
}

.seat-legend {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    color: #586273;
    font-size: 13px;
}

.seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.seat-legend i {
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 1px solid #aeb7c4;
    border-radius: 4px;
    background: white;
}

.seat-legend i.selected-key {
    border-color: #07182e;
    background: #07182e;
}

.seat-map {
    display: grid;
    justify-content: center;
    gap: 8px;
    max-width: 390px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    background: #f8f9fb;
}

.seat-row {
    display: grid;
    grid-template-columns: repeat(2, 50px) 28px repeat(3, 50px);
    gap: 8px;
}

.seat-aisle {
    width: 28px;
}

#booking-form .seat-button {
    min-height: 42px;
    border: 1px solid #c8d0da;
    border-radius: 6px;
    background: white;
    color: #172033;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

#booking-form .seat-button:hover,
#booking-form .seat-button.selected {
    border-color: #07182e;
    background: #07182e;
    color: white;
}

.seat-message {
    min-height: 24px;
    margin: 14px 0 0;
    color: #586273;
    text-align: center;
}

.passenger-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.payment-pending-box {
    padding: 24px;
    border: 1px solid #edd699;
    border-radius: 10px;
    background: #fff8e8;
}

.pending-badge {
    display: inline-block;
    margin-bottom: 10px;
    color: #785500;
    font-weight: bold;
}

.payment-pending-box p {
    margin: 0;
    color: #5e5541;
    line-height: 1.7;
}

.booking-error {
    min-height: 22px;
    margin: 18px 0 0;
    color: #a32626;
    font-size: 14px;
}

.booking-controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

#booking-form .back-button,
#booking-form .next-button,
#booking-form .print-ticket-button {
    min-height: 46px;
}

#booking-form .back-button {
    padding: 12px 20px;
    border: 1px solid #cbd2dc;
    border-radius: 5px;
    background: white;
    color: #172033;
    cursor: pointer;
    font-weight: bold;
}

.ticket-card {
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 26px;
    border: 1px solid #dce2ea;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(7,24,46,.08);
}

.ticket-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #dce2ea;
    color: #07182e;
}

.ticket-status {
    color: #8a6200;
    font-size: 12px;
    font-weight: bold;
}

.ticket-code {
    margin: 16px 0;
    color: #586273;
}

.ticket-qr-section {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 18px auto 22px;
    color: #586273;
    font-size: 12px;
    text-align: center;
}

.ticket-qr {
    display: grid;
    width: 148px;
    min-height: 148px;
    place-items: center;
    padding: 8px;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    background: #fff;
    color: #07182e;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ticket-qr img,
.ticket-qr canvas {
    display: block;
    max-width: 100%;
}

.ticket-qr-section p {
    margin: 0;
}

.ticket-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ticket-details p {
    margin: 0;
}

.ticket-details span,
.ticket-details strong {
    display: block;
}

.ticket-details span {
    margin-bottom: 5px;
    color: #748092;
    font-size: 12px;
}

.ticket-details strong {
    color: #172033;
}

.ticket-disclaimer {
    margin: 20px 0 0;
    padding-top: 15px;
    border-top: 1px solid #e7ebf0;
    color: #77521a;
    font-size: 13px;
    line-height: 1.6;
}

#booking-form .print-ticket-button {
    display: block;
    margin: 0 auto;
}

/* CONTENT SECTIONS */
.about,
.routes,
.contact {
    padding: 65px 8%;
    text-align: center;
}

.about p,
.routes p,
.contact p {
    max-width: 750px;
    margin: 12px auto;
    line-height: 1.8;
    color: #606b7a;
}

.routes {
    position: relative;
    isolation: isolate;
    background: transparent;
}

.routes::before,
.routes::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.routes::before {
    inset: -10px;
    background: url("assets/destinations-background.jpeg") center/cover no-repeat;
    filter: blur(9px);
    transform: scale(1.02);
    z-index: -2;
}

.routes::after {
    background: rgba(233, 237, 243, .88);
}

.about {
    position: relative;
    isolation: isolate;
    background: transparent;
}

.about::before,
.about::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.about::before {
    inset: -10px;
    background: url("assets/destinations-background.jpeg") center/cover no-repeat;
    filter: blur(9px);
    transform: scale(1.02);
    z-index: -2;
}

.about::after {
    background: rgba(245, 246, 248, .88);
}

.about-question-grid {
    max-width: 1100px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    text-align: left;
}

.about-question-card {
    padding: 22px;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7,24,46,.08);
}

.about-question-card h3 {
    min-height: 48px;
    margin-bottom: 12px;
    color: #07182e;
    font-size: 18px;
    line-height: 1.4;
}

.about-answer-lines {
    display: grid;
    grid-template-rows: repeat(8, 28px);
}

.about-answer-lines span {
    display: block;
    border-bottom: 1px solid #dce2ea;
}

.contact {
    position: relative;
    isolation: isolate;
    background: transparent;
}

.contact::before,
.contact::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.contact::before {
    inset: -10px;
    background: url("assets/destinations-background.jpeg") center/cover no-repeat;
    filter: blur(9px);
    transform: scale(1.02);
    z-index: -2;
}

.contact::after {
    background: rgba(245, 246, 248, .88);
}

.route-grid,
.contact-grid {
    max-width: 1100px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: left;
}

.route-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: 18px;
}

.route-item:nth-child(even) img {
    order: 2;
}

.route-item img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    max-height: 270px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(7,24,46,.12);
}

.route-card,
.contact-card {
    display: block;
    padding: 24px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 8px 24px rgba(7,24,46,.08);
}

.route-card h3 {
    color: #07182e;
    margin-bottom: 12px;
    font-size: 19px;
}

.route-card p {
    margin: 0;
    color: #606b7a;
    line-height: 1.7;
}

.route-note {
    margin-top: 24px !important;
    font-size: 14px;
}

.contact-card {
    color: #172033;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(7,24,46,.14);
}

.contact-card strong,
.contact-card span {
    display: block;
}

.contact-card strong {
    color: #07182e;
    margin-bottom: 8px;
}

.contact-card span {
    color: #606b7a;
}

/* FOOTER */
.footer {
    background: #07182e;
    color: white;
    text-align: center;
    padding: 35px 15px;
    line-height: 2;
}

.footer h3 {
    color: #e6ad45;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 900px) {
    .header {
        flex-wrap: wrap;
        gap: 20px;
    }

    .navbar {
        order: 3;
        width: 100%;
        text-align: center;
    }

    #booking-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-question-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .about,
    .routes,
    .contact {
        overflow: hidden;
    }

    .hero {
        min-height: 450px;
        padding: 70px 7%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .booking {
        width: 92%;
        padding: 22px;
    }

    #booking-form {
        grid-template-columns: 1fr;
    }

    .navbar a {
        display: inline-block;
        margin: 6px;
    }

    .header-btn {
        padding: 10px 14px;
    }

    .route-grid {
        gap: 18px;
    }

    .route-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .route-item img,
    .route-item:nth-child(even) img {
        order: 0;
        height: 190px;
        min-height: 0;
        border-radius: 10px 10px 0 0;
    }

    .route-item .route-card {
        border-radius: 0 0 10px 10px;
    }

    .booking-progress {
        gap: 3px;
    }

    .booking-progress li {
        flex-direction: column;
        gap: 5px;
    }

    .booking-progress li span {
        width: 25px;
        height: 25px;
    }

    .booking-progress li small {
        font-size: 10px;
    }

    .booking-fields,
    .bus-options,
    .passenger-list,
    .ticket-details {
        grid-template-columns: 1fr;
    }

    .seat-row {
        grid-template-columns: repeat(2, 42px) 22px repeat(3, 42px);
        gap: 6px;
    }

    .seat-aisle {
        width: 22px;
    }

    .seat-map {
        padding: 15px 8px;
    }

    .ticket-card {
        padding: 18px;
    }
}

@page {
    size: A4 portrait;
    margin: 8mm;
}

@media print {
    html,
    body {
        width: 100%;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: white;
    }

    body * {
        visibility: hidden !important;
    }

    .ticket-card,
    .ticket-card * {
        visibility: visible !important;
    }

    .ticket-card {
        position: fixed;
        inset: 0 auto auto 0;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    #booking-form .print-ticket-button {
        display: none !important;
    }
}
