/* =========================================================
   TRACK ORDER PAGE STYLES (Matching Screenshot Ref)
   ========================================================= */

body {
    background-color: #f0f6ff;
    color: #1e293b;
    padding-top: 135px;
}

.track-main-content {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 5rem;
}

.track-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2d5a;
    margin-bottom: 1.5rem;
}

/* Layout Grid */
.track-main-grid {
    display: grid;
    grid-template-columns: 63% 34%;
    gap: 3%;
    align-items: start;
}

/* Card Base */
.track-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.03);
}

/* ================= 1. Search Order Card ================= */
.search-order-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
}

.search-card-illustration {
    width: 80px;
    height: 80px;
    background-color: #f0f7ff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-illus-icon {
    font-size: 2.2rem;
    color: #3b82f6;
}

.search-card-form {
    flex: 1;
}

.search-card-label {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #1f2d5a;
    margin-bottom: 0.4rem;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.search-order-input {
    flex: 1;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    outline: none;
    color: #1e293b;
    transition: border-color 0.2s;
}

.search-order-input:focus {
    border-color: #1f2d5a;
}

.btn-track-submit {
    height: 42px;
    padding: 0 2.25rem;
    background-color: #242d54;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-track-submit:hover {
    background-color: #1d2545;
}

.search-hint {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ================= 2. Timeline Card ================= */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.order-id-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2d5a;
}

.ordered-on-text {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.25rem;
}

.status-badge-group {
    text-align: right;
}

/* Soft Purple Pill Matching Image */
.status-pill-badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.775rem;
    text-align: center;
}

.status-pill-badge.order-confirmed {
    background-color: #fae8ff;
    color: #d946ef;
    border: 1px solid #f5d0fe;
}

.estimated-delivery-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.estimated-delivery-text strong {
    color: #64748b;
    display: block;
}

/* Progress Bar & Nodes */
.tracking-progress-wrapper {
    position: relative;
    padding: 0.5rem 0 1rem 0;
}

.progress-line-bg {
    position: absolute;
    top: 24px;
    left: 8%;
    width: 84%;
    height: 2px;
    background-color: #cbd5e1;
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    background-color: #242d54;
    transition: width 0.3s ease;
}

.progress-steps-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 22%;
}

.point-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #8e9198; /* Inactive grey node */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.step-point.completed .point-circle {
    background-color: #242d54; /* Active Dark Slate */
}

.point-label {
    font-size: 0.775rem;
    font-weight: 700;
    color: #1f2d5a;
}

.point-date {
    font-size: 0.725rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* ================= 3. Need Help Gradient Banner ================= */
.help-banner-card {
    background: linear-gradient(135deg, #0250be 0%, #1d4ed8 45%, #e0f2fe 100%);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}

.help-banner-content {
    max-width: 60%;
    z-index: 2;
}

.help-banner-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.help-banner-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.btn-contact-us {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.75rem;
    background-color: #ffffff;
    border-radius: 9999px;
    color: #1f2d5a;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-contact-us:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.help-illustration-wrapper {
    position: absolute;
    right: 1.5rem;
    bottom: -10px;
    width: 350px;
    z-index: 1;
}

.cs-agent-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ================= RIGHT COLUMN: Sidebar ================= */
.order-summary-sidebar {
    padding: 1.5rem;
}

.summary-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.summary-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2d5a;
}

.summary-order-code {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.summary-section {
    margin-bottom: 1.25rem;
}

.section-subheading {
    font-size: 0.875rem;
    font-weight: 800;
    color: #1f2d5a;
    margin-bottom: 0.35rem;
}

.address-text-block strong {
    font-size: 0.85rem;
    color: #1f2d5a;
}

.address-text-block p {
    font-size: 0.8rem;
    color: #475569;
    margin-top: 0.1rem;
}

.incoterm-text {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
}

.items-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.items-count {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Items List Stack */
.summary-items-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.summary-item-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-item-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 0.2rem;
    flex-shrink: 0;
}

.item-meta {
    flex: 1;
}

.item-meta h5 {
    font-size: 0.775rem;
    font-weight: 700;
    color: #1f2d5a;
    line-height: 1.3;
}

.item-price-qty {
    text-align: right;
    white-space: nowrap;
}

.qty-text {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
}

.price-text {
    font-size: 0.825rem;
    font-weight: 800;
    color: #1f2d5a;
}

/* Footer Total */
.summary-total-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2d5a;
}

.grand-total-amount {
    font-size: 1.15rem;
    color: #1f2d5a;
}

/* Responsive Scaling */
@media screen and (max-width: 900px) {
    .track-main-grid {
        grid-template-columns: 1fr;
    }
    .search-order-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .help-banner-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .help-banner-content {
        max-width: 100%;
    }
    .help-illustration-wrapper {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
    }
}