/* ===================================
   Multi-Step Booking Styles
   =================================== */

/* Map Wrapper - Ensure map displays */
.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    background: var(--gray-100);
}

.map-wrapper>div {
    width: 100%;
    height: 100%;
}

/* Progress Bar */
.progress-container {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-200);
    z-index: 0;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    background: var(--primary-500);
    z-index: 1;
    transition: width 0.3s ease;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
    z-index: 2;
    flex: 1;
}

#booking-container {
    max-width: 1000px;
    /* Mo rong ra 1000px */
    margin: 2rem auto;
    background: transparent;
    /* Bo khung trang (trong suot) */
    border-radius: 0;
    box-shadow: none;
    /* Bo bong do */
    padding: 0;
    /* Bo padding thua */
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-500);
    transition: all var(--transition-base);
}

.step-indicator.active .step-circle {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed .step-circle {
    background: var(--success-500);
    border-color: var(--success-500);
    color: white;
}

.step-label {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    text-align: center;
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: var(--primary-600);
    font-weight: 700;
}

/* Step Content */
.step-content {
    min-height: 400px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* Trip Information Section (Non-sticky) */
.trip-info-sticky {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

/* Enhanced shadow when scrolling */
.trip-info-sticky.is-stuck {
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 104, 255, 0.2);
}

/* Smooth animation for return info */
.trip-info-sticky #return-info-container {
    overflow: hidden;
    transition: all 0.3s ease-out;
}

/* Pulse animation for highlighting */
@keyframes highlightPulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 104, 255, 0.1);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(0, 104, 255, 0.3),
            0 8px 24px rgba(0, 104, 255, 0.2);
        border-color: rgba(0, 104, 255, 0.4);
        transform: scale(1.02);
    }
}

.trip-info-sticky.highlight-pulse {
    animation: highlightPulse 1.5s ease-in-out 2;
}


.step-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}

.step-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

/* Progress Steps styling */
.progress-container {
    background: #EBF5FF;
    /* Trang anh xanh dam hon chut */
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: none;
    /* Bo duong gach chan */
}

.btn-nav {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid;
    min-width: 120px;
}

.btn-back {
    background: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-back:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-next {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.btn-next:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-next:disabled {
    background: var(--gray-300);
    border-color: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

/* Pricing Breakdown */
.pricing-breakdown {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-label {
    color: var(--gray-700);
}

.pricing-value {
    font-weight: 600;
    color: var(--gray-800);
}

.pricing-total {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--gray-300);
}

.pricing-total .pricing-label {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-800);
}

.pricing-total .pricing-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-600);
}

.pricing-note {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-top: var(--spacing-sm);
    font-style: italic;
}

/* Deposit Options */
.deposit-options {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.deposit-option {
    flex: 1;
    padding: var(--spacing-lg);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.deposit-option:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.deposit-option.selected {
    border-color: var(--primary-500);
    background: var(--primary-100);
}

.deposit-percentage {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: var(--spacing-xs);
}

.deposit-amount {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-700);
}

@media (max-width: 768px) {
    .progress-container {
        padding: 1rem 0.5rem;
    }

    .step-indicator {
        flex: 1;
    }

    .step-label {
        font-size: 8px;
        /* Extra small but visible */
        display: block;
        margin-top: 4px;
        color: var(--gray-500);
        width: 60px;
        /* Force wrap or maintain space */
        line-height: 1.1;
    }

    .step-indicator.active .step-label {
        color: var(--primary-600);
        font-weight: 700;
        display: block;
        position: static;
        /* Standard flow */
        transform: none;
    }

    .step-indicator.completed .step-label {
        color: var(--success);
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .step-navigation {
        flex-direction: row;
        /* Keep them side-by-side if possible */
        gap: 10px;
    }

    .btn-nav {
        flex: 1;
        min-width: auto;
        padding: 12px 15px;
    }

    .deposit-options {
        flex-direction: column;
    }
}

/* VEHICLE INFO CARD (Refactored from inline) */
.vehicle-info-card {
    position: relative;
    background: var(--primary-500);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 104, 255, 0.2);
    overflow: visible;
}

.vehicle-info-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .vehicle-info-header {
        flex-direction: column;
        align-items: center;
        /* Center for customer view */
        text-align: center;
        gap: 0.5rem;
    }
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.driver-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.photo-thumbnails {
    display: flex;
    justify-content: flex-end;
    /* On PC */
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    padding: 5px 0;
    min-height: 70px;
    align-items: center;
}

@media (max-width: 480px) {
    .photo-thumbnails {
        justify-content: center;
        /* Center on mobile for better balance */
    }
}

.photo-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.photo-thumb:hover {
    transform: scale(1.05);
    border-color: white;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

/* Vehicle Nav Buttons */
.vehicle-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--primary-600);
    z-index: 20;
}

.vehicle-nav-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.vehicle-nav-prev {
    left: -15px;
}

.vehicle-nav-next {
    right: -15px;
}

@media (max-width: 480px) {
    .vehicle-nav-btn {
        width: 36px;
        height: 36px;
    }

    .vehicle-nav-prev {
        left: -5px;
    }

    .vehicle-nav-next {
        right: -5px;
    }
}

/* Vehicle Selection Option */
.vehicle-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.vehicle-option.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.vehicle-option.selected .vehicle-name {
    color: var(--primary-600);
}

.vehicle-option:hover:not(.disabled) {
    border-color: var(--primary-200);
}

.vehicle-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--gray-50);
}

@media (max-width: 480px) {
    .trip-info-sticky {
        padding: 0.75rem;
        margin-bottom: 1rem;
        border-width: 1px;
    }
}

/* Utility: Hide Scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}