/* ============================================
   Order Tracking Timeline Styles
   ============================================ */

.page-hero {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
    padding: 110px 0 50px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 5px;
}

.page-hero p {
    color: var(--text-muted);
}

.tracking-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
}

.tracking-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--cream-dark);
    padding-bottom: 20px;
}

.tracking-header h2 {
    color: var(--brown-dark);
    margin-bottom: 5px;
}

.tracking-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px;
    height: 100%;
    width: 2px;
    background: var(--cream-dark);
}

.timeline-step {
    position: relative;
    margin-bottom: 30px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -30px;
    top: 15px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    z-index: 2;
    transition: all 0.3s ease;
}

/* Active State */
.timeline-step.active .timeline-icon {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 146, 42, 0.2);
}

.timeline-step.active~.timeline-step .timeline-icon {
    background: var(--cream);
    border-color: var(--cream-dark);
    color: var(--text-muted);
}

/* Completed State (steps before active) */
.timeline-step.completed .timeline-icon {
    background: #16a34a;
    /* green */
    border-color: #16a34a;
    color: var(--white);
}

/* Connecting line coloring */
.timeline-step.completed::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 27px;
    /* After icon */
    height: calc(100% + 6px);
    /* reach next icon */
    width: 2px;
    background: #16a34a;
    z-index: 1;
}

.timeline-content {
    background: var(--cream);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.timeline-step.active .timeline-content {
    background: rgba(201, 146, 42, 0.08);
    /* gold light */
    border-left: 3px solid var(--gold);
}

.timeline-content h4 {
    margin-bottom: 5px;
    color: var(--brown-dark);
    font-size: 1.05rem;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Cancelled State */
.timeline-step.cancelled .timeline-icon {
    background: #dc2626;
    /* red */
    border-color: #dc2626;
    color: var(--white);
}

.timeline-step.cancelled .timeline-content {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
}

.tracking-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

/* Form Styles for Tracking Page */
.tracking-form-card .form-group {
    margin-bottom: 20px;
}

.tracking-form-card label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 8px;
}

.tracking-form-card .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    color: var(--brown-dark);
    background: var(--cream);
    transition: var(--transition);
    box-sizing: border-box;
}

.tracking-form-card .form-control:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 146, 42, .12);
    outline: none;
}