/* ========================================
   PREMIUM TRACKING ENHANCEMENTS - UPDATED
   ======================================== */

/* Clear any conflicts */
.premium-delivery-progress-wrapper * {
    box-sizing: border-box;
}

/* Delivery Progress Section */
.premium-delivery-progress-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%) !important;
    border-radius: 15px !important;
    padding: 35px 30px !important;
    margin: 30px 0 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
    border: 1px solid #e9ecef !important;
    position: relative;
    overflow: hidden;
}

.premium-delivery-progress-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b4e602, #9cc602, #84c502);
}

.premium-progress-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 35px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e9ecef !important;
}

.premium-progress-header h3 {
    margin: 0 !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 24px !important;
}

.premium-progress-header h3 i {
    color: #b4e602 !important;
    margin-right: 12px !important;
}

.premium-current-status-text {
    background: #f8f9fa !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    color: #666 !important;
    border: 1px solid #dee2e6 !important;
}

.premium-current-status-text strong {
    color: #b4e602 !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
}

.premium-delivery-timeline {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    position: relative;
    margin-bottom: 30px !important;
    padding: 0 20px !important;
}

.premium-delivery-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    z-index: 1;
}

.premium-timeline-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative;
    flex: 1 !important;
    max-width: 180px;
}

.premium-step-indicator {
    position: relative;
    z-index: 3;
    margin-bottom: 15px !important;
}

.premium-step-circle {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: #f8f9fa !important;
    border: 4px solid #e9ecef !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.5s ease !important;
    position: relative;
}

.premium-timeline-step.premium-active .premium-step-circle {
    background: linear-gradient(135deg, #b4e602, #9cc602) !important;
    border-color: #b4e602 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(180, 230, 2, 0.3) !important;
}

.premium-timeline-step.premium-current .premium-step-circle {
    animation: premium-pulse-green 2s infinite !important;
}

.premium-step-circle i {
    font-size: 24px !important;
    color: #999 !important;
    transition: color 0.5s ease !important;
}

.premium-timeline-step.premium-active .premium-step-circle i {
    color: #fff !important;
}

.premium-step-content {
    text-align: center !important;
    position: relative;
}

.premium-step-content h6 {
    margin: 0 0 8px 0 !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

.premium-step-content p {
    margin: 0 !important;
    color: #666 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.premium-timeline-step.premium-active .premium-step-content h6 {
    color: #b4e602 !important;
}

.premium-current-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #b4e602 !important;
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(180, 230, 2, 0.4) !important;
}

.premium-estimated-delivery {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: #fff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.premium-delivery-info {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex: 1 !important;
    min-width: 0;
}

.premium-delivery-info i {
    font-size: 24px !important;
    color: #b4e602 !important;
    width: 30px !important;
    text-align: center !important;
}

.premium-delivery-text h6 {
    margin: 0 0 4px 0 !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.premium-delivery-text p {
    margin: 0 !important;
    color: #666 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Animations */
@keyframes premium-pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(180, 230, 2, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(180, 230, 2, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(180, 230, 2, 0);
    }
}

/* Special Status Alerts */
.premium-status-alert {
    display: flex !important;
    align-items: center !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    border-left: 5px solid !important;
}

.premium-hold-alert {
    background: #fff3cd !important;
    border-left-color: #ffc107 !important;
    border: 1px solid #ffeaa7 !important;
}

.premium-inactive-alert {
    background: #f8d7da !important;
    border-left-color: #dc3545 !important;
    border: 1px solid #f5c6cb !important;
}

.premium-alert-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 20px !important;
    font-size: 24px !important;
}

.premium-hold-alert .premium-alert-icon {
    background: #ffc107 !important;
    color: #fff !important;
}

.premium-inactive-alert .premium-alert-icon {
    background: #dc3545 !important;
    color: #fff !important;
}

.premium-alert-content h6 {
    margin: 0 0 8px 0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.premium-hold-alert .premium-alert-content h6 {
    color: #856404 !important;
}

.premium-inactive-alert .premium-alert-content h6 {
    color: #721c24 !important;
}

.premium-alert-content p {
    margin: 0 !important;
    font-size: 14px !important;
}

.premium-hold-alert .premium-alert-content p {
    color: #856404 !important;
}

.premium-inactive-alert .premium-alert-content p {
    color: #721c24 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .premium-delivery-timeline {
        padding: 0 10px !important;
    }
    
    .premium-timeline-step {
        max-width: 140px !important;
    }
    
    .premium-step-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .premium-step-circle i {
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {
    .premium-progress-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px;
    }
    
    .premium-delivery-timeline {
        flex-direction: column !important;
        padding: 0 !important;
    }
    
    .premium-delivery-timeline::before {
        top: 35px;
        left: 35px;
        right: auto;
        width: 4px;
        height: calc(100% - 70px);
        background: #e9ecef;
    }
    
    .premium-timeline-step {
        flex-direction: row !important;
        text-align: left !important;
        max-width: 100% !important;
        margin-bottom: 25px !important;
    }
    
    .premium-step-indicator {
        margin-right: 20px !important;
        margin-bottom: 0 !important;
    }
    
    .premium-step-content {
        text-align: left !important;
        flex: 1 !important;
    }
    
    .premium-current-badge {
        position: static !important;
        transform: none !important;
        margin-top: 8px !important;
        display: inline-block !important;
    }
    
    .premium-estimated-delivery {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }
    
    .premium-delivery-info {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .premium-delivery-progress-wrapper {
        padding: 25px 20px !important;
    }
    
    .premium-progress-header h3 {
        font-size: 20px !important;
    }
    
    .premium-step-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .premium-step-circle i {
        font-size: 18px !important;
    }
    
    .premium-step-content h6 {
        font-size: 13px !important;
    }
    
    .premium-step-content p {
        font-size: 11px !important;
    }
    
    .premium-status-alert {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
    }
    
    .premium-alert-icon {
        margin: 0 0 15px 0 !important;
    }
    
    .premium-estimated-delivery {
        padding: 20px !important;
    }
    
    .premium-delivery-info {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .premium-delivery-info i {
        font-size: 20px !important;
    }
}

/* Contact Information and Shipment Information sections remain the same as before */
/* Contact Information Section */
.premium-contact-info-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f2f5;
    margin-bottom: 30px;
}

.contact-info-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.contact-info-header h3 {
    color: #333;
    font-weight: 700;
    margin: 0;
    font-size: 24px;
}

.contact-info-header h3 i {
    color: #b4e602;
    margin-right: 10px;
}

.contact-info-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #b4e602, #9cc602);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.header-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #b4e602, #9cc602);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.header-icon i {
    color: #fff;
    font-size: 18px;
}

.card-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.contact-details {
    space-y: 12px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    min-width: 90px;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.detail-label i {
    color: #b4e602;
    margin-right: 8px;
    width: 16px;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    margin-left: 15px;
    word-break: break-word;
}

/* Shipment Information Section */
.premium-shipment-wrapper {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f2f5;
}

.shipment-status-header {
    background: #0a295c;
    padding: 20px 30px;
    color: #fff;
}

.status-badge {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge i {
    margin-right: 12px;
    font-size: 24px;
}

.shipment-image-container {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
}

.image-frame {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.image-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.shipment-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(180, 230, 2, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-frame:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: #fff;
    font-size: 48px;
}

.shipment-details-grid {
    padding: 30px;
}

.detail-group {
    height: 100%;
}

.detail-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #b4e602;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.detail-card:hover .detail-icon {
    background: linear-gradient(135deg, #b4e602, #9cc602);
}

.detail-card:hover .detail-icon i {
    color: #fff;
}

.detail-icon i {
    color: #666;
    font-size: 18px;
    transition: color 0.3s ease;
}

.detail-content {
    flex: 1;
}

.detail-content h6 {
    margin: 0 0 8px 0;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.status-indicator {
    background: linear-gradient(135deg, #b4e602, #9cc602);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for contact and shipment sections */
@media (max-width: 768px) {
    .premium-contact-info-wrapper,
    .premium-shipment-wrapper {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .contact-info-header h3 {
        font-size: 20px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .detail-item {
        flex-direction: column;
    }
    
    .detail-label {
        margin-bottom: 5px;
    }
    
    .detail-value {
        margin-left: 0;
    }
    
    .shipment-details-grid {
        padding: 20px;
    }
    
    .detail-card {
        padding: 15px;
    }
    
    .status-badge {
        font-size: 16px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .detail-card {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-icon {
        margin: 0 auto 15px;
    }
}