﻿:root {
    --step-complete: #2eb44c; /* green */
    --step-current: #49539f; /* purple */
    --step-upcoming-border: #9e9e9e;
    --step-upcoming-bg: #ffffff;
    --track-gray: #9e9e9e;
}

/* Container */
.booking-progress {
    max-width: 800px;
    margin: 24px auto 16px;
    display: grid;
    row-gap: 10px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Equal column layout for both rows */
.booking-progress-icons,
.booking-progress-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    padding: 0;
    margin: 0;
}

/* Icon styling */
.booking-progress-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-svg {
    width: 44px;
    height: 44px;
    stroke: #000;
}

/* Dot + line layout */
.booking-progress-segment {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Dot */
.booking-progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--step-upcoming-border);
    background: var(--step-upcoming-bg);
    position: relative;
    z-index: 1;
}

/* Line between dots */
.booking-progress-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    background: var(--track-gray);
    z-index: 0;
}

/* Remove trailing line after last step */
.booking-progress-segment.last .booking-progress-line {
    display: none;
}

/* --- States --- */

/* Completed */
.booking-progress-segment.complete .booking-progress-dot {
    background: var(--step-complete);
    border-color: var(--step-complete);
}

.booking-progress-segment.complete .booking-progress-line {
    background: var(--step-complete);
}

/* Current */
.booking-progress-segment.current .booking-progress-dot {
    background: var(--step-current);
    border-color: var(--step-current);
}

/* Upcoming */
.booking-progress-segment.upcoming .booking-progress-dot {
    background: var(--step-upcoming-bg);
    border-color: var(--step-upcoming-border);
}

/* Responsive */
@media (max-width: 600px) {
    .icon-svg {
        width: 36px;
        height: 36px;
    }

    .booking-progress-dot {
        width: 12px;
        height: 12px;
    }
}
