/* Container Formatting */
.shipment-tracker-container {
    max-width: 650px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
}

/* Search Interface bar */
.tracker-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.tracker-search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #002f6c;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.tracker-search-form button {
    padding: 12px 24px;
    background-color: #002f6c;
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.tracker-search-form button:hover {
    background-color: #001f47;
}

/* Base Tracking Layout Box */
.usps-tracking-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Tracking Header */
.usps-header {
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.usps-header-label {
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.usps-header-number {
    font-size: 26px;
    font-weight: 800;
    color: #333366;
    margin: 4px 0 0 0;
}

/* Expected Delivery Blue Hero Card */
.usps-delivery-hero {
    background-color: #e8f4fc;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-left-border {
    width: 6px;
    background-color: #336699;
}

.hero-content {
    padding: 20px;
    flex: 1;
}

.hero-title {
    font-size: 14px;
    font-weight: bold;
    color: #336699;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.hero-date-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 15px;
}

.hero-day-name {
    font-size: 28px;
    font-weight: 800;
    color: #333366;
}

.hero-date-block {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.hero-day-num {
    font-size: 42px;
    font-weight: 900;
    color: #333366;
    line-height: 1;
}

.hero-month-yr {
    font-size: 16px;
    font-weight: bold;
    color: #555577;
}

.hero-status-desc {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: #444;
}

/* Vertical Timeline Engine (Matches your exact UI upload) */
.usps-timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 35px;
}

/* Vertical connecting line */
.usps-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background-color: #e0e0e0;
    z-index: 1;
}

.timeline-step {
    position: relative;
    padding-bottom: 28px;
    display: flex;
    align-items: flex-start;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

/* Step bullets */
.timeline-bullet {
    position: absolute;
    left: -30px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #e0e0e0;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-info {
    margin-left: 10px;
}

.step-title {
    font-size: 15px;
    font-weight: bold;
    color: #999999;
    display: block;
}

.step-meta {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 3px;
}

/* Active State Styles */
.timeline-step.active .timeline-bullet {
    border-color: #333366;
    background-color: #333366;
}

.timeline-step.active .step-title {
    color: #333366;
    font-weight: 700;
}

/* Target Current Live Status Node */
.timeline-step.current .timeline-bullet {
    background-color: #333366;
    border-color: #333366;
    box-shadow: 0 0 0 5px rgba(51, 51, 102, 0.2);
}

.timeline-step.current .step-title {
    font-size: 17px;
    font-weight: 800;
}

/* Info Details Grid */
.usps-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #eaeaea;
    padding-top: 25px;
    margin-bottom: 30px;
}

.detail-card {
    background: #fcfcfc;
    border: 1px solid #ededed;
    border-radius: 6px;
    padding: 16px;
}

.detail-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #333366;
    border-bottom: 1.5px solid #eaeaea;
    padding-bottom: 6px;
}

.detail-card p {
    font-size: 14px;
    line-height: 1.4;
    margin: 6px 0;
}

/* Map UI Segment */
.usps-map-section {
    border-top: 1px solid #eaeaea;
    padding-top: 25px;
}

.map-heading {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333366;
}

#shipment-tracking-map {
    height: 350px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ddd;
    z-index: 1;
}

/* Error Handling */
.tracker-error {
    background-color: #fdf2f2;
    border: 1px solid #f5c2c2;
    color: #b91c1c;
    padding: 16px;
    border-radius: 6px;
    font-weight: bold;
}
