/* Global Styles */

*, ::before, ::after { box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Open Sans', 'Fira Sans', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0; padding: 0;
    font-size: 1rem; font-weight: 400; line-height: 1.5;
    color: #212529; background-color: #ecf3f5;
}

a { color: #053c5e; text-decoration: none; }
a:hover { color: #91BAC9; text-decoration: none; }

/* Hide header only on mobile for selected pages */
@media (max-width: 767.98px) {
    body.hide-header-mobile .announcement-bar,
    body.hide-header-mobile nav.wrapper-nav {
        display: none !important;
    }
}

/* Top header bar start*/
.header-top {
    padding: 8px 0 10px;
    position: relative;
    z-index: 1;
    background: #425e8c;
    border-bottom: 1px solid #000;
}
.header-top::before {
    content: "";
    position: absolute;
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%);
    width: 10%;
    top: 0; left: 0; bottom: -1px;
    z-index: -1; clip-path: none;
    background: #91BAC9;
    border-radius: 0 100px 0 0;
}
.header-top::after {
    content: "";
    position: absolute;
    clip-path: polygon(20% 1%, 100% 0, 100% 100%, 0% 100%);
    width: 10%;
    top: 0; right: 0; bottom: -1px;
    z-index: -1; clip-path: none;
    background: #91BAC9;
    border-radius: 100px 0 0 0;
}
.header-top-wrapper {
    display: flex; align-items: center; justify-content: center;
}
.header-top-contact ul {
    margin: 0; padding: 0; display: flex; align-items: center; gap: 25px;
}
.header-top-contact ul li { list-style: none; }
.header-top-contact a { 
    color: #fff; 
    font-weight: 500; 
    transition: all 0.3s ease;
    display: inline-block;
}
.header-top-contact a:hover {
    color: #91BAC9;
    transform: translateY(-2px);
}

/* Navbar header start*/
nav.navbar.navbar-expand-lg.navbar-light {
    background: #ecf3f5 !important;
    border-bottom: 1px solid #cfc5c5;
}
.collapse.navbar-collapse { justify-content: end; }
.navbarcalbtn {
    display: flex; justify-content: center; align-items: center;
}
.navbarcalbtn .fa-phone {
    background: linear-gradient(45deg, #fff, #fff);
    color: #91BAC9;
    height: 50px; width: 50px;
    text-align: center; line-height: 50px;
    font-size: 24px; border-radius: 50px;
    margin: 0 10px 0px 0;
    outline: 1px dashed #91BAC9; outline-offset: -3px;
    transition: all 0.3s ease;
}
.navbarcalbtn:hover .fa-phone {
    background: #91BAC9;
    color: #fff;
    outline: 1px solid #91BAC9;
    transform: rotate(15deg) scale(1.1);
}
.right_contact { padding: 0px; margin: 0 0 0 0px; }

/* Route Location section start */
.routesectionbox {
    background: url('../images/unbranded_ferry_ocean_bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0 88px 0;
    min-height: clamp(520px, 68vh, 780px);
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: visible;
}

.routesectionbox > .container {
    width: 100%;
}

/* Home hero: col-11 centered on mobile; md: two col-5; lg+: two col-4 (narrower cards) */
.hero-route-buttons-row {
    align-items: stretch;
}

.routesectionbox .hero-route-col > a {
    display: block;
    height: 100%;
}

.routesectionbox .hero-route-col .routenamebox {
    min-height: 96px;
    padding: 14px 12px;
}

@media (max-width: 400px) {
    .routesectionbox .hero-route-col .routenamebox {
        padding: 12px 10px;
        min-height: 88px;
    }
    .routesectionbox .hero-route-col .routenamebox h4 {
        font-size: 15px;
    }
    .routesectionbox .hero-route-col .routenamebox p {
        font-size: 13px;
    }
    .routesectionbox .hero-route-col .route_directionicon {
        height: 40px;
        width: 40px;
        font-size: 1rem;
    }
}

.routesectionbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(66, 94, 140, 0.85) 0%, rgba(145, 186, 201, 0.45) 100%);
    z-index: -1;
}

.routesectionbox h2 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
	text-align: center;
	margin-bottom: 40px;
    text-shadow: 0 4px 15px rgba(66, 94, 140, 0.4);
    letter-spacing: 0.5px;
}

.routesectionbox a:hover .routenamebox {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(66, 94, 140, 0.3);
    background: #ffffff;
    border-color: #91BAC9;
}

.routenamebox {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #425e8c;
}

.routenamebox h4 {
    margin: 0px;
    font-size: 20px;
    font-weight: 700;
    color: #425e8c;
    transition: color 0.3s ease;
}

.routenamebox p {
    margin: 0px;
    font-size: 16px;
    font-weight: 500;
    color: #425e8c;
}

.route_directionicon {
    border-radius: 50%;
    background: #91BAC9;
    display: flex;
    height: 48px;
    width: 48px;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(145, 186, 201, 0.4);
    margin: 0 auto;
    transition: background 0.3s ease;
}

.routesectionbox a:hover .route_directionicon {
    background: #91BAC9;
}

@media (max-width: 767.98px) {
    .routesectionbox .hero-route-col .routenamebox h4 {
        font-size: 18px;
    }
    .routesectionbox .hero-route-col .routenamebox p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .routesectionbox {
        /* Extra room above the floating CTA strip */
        padding: 56px 0 56px 0;
        min-height: clamp(480px, 75vh, 640px);
        background-attachment: scroll !important;
    }
    .routesectionbox h2 {
        font-size: 2.5rem;
    }
    /* Hero: keep “Select Ferry Route” on one line; scale down on narrow widths */
    .routesectionbox h2.hero-select-route-title {
        white-space: nowrap;
        font-size: clamp(1.2rem, 5.4vw, 2.5rem);
        margin-left: auto;
        margin-right: auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 28px;
    }
}

/* Index CTA: full-width strip after hero on mobile; desktop overlaps hero / experience like before */
.index-floating-cta-wrap {
    background-color: #ecf3f5;
    position: relative;
    z-index: 2;
    padding: 1.75rem 0 1.5rem;
}

.index-floating-cta-wrap .floating-contact-box {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0 auto;
    width: min(900px, calc(100% - 1.5rem));
    max-width: 900px;
    background-color: #ffffff;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    padding: 35px 30px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .index-floating-cta-wrap {
        padding: 2rem 0 1.25rem;
    }
    .index-floating-cta-wrap .floating-contact-box {
        padding: 25px 20px;
        width: min(900px, calc(100% - 1.25rem));
    }
    .index-floating-cta-wrap .floating-contact-box-lead {
        font-size: 1.05rem !important;
    }
    .index-floating-cta-wrap .floating-contact-box .btn-contact-center {
        margin-top: 0.35rem;
    }
}

/* Desktop: smaller route “buttons”; route row sits clearer above the white CTA */
@media (min-width: 769px) {
    .routesectionbox {
        padding: 110px 0 clamp(112px, 13vw, 148px) 0;
        min-height: clamp(580px, 72vh, 820px);
    }

    .routesectionbox .hero-route-col .routenamebox {
        min-height: 88px;
        padding: 12px 14px;
    }

    .routesectionbox .hero-route-col .routenamebox h4 {
        font-size: 17px;
    }

    .routesectionbox .hero-route-col .routenamebox p {
        font-size: 14px;
    }

    .routesectionbox .hero-route-col .route_directionicon {
        height: 38px;
        width: 38px;
        font-size: 1rem;
    }
    .index-floating-cta-wrap {
        background: transparent;
        margin-top: 0;
        padding: 0 0 clamp(8px, 1.5vw, 16px);
        z-index: 10;
    }
    .index-floating-cta-wrap .container {
        position: relative;
    }
    /* Was -50% — sits lower so “Select Ferry Route” + buttons read more above the card */
    .index-floating-cta-wrap .floating-contact-box {
        transform: translateY(calc(-50% + 28px));
    }
}

/* Index: experience spacing — tight under CTA on mobile, overlap clearance on desktop */
.experience-section.index-experience-section {
    padding-top: 1.75rem !important;
}

.index-experience-inner {
    margin-top: 1.5rem;
}

@media (min-width: 769px) {
    .experience-section.index-experience-section {
        padding-top: 0 !important;
    }
    .experience-section.index-experience-section .index-experience-inner {
        margin-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .experience-section.index-experience-section {
        padding-top: 1.5rem !important;
    }
}

/* Ferry Overlapping Info Section */
.ferry-info-section {
    padding: 30px 0;
}
.ferry-info-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 60%;
    background: url('../images/michigan_ferry_in_sea.png') no-repeat center center;
    background-size: cover;
    transform: translateY(-50%);
    z-index: 1;
}
.ferry-info-box {
    background-color: #91BAC9;
    padding: 60px 70px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 6px;
}
@media (max-width: 768px) {
    .ferry-info-box {
        padding: 40px 20px;
    }
    .ferry-info-bg {
        height: 100%;
        top: 0;
        transform: none;
    }
    .ferry-info-section {
        padding: 50px 0;
    }
}

/* Route Location section end */
/* The Experience Section */
.subtitle-experience {
    color: #91BAC9;
    letter-spacing: 2.5px;
    font-size: 1.15rem;
}

.text-navy, .title-experience {
    color: #425e8c;
}

.title-experience {
    line-height: 1.15;
    font-size: 5.5rem; /* Increased size to match right column height */
}

.experience-text-col p.text-custom {
    color: #425e8c;
    line-height: 1.7;
	font-weight: 500;
}

.btn-contact-center {
    background-color: #425e8c;
    color: #ffffff;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.btn-contact-center:hover {
    background-color: #91BAC9;
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(145, 186, 201, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .title-experience {
        font-size: 4rem;
    }
}
@media (max-width: 576px) {
    .title-experience {
        font-size: 3rem;
    }
    .experience-section {
        padding-top: 135px !important;
    }
}

.btn-navy {
    background-color: #425e8c;
    color: #ffffff;
    border-radius: 0;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background-color: #91BAC9 !important;
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(145, 186, 201, 0.5);
    transform: translateY(-2px);
}

.right_contact p {
    font-size: 20px; margin: 0 0 5px 0;
    color: #053c5e; text-align-last: end;
    line-height: 13px; font-weight: 500;
}
.right_contact a {
    font-size: 20px; text-decoration: none; font-weight: 600;
    color: #91BAC9; line-height: 20px; display: block; text-align: center;
}
nav ul { display: flex; list-style: none; margin: 0 20px; padding: 0; }
nav ul li { margin-left: 2px; }
.navbar-toggler:focus { box-shadow: none; }

.logoimg-dsnp { 
    max-height: 55px; 
    width: auto; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
} 
.navbar-brand:hover .logoimg-dsnp {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbarcalbtn { display: none; }
    .header-top-wrapper { display: inherit; text-align: center; }
    .header-top-left .header-top-contact ul { display: inherit; padding-left: 0; }
    .header-top-left .header-top-contact ul li { display: block; padding: 5px 0; }
    .header-top-contact a { font-size: 18px; }
    
    .navbar-brand { width: 100%; text-align: center; display: block; margin: 0 auto; }
    img.logoimg-dsnp { max-width: 100%; height: auto; max-height: 45px; }
}

/* FAQ & Map Section */
.faq-map-section {
    background-color: #ffffff;
}
.accordion-item {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 1rem;
}
.accordion-button {
    font-size: 1.1rem;
    font-weight: 700;
    color: #425e8c;
    background-color: #f8f9fa;
    border: none;
    box-shadow: none !important;
    padding: 20px 25px;
}
.accordion-button:not(.collapsed) {
    background-color: #91BAC9;
    color: #fff;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}
.accordion-body {
    background-color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #425e8c;
    font-weight: 500;
    border-top: 1px solid #edf1f2;
    padding: 20px 25px;
}
.faq-map-col {
    background-color: #ecf3f5;
    padding: 50px 40px;
    border-radius: 12px;
}
.faq-map-col img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    transition: transform 0.5s ease;
}
.faq-map-col:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .faq-map-col {
        padding: 40px 20px;
    }
}

/* Footer */
.footer {
    background: #425e8c !important;
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
    overflow-x: visible;
}
.footer .container {
    max-width: 100%;
    padding-left: max(15px, env(safe-area-inset-left, 0px));
    padding-right: max(15px, env(safe-area-inset-right, 0px));
}
.footer-logo {
    margin-bottom: 25px;
}
.footer-logo img {
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: min(280px, 85vw);
    filter: brightness(0) invert(1);
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    row-gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.footer-links a {
    color: #b0c4de;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}
.footer-links a:hover {
    color: #91BAC9;
}
.footer-links .divider {
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    user-select: none;
}
.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 10px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}
@media (max-width: 767.98px) {
    /* Policy links hidden on mobile (see footer.php d-none d-md-flex) — logo + copyright only */
    .footer {
        padding: 40px 0 28px;
    }
}

/* Custom class for H1 elements previously using the 'h2' Bootstrap utility */
.scenic-crossing-heading {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
    .scenic-crossing-heading {
        font-size: 2rem;
    }
}

/* Booking Route Styles */
.booking-hero-container {
    padding: 60px 0 80px 0;
    background: #91BAC9;
    background-image: none !important;
    position: relative;
    z-index: 1;
}
.booking-hero-container::before {
    content: none;
}
.booking-hero-title {
    text-shadow: 1px 1px 3px rgba(255,255,255,0.7);
    font-family: 'Poppins', sans-serif;
    color: #425e8c !important;
}
.booking-hero-subtitle {
    text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
    color: #425e8c !important;
}

/* Global Announcement Bar */
.bg-navy {
    background-color: #425e8c !important;
}
.announcement-bar {
    border-bottom: 2px solid #91BAC9;
}
.announcement-text {
    animation: fadeIn 1s ease-in;
}

/* Global Modern Nav Styling */
.hero-blend-nav {
    background: url('../images/michigan_lake_water_bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}
.hero-blend-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(236,243,245,1) 0%, rgba(200,220,230,0.85) 50%, rgba(145,186,201,0.7) 100%);
    z-index: -1;
}

.wrapper-nav {
    transition: all 0.3s ease;
}
.custom-nav-link {
    color: #ffffff !important;
    font-size: 1.1rem;
    padding: 10px 20px !important;
    position: relative;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.custom-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #91BAC9;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 5px;
    transform: translateX(-50%);
}
.custom-nav-link:hover {
    color: #91BAC9 !important;
}
.custom-nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu Effect */
.custom-dropdown .dropdown-menu {
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 15px;
    border: 1px solid rgba(66, 94, 140, 0.05);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block; /* use CSS transitions instead of JS block toggle if possible, Bootstrap handles display though */
}
/* For Bootstrap, we just override display to block on hover for desktop */
@media (min-width: 992px) {
    .custom-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .custom-dropdown .dropdown-menu {
        display: block; /* Keeps it ready for transition */
    }
}
.custom-dropdown-item {
    padding: 12px 25px;
    color: #425e8c;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 10px;
    width: auto;
}
.custom-dropdown-item:hover {
    background-color: #ecf3f5;
    color: #0079a5;
    transform: translateX(5px); /* Slick sliding effect */
}

/* Header Phone Block (Lake Express Style) */
.phone-link .phone-icon-wrapper {
    width: 42px;
    height: 42px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(135deg, #ecf3f5, #ffffff);
    border: 2px solid transparent;
}
.phone-link .phone-icon {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}
.phone-link .phone-text-wrapper {
    transition: all 0.3s ease;
}
.phone-link:hover .phone-icon-wrapper {
    background: linear-gradient(135deg, #425e8c, #425e8c);
    border-color: #91BAC9;
    box-shadow: 0 8px 15px rgba(66, 94, 140, 0.2) !important;
}
.phone-link:hover .phone-icon {
    color: #ffffff !important;
    animation: ring 0.5s ease infinite alternate;
}
.phone-link:hover .phone-text-wrapper .phone-number {
    color: #0079a5 !important;
}

@keyframes ring {
    0% { transform: rotate(-15deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.1); }
}

/* Booking details — Proceed To Payment */
.btn-booking-proceed-to-payment {
    background: linear-gradient(135deg, #425e8c, #0079a5);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(66, 94, 140, 0.35);
}
.btn-booking-proceed-to-payment:hover,
.btn-booking-proceed-to-payment:focus {
    background: #91BAC9 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(145, 186, 201, 0.5);
}
.btn-booking-proceed-to-payment:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(66, 94, 140, 0.3);
}

/* Booking details — space above “Proceed To Payment” (billing fields → button) */
.booking-details-page .booking-details-section-card .btn-booking-proceed-to-payment {
    margin-top: clamp(1.35rem, 3.2vw, 2.25rem);
}

/* Payment — same spacing above “Complete Payment” */
.payment-page .payment-section-card .btn-booking-proceed-to-payment {
    margin-top: clamp(1.35rem, 3.2vw, 2.25rem);
}

/* thanks.php — success message */
.thanks-section {
    font-family: 'Poppins', sans-serif;
}
.thanks-card {
    max-width: 640px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(66, 94, 140, 0.12);
    border: 1px solid rgba(66, 94, 140, 0.12);
}
.thanks-check-icon {
    font-size: clamp(3rem, 10vw, 4rem);
    color: #198754;
    line-height: 1;
}
.thanks-heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: 0.02em;
}
.thanks-body {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #2c3e50;
    max-width: 100%;
}
.thanks-lead {
    font-size: 1.125rem;
    color: #425e8c;
}

/* Booking details — separate bordered sections */
.booking-details-section-card {
    border: 1px solid rgba(66, 94, 140, 0.2);
    border-radius: 12px;
    overflow: hidden;
}
.booking-details-section-card .card-header {
    border-bottom: 1px solid rgba(66, 94, 140, 0.15);
}

/* Mobile: form sits above section background; overflow visible fixes cursor/caret painting behind inputs (WebKit) */
@media (max-width: 767.98px) {
    body.booking-details-page .pricing-page-wrapper,
    body.payment-page .pricing-page-wrapper {
        position: relative;
        z-index: 0;
    }
    body.booking-details-page .booking-details-page-inner,
    body.payment-page .payment-page-inner {
        position: relative;
        z-index: 3;
    }
    body.booking-details-page .booking-details-section-card,
    body.payment-page .payment-section-card {
        position: relative;
        z-index: 2;
        overflow: visible;
        transform: translateZ(0);
    }
    body.booking-details-page .booking-details-section-card > .card-header,
    body.payment-page .payment-section-card > .card-header {
        overflow: hidden;
        border-radius: 12px 12px 0 0;
    }
    body.booking-details-page .booking-details-section-card .card-body,
    body.payment-page .payment-section-card .card-body {
        position: relative;
        z-index: 1;
    }
    body.booking-details-page .booking-details-section-card .form-control,
    body.payment-page .payment-section-card .form-control {
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }
}

/* Booking details + payment checkout — compact top; Poppins + modern fields; mobile keyboard scroll room */
.booking-details-page .pricing-page-wrapper > .container.booking-details-page-inner,
.payment-page .pricing-page-wrapper > .container.payment-page-inner {
    padding-top: clamp(0.5rem, 2vw, 1.25rem);
    padding-bottom: 2.5rem;
}
@media (max-width: 767.98px) {
    body.hide-header-mobile .pricing-page-wrapper > .container.booking-details-page-inner,
    body.hide-header-mobile .pricing-page-wrapper > .container.payment-page-inner {
        padding-top: max(4px, env(safe-area-inset-top, 0px)) !important;
    }
    .booking-details-page .booking-details-page-inner,
    .payment-page .payment-page-inner {
        padding-bottom: max(2.5rem, min(38vh, 280px));
    }
}
/* Checkout + booking forms: instant scroll for scrollIntoView (global html uses scroll-behavior: smooth) */
html:has(body.booking-details-page),
html:has(body.payment-page),
html:has(body.booking-form-page) {
    scroll-behavior: auto;
}
/* Checkout + booking forms: room to scroll (keyboard, datepicker, dropdowns) */
body.booking-details-page,
body.payment-page,
body.booking-form-page {
    scroll-padding-bottom: max(env(safe-area-inset-bottom, 0px), min(140px, 30vh));
    scroll-behavior: auto;
    cursor: auto;
}
body.booking-details-page a[href]:not([disabled]),
body.payment-page a[href]:not([disabled]) {
    cursor: pointer;
}
body.booking-details-page button,
body.booking-details-page .btn,
body.payment-page button,
body.payment-page .btn {
    cursor: pointer;
}
body.booking-details-page input.form-control,
body.booking-details-page textarea.form-control,
body.payment-page input.form-control,
body.payment-page textarea.form-control {
    cursor: text;
}
.booking-details-page .booking-details-section-card .card-header.bg-white,
.payment-page .payment-section-card .card-header.bg-white {
    background: linear-gradient(135deg, #425e8c, #0079a5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.35rem;
}
.booking-details-page .booking-details-section-card .card-header .fw-bold,
.payment-page .payment-section-card .card-header .fw-bold {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
}
.payment-page .payment-section-card .card-header .text-navy {
    color: #fff !important;
}
.payment-page .payment-section-card .payment-accept-note {
    color: rgba(255, 255, 255, 0.95) !important;
}
.payment-page .payment-section-card .payment-accept-note .fw-bold {
    color: #fff !important;
}
.booking-details-page .booking-details-section-card .card-body,
.payment-page .payment-section-card .card-body {
    font-family: 'Poppins', sans-serif;
    padding: 1.35rem 1.35rem 1.5rem;
}

/* Mobile: reduce section bar height + tighten card body spacing */
@media (max-width: 767.98px) {
    .booking-details-page .booking-details-section-card .card-header.bg-white,
    .payment-page .payment-section-card .card-header.bg-white {
        padding: 0.7rem 0.95rem;
    }
    .booking-details-page .booking-details-section-card .card-header .fw-bold,
    .payment-page .payment-section-card .card-header .fw-bold {
        font-size: 1.05rem;
    }
    .booking-details-page .booking-details-section-card .card-body,
    .payment-page .payment-section-card .card-body {
        padding: 0.95rem 0.95rem 1.0rem;
    }

    /* Mobile: reduce extra bottom spacing inside Passenger Details groups */
    .booking-details-page .booking-details-section-card .card-body .mb-4 {
        margin-bottom: 0.85rem !important;
    }
}
.booking-details-page .booking-details-section-card .form-label,
.payment-page .payment-section-card .form-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #425e8c;
    margin-bottom: 0.4rem;
}
.booking-details-page .booking-details-section-card .form-control,
.payment-page .payment-section-card .form-control {
    font-family: 'Poppins', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.45;
    min-height: 3.35rem;
    padding: 0.7rem 1.1rem;
    border: 2px solid rgba(66, 94, 140, 0.22);
    border-radius: 12px;
    background: #fff;
    color: #1a2a3a;
    box-shadow: 0 2px 10px rgba(66, 94, 140, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    /* `manipulation` can block long-press text selection on some mobile browsers */
    touch-action: auto;
    caret-color: #425e8c;
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    -webkit-tap-highlight-color: rgba(66, 94, 140, 0.12);
    scroll-margin-bottom: min(120px, 28vh);
    scroll-margin-top: max(8px, env(safe-area-inset-top, 0px));
}
@media (max-width: 767.98px) {
    .booking-details-page .booking-details-section-card .form-control,
    .payment-page .payment-section-card .form-control {
        font-size: max(16px, 1.0625rem);
    }
}
.booking-details-page .booking-details-section-card .form-control::placeholder,
.payment-page .payment-section-card .form-control::placeholder {
    color: rgba(66, 94, 140, 0.45);
    font-weight: 400;
}
.booking-details-page .booking-details-section-card .form-control:focus,
.payment-page .payment-section-card .form-control:focus {
    border-color: #425e8c;
    box-shadow: 0 0 0 4px rgba(66, 94, 140, 0.18);
    outline: none;
    background: #fff;
}
.booking-details-page .booking-details-section-card .alert,
.payment-page .payment-section-card .alert {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border-radius: 12px;
}
.payment-page .payment-ssl-notice {
    border-top: 1px solid rgba(66, 94, 140, 0.12);
    padding-top: 1rem;
    margin-top: 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #425e8c;
}
.payment-page .payment-ssl-notice i {
    color: #2e8b57;
    font-size: 1rem;
}
.payment-page .payment-card-header {
    text-align: left;
}
.payment-page .payment-accept-note {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}
.payment-page .payment-accepted-img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
}
@media (max-width: 576px) {
    .payment-page .payment-accepted-img {
        max-width: 168px;
    }
}
.payment-page .card-type-pill {
    font-size: 0.8125rem;
    font-family: 'Poppins', sans-serif;
}

/* Touch: no sticky “hover” after scroll / keyboard (booking + payment) */
@media (hover: none) {
    body.booking-details-page .custom-nav-link:hover,
    body.payment-page .custom-nav-link:hover {
        color: #ffffff !important;
    }
    body.booking-details-page .custom-nav-link:hover::after,
    body.payment-page .custom-nav-link:hover::after {
        width: 0;
    }
    body.booking-details-page .custom-dropdown-item:hover,
    body.payment-page .custom-dropdown-item:hover {
        background-color: transparent;
        color: #425e8c;
        transform: none;
    }
    body.booking-details-page .footer-links a:hover,
    body.payment-page .footer-links a:hover {
        color: #b0c4de;
    }
    body.booking-details-page .btn-booking-proceed-to-payment:hover,
    body.booking-details-page .btn-booking-proceed-to-payment:focus,
    body.payment-page .btn-booking-proceed-to-payment:hover,
    body.payment-page .btn-booking-proceed-to-payment:focus {
        background: linear-gradient(135deg, #425e8c, #0079a5) !important;
        color: #fff !important;
        transform: none;
        box-shadow: 0 4px 14px rgba(66, 94, 140, 0.35);
    }
    body.booking-details-page .btn-booking-proceed-to-payment:active,
    body.payment-page .btn-booking-proceed-to-payment:active {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(66, 94, 140, 0.3);
    }
    body.booking-details-page .btn-booking-proceed-to-payment:focus-visible,
    body.payment-page .btn-booking-proceed-to-payment:focus-visible {
        outline: 3px solid rgba(255, 255, 255, 0.55);
        outline-offset: 3px;
    }
}
