:root {
    --source-sans-3: "Source Sans 3";
    --primary-color: #fab217;
    --primary-shadow-color: rgba(250, 178, 23, 0.6);
    --secondary-color: #60A5FA;
    --black-color: #000000;
    --white-color: #ffffff;
    --hover-color: #fecb5d;
    --light-color: #f2f2f2;

    /* extras */
    --border-radius-journey-types: 10px;
    --padding-adjust-for-journey-types: 15px;
    --padding-adjust-for-hero-section: 15px;
}

html {
    scroll-padding-top: 76px;
}

* {
    font-family: var(--source-sans-3);
    /* scrollbar-width: thin; */
}

/* Chrome, Safari */
body::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}

body::-webkit-scrollbar-thumb:vertical {
    height: 30px;
    background-color: var(--primary-color);
}

::-moz-selection { /* Code for Firefox */
  color: black;
  background: var(--primary-color);
}

::selection {
  color: black;
  background: var(--primary-color);
}

body {
    padding: 0 !important;
    background: white !important;
    width: 100vw !important;   /* you can keep this */
    overflow-x: hidden !important; /* FIX */
}

html {
    overflow-x: hidden !important;
}

/*

main {
    background-image: url("/images/main_bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

*/


main {

    display: flex;
    flex-direction: column;
    width: 100vw;
}

#my_container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* align to top, not center */
    flex-wrap: nowrap;       /* row layout on desktop */
    gap: 20px;
    background-image: url("/images/hero-section-image.png");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    padding: 40px;
}

#hero-section {
    flex: 1;
    min-width: 0;  /* prevent content overflow from breaking flex */
    height: 500px; /* default desktop height */
    overflow: hidden;
    display: flex; 
    align-items: center; 
}

#hero-section .container {
    width: 100%;
}

.mainInputsDiv {
    flex: 1;
    max-width: 700px;
    margin: 0; /* flex controls spacing */
    background-color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.28);
    padding: 0px var(--padding-adjust-for-journey-types);
    border-radius: 8px;
    align-self: center;
}

@media (max-width: 1100px) {
    #my_container {
        flex-direction: column;
        background: none;
        padding: 0;
    }
    #hero-section {
        height: 400px !important;
        min-height: 400px;
        width: 100%;
        overflow: hidden;
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)),
                    url('/images/hero-section-image.png') center/cover no-repeat;
    }
    .mainInputsDiv {
        width: 90vw;
        max-width: 800px;

        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    #hero-section {
        width: 100%;
        height: 240px !important;
        min-height: 240px !important;
        overflow: hidden;
        /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)),url('/images/hero-section-image.png') center/cover no-repeat; */
    }
    .sub-title {
        font-size: 14px !important;
        max-width: 50vw !important;
    }
    .mainInputsDiv {
        width: calc(100vw - 30px); /* full viewport width minus 20px */
        margin: 0 auto;             /* centers the div horizontally */
    }

}

/* ########################################################################################################### */

.custom_input_style {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    
    transition: all 0.3s ease;
}

.custom_input_style:focus,
.custom_input_style:focus-visible,
.custom_input_style:active {
    background-color: #f9f9f9;
    border-color: #ffa500; /* modern accent color */
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2); /* subtle glow */
    outline: none;
}


/* ########################################################################################################### */

.custom-select {
    appearance: none;           /* remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background-color: #E0E0E0 !important;
    border: 1px solid #B0B0B0;
    border-radius: 6px;
    padding: 10px 40px 10px 12px; /* space for arrow */
    font-size: 16px;
    color: #333;
    cursor: pointer;
    
    position: relative;
}

/* Add custom arrow */
.custom-select::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #555;
}

/* Focus state */
.custom-select:focus {
    outline: none;
    background-color: rgb(219, 218, 218);

}

/* Optional: hover effect */
.custom-select:hover {
    border-color: #999;
}

/* ########################################################################################################### */

.journeytype-nav {
    position: relative;
    background: white !important;
    border-top-left-radius: var(--border-radius-journey-types);
    border-top-right-radius: var(--border-radius-journey-types);
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 20px;
    margin-left: calc(var(--padding-adjust-for-journey-types) * -1); /* negative of container padding */
    margin-right: calc(var(--padding-adjust-for-journey-types) * -1); /* negative of container padding */
}

.journey-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: 0.25s ease;
    border: 1px solid transparent;
    font-weight: bold;
    font-size: 14px;
    color: #000000A6;
}

.journey-pill:nth-child(1) {
    border-top-left-radius: var(--border-radius-journey-types);
}

/* Only second (middle) pill: left & right borders */
.journey-pill:nth-child(3) {
    border-top-right-radius: 8px;
    border-top-right-radius: var(--border-radius-journey-types);
}

.journey-pill:nth-child(2) {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.journey-pill img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* Hide on small screens */
@media (max-width: 500px) {  /* or 576px for extra small screens */
    .journey-pill img {
        display: none;
    }
}

.journey-pill input {
    display: none; /* hide original radio */
}

/* Apply active style to the label using :has */
.journey-pill:has(input:checked), .journey-pill.checked {
    background: var(--primary-color);
    color: white;
}



/* ########################################################################################################### */

@media screen and (min-width: 768px) {
    main {
        min-height: 100vh;
    }
}

textarea,
input {
    text-indent: 0.5rem;
    background-color: var(--white-color);
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border: 1px solid var(--primary-color) !important;
}

textarea:hover,
input:hover {
    border: 1px solid var(--primary-color);
}

label {
    cursor: pointer;
    margin: 0 !important;
}

input[type="radio"]:checked + label.btn {
    border: 2px solid var(--primary-color);
}

input::placeholder {
    font-size: small;
}

select:focus {
    outline-color: var(--primary-color);
}

select:hover {
    border: 1px solid var(--primary-color);
}

.btn-close:focus {
    outline: none !important;
    box-shadow: none !important;
}

.custom-radio {
    border-color: black;
}

.custom-radio:hover {
    border-color: var(--primary-color);
}

.custom-radio:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(250, 178, 23, 0.25);
}

.sup-down {
    position: relative;
    top: -2px;
}

.bg-primary-color {
    background-color: var(--primary-color) !important;
}

.bg-light-color {
    background-color: var(--light-color) !important;
}

li > .active {
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

.nav_bg {
    background-color: #F9F9F9;
}

.nav-item > .nav-link:hover {
    color: var(--white-color) !important;
    color: var(--secondary-color) !important;
}

.nav-item > .nav-link {
    font-size: 18px;
}

.default_nav_item {
    color: #000000A6;
}

.selected_nav_item {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px var(--primary-shadow-color);
}

.navbar-toggler:focus {
    text-decoration: none !important;
    outline: 1px solid var(--black-color) !important;
    box-shadow: none !important;
}

button[name="tariff-btn"]:not(.active):hover {
    background-color: var(--hover-color) !important;
}

button[name="tariff-btn"] {
    transition: background-color 0.3s ease, color 0.3s ease;
}

#callNow > a:hover {
    color: var(--white-color) !important;
}

.bookingDetails {
    width: 100% !important;
}

.advertisementDetails {
    width: 50% !important;
}

@media screen and (min-width: 768px) {
    .bookingDetails {
        width: 55% !important;
    }
    .advertisementDetails {
        width: 45% !important;
    }
}

@media screen and (min-width: 1200px) {
    .bookingDetails {
        width: 45% !important;
    }
    .advertisementDetails {
        width: 55% !important;
    }
}

.text-indent {
    text-indent: 1rem !important;
}

#testimonial > #wave_bg_2 {
    background-image: url("/images/wave_bg_2.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#confirmBooking > #wave_bg_3 {
    background-image: url("/images/vector_bg_3.svg");
    background-repeat: space;
    background-size: 50% auto !important;
    background-position: center;
    opacity: 0.2;
}

#feedback > #vector_bg_2 {
    background-image: url("/images/vector_bg_2.svg");
    background-repeat: repeat;
    background-size: 10% 10% !important;
    background-position: center;
    opacity: 0.2;
}

#tariff > #vector_bg_4 {
    background-image: url("/images/vector_bg_4.svg");
    background-repeat: repeat;
    background-size: 5% 5% !important;
    background-position: center;
    opacity: 0.2;
}

#testimonialCarousel,
#feeddback_form,
#bookingForm {
    width: 100%;
}

@media screen and (min-width: 768px) {
    #testimonialCarousel,
    #feeddback_form,
    #bookingForm {
        width: 75% !important;
    }
}

@media screen and (min-width: 1024px) {
    #testimonialCarousel,
    #feeddback_form,
    #bookingForm {
        width: 60% !important;
    }
}

.glass-effect {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#est_table_body tr td:first-child {
    text-align: left;
    text-indent: 0.5rem;
}

.collapse-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.collapse-details.show {
    max-height: 300px;
}

#loadingOverlay,
#loadingOverlayForConfirmBooking {
    height: calc(100vh - 76px);
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.details-content.expanded {
    max-height: 500px;
}

button {
    cursor: pointer;
}

button:disabled {
    pointer-events: auto !important;
    cursor: not-allowed !important;
}

#suggestions {
    border: 1px solid var(--black-color);
    max-height: 200px;
    overflow-y: auto;
    top: 70%;
    display: none;
}
.suggestion-item {
    padding: 8px;
    cursor: pointer;
}
.suggestion-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.otp-input {
    width: 50px;
    height: 50px;
    font-size: 24px;
}
.no-focus:focus {
    box-shadow: none !important;
    outline: none !important;
}
span.absoluteSpan {
    top: 50%;
    transform: translateY(-50%);
}

.btn:focus:not(:disabled),
.btn:hover:not(:disabled) {
    background-color: var(--white-color) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.td-row .date-container {
    flex: 0 0 66.6667% !important;
    max-width: 66.6667% !important;
}

.td-row .time-container {
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
}

.time-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid gray !important;
}

.tempus-dominus-widget .time-container-clock {
    grid-auto-rows: 40px !important;
}

.time-container-clock > * {
    padding: 4px !important;
}

.tempus-dominus-widget .toggleMeridiem {
    height: 24px !important;
    text-align: center;
}

.tempus-dominus-widget button[data-action] {
    padding: 0 !important;
}

.time-container-hour > * {
    padding: 4px !important;
}

.time-container-minute > * {
    padding: 4px !important;
}

.tempus-dominus-widget .date-container-days {
    display: grid !important;
    grid-auto-rows: 30px !important;
    grid-template-areas: "a a a a a a a" !important;
}

.tempus-dominus-widget.light .date-container-days .dow {
    color: var(--td-dow-color);
    font-size: 0.8rem !important;
}

.tempus-dominus-widget .time-container {
    margin: 0 !important;
}

.tempus-dominus-widget .time-container-hour,
.tempus-dominus-widget .time-container-minute,
.tempus-dominus-widget .time-container-second {
    grid-auto-rows: 40px !important;
}

.sm-icons {
    color: var(--black-color) !important;
    text-decoration: none;
}

.sm-icons:hover {
    color: var(--primary-color) !important;
}

.toggle-closed {
    width: 40px !important;
}

.toggle-open {
    width: 100px !important;
}

.toggle-open #social-icons {
    width: auto;
    opacity: 1;
}

#socialIcons {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#socialIcons.show {
    transform: translateX(0);
    opacity: 1;
}

.testimonial-card {
    max-height: 220px;
    overflow-y: auto;
}

#testimonial .carousel-item .p-4 {
    min-height: 220px;
}

.news-ticker {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
