/* header.elementor {
    display: none !important;
} */

/* to make space of floating header */
/* main#content {
    margin-top: 110px;
} */

#content {
    height: 100%;
    overflow-y: scroll; /*make content scrollable*/
}

/* to make title center and bolder */
.asme-mt-page-title,
.asme-st-page-title {
    text-align: center;
    font-weight: bolder;
}

/* General Styling for the header container */
.booking-header {
    width: 100%;
    background-color: #008EEC;
    padding: 20px 0; /* Increased padding for the line */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

/* Styling for the main list */
.booking-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between; /* Use space-between for better line alignment */
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Essential for containing the connector lines */
}

/* Styling for each step item */
.step {
    flex-grow: 1;
    text-align: center;
    position: relative;
    z-index: 2; /* Ensures step content is above the line */
}

/* Styling for the step text and number indicator */
.step-text {
    display: block;
    color: white;
    font-weight: 500;
    font-size: 1em;
    padding-top: 20px; /* Space for the progress line above */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- THE HORIZONTAL DIVIDER/CONNECTOR --- */

/* Base Line (Default state for the connector) */
.step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 10px; /* Vertical position of the line */
    left: -50%; /* Starts the line halfway into the previous step's space */
    width: 100%;
    height: 3px; /* Thickness of the line */
    background-color: #ccc; /* Default (inactive) color */
    z-index: 1; /* Puts the line behind the step content */
}

/* Active/Completed Line (Highlights the connection) */
/* The line segment should be highlighted only if the PREVIOUS step is 'completed' */
.step.completed + .step::before,
.step.current::before {
    background-color: yellow; /* Highlight (active) color */
}

/* --- STEP INDICATOR STYLING --- */

/* Indicator Circle/Dot */
.step::after {
    content: ''; /* Empty content is needed for the circle */
    position: absolute;
    top: 8px; /* Vertical position of the circle */
    left: 50%;
    transform: translateX(-50%);
    width: 10px; /* Size of the circle */
    height: 10px;
    border-radius: 50%;
    background-color: #ccc; /* Default color */
    border: 2px solid #fff; /* White border to lift it from the line */
    z-index: 3; /* Puts the circle on top */
}

/* Styling for Completed Steps (both line and circle) */
.step.completed .step-text {
    color: #333; /* Slightly darker text for completed steps */
}

.step.completed::after {
    background-color: yellow; /* Completed circle color */
    border-color: yellow;
}

/* Styling for the Currently Active Step */
.step.current .step-text {
    color: yellow;
    font-weight: bold;
}

.step.current::after {
    background-color: yellow; /* Active circle color */
    border: 2px solid yellow;
    width: 14px; /* Slightly larger circle */
    height: 14px;
    top: 6px;
}
/* ... */

/* --- Base Styles (Desktop) --- */


/* --- Responsive Layout (Mobile) --- */
@media (max-width: 767px) {
    /* main#content {
        margin-top: 30%;
    } */

    .booking-header {
        overflow-y: scroll;
    }
    
    .step {
        min-width: 150px;
    }
}
