/**
 * BOOKING PROGRESS BAR - COMPLETE REDESIGN
 *
 * Modern minimalist horizontal progress bar
 * Dark mode with dark gray/black colors (NO blue)
 *
 * Version: 7.0 - Complete Redesign
 * Created: 2025-01-27
 */

/* =============================================================================
   PROGRESS BAR CONTAINER
   ============================================================================= */

.booking-progress-bar {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 32px;
    padding: 0;
    position: relative;
}

/* =============================================================================
   PROGRESS TRACK - HORIZONTAL BAR
   ============================================================================= */

.progress-track {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

[data-theme="dark"] .progress-track {
    background: #374151 !important; /* Dark gray */
}

.progress-fill {
    height: 100%;
    background: #111827; /* Dark black */
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

[data-theme="dark"] .progress-fill {
    background: #f9fafb !important; /* Light gray/white in dark mode for contrast */
}

/* =============================================================================
   PROGRESS STEPS - HORIZONTAL LAYOUT
   ============================================================================= */

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    min-width: 0;
}

/* Step Marker - Simple dot */
.step-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db; /* Light gray */
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .step-marker {
    background: #4b5563 !important; /* Dark gray */
    border-color: #1f2937 !important;
    box-shadow: 0 0 0 2px #374151 !important;
}

/* Active Step */
.progress-step.active .step-marker {
    width: 16px;
    height: 16px;
    background: #111827; /* Dark black */
    border-color: #ffffff;
    box-shadow: 0 0 0 3px #111827, 0 0 0 6px rgba(17, 24, 39, 0.1);
    transform: scale(1.2);
}

[data-theme="dark"] .progress-step.active .step-marker {
    background: #f9fafb !important; /* Light gray/white */
    border-color: #1f2937 !important;
    box-shadow: 0 0 0 3px #f9fafb, 0 0 0 6px rgba(249, 250, 251, 0.1) !important;
}

/* Completed Step */
.progress-step.completed .step-marker {
    background: #111827; /* Dark black */
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #111827;
}

[data-theme="dark"] .progress-step.completed .step-marker {
    background: #f9fafb !important; /* Light gray/white */
    border-color: #1f2937 !important;
    box-shadow: 0 0 0 2px #f9fafb !important;
}

/* Completed step with checkmark */
.progress-step.completed .step-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
}

[data-theme="dark"] .progress-step.completed .step-marker::after {
    border-color: #1f2937 !important; /* Dark border for checkmark */
}

/* Step Label */
.step-label {
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    color: #6b7280; /* Medium gray */
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
}

[data-theme="dark"] .step-label {
    color: #9ca3af !important; /* Light gray */
}

/* Active Step Label */
.progress-step.active .step-label {
    color: #111827; /* Dark black */
    font-weight: 600;
}

[data-theme="dark"] .progress-step.active .step-label {
    color: #f9fafb !important; /* Light gray/white */
    font-weight: 600;
}

/* Completed Step Label */
.progress-step.completed .step-label {
    color: #374151; /* Dark gray */
    font-weight: 500;
}

[data-theme="dark"] .progress-step.completed .step-label {
    color: #d1d5db !important; /* Light gray */
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .booking-progress-bar {
        margin-bottom: 24px;
    }

    .progress-track {
        height: 3px;
        margin-bottom: 16px;
    }

    .step-marker {
        width: 10px;
        height: 10px;
}

    .progress-step.active .step-marker {
        width: 14px;
        height: 14px;
}

    .step-label {
        font-size: 0.6875rem; /* 11px */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .booking-progress-bar {
        margin-bottom: 20px;
        padding: 0 8px;
    }

    .progress-track {
        height: 2px;
        margin-bottom: 12px;
    }

    .progress-steps {
        gap: 0;
    }

    .progress-step {
        gap: 6px;
    }

    .step-marker {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
        box-shadow: 0 0 0 1.5px #e5e7eb;
    }

    [data-theme="dark"] .step-marker {
        box-shadow: 0 0 0 1.5px #374151 !important;
    }

    .progress-step.active .step-marker {
        width: 12px;
        height: 12px;
        box-shadow: 0 0 0 2px #111827, 0 0 0 4px rgba(17, 24, 39, 0.1);
    }

    [data-theme="dark"] .progress-step.active .step-marker {
        box-shadow: 0 0 0 2px #f9fafb, 0 0 0 4px rgba(249, 250, 251, 0.1) !important;
    }

    .step-label {
        font-size: 0.625rem; /* 10px */
    }

    .progress-step.completed .step-marker::after {
        width: 3px;
        height: 6px;
        border-width: 0 1.5px 1.5px 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .booking-progress-bar {
        margin-bottom: 16px;
        padding: 0 4px;
    }

    .progress-track {
        height: 2px;
        margin-bottom: 10px;
    }

    .progress-step {
        gap: 4px;
    }

    .step-marker {
        width: 7px;
        height: 7px;
        border-width: 1px;
    }

    .progress-step.active .step-marker {
        width: 10px;
        height: 10px;
    }

    .step-label {
        font-size: 0.5625rem; /* 9px */
    }
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */

.progress-step:focus {
    outline: 2px solid #111827;
    outline-offset: 4px;
    border-radius: 4px;
}

[data-theme="dark"] .progress-step:focus {
    outline-color: #f9fafb !important;
}

@media (prefers-reduced-motion: reduce) {
    .progress-fill,
    .step-marker,
    .step-label {
        transition: none !important;
    }
}

/* Print */
@media print {
    .booking-progress-bar {
        position: static;
    }

    .progress-track {
        background: #e5e7eb;
    }

    .progress-fill {
        background: #111827;
    }
}
