/* Public Tracking Styles - The Milestone Flow */
:root {
    --bot-primary-color: var(--bot-primary-color);
    --bot-primary-color-rgb: 34, 113, 177;
}

.bot-public-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.bot-public-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
}

/* Current Status Header */
.bot-status-summary {
    text-align: center;
    background: linear-gradient(135deg, var(--bot-primary-color) 0%, #135e96 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 50px;
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(34, 113, 177, 0.3);
}

.bot-status-summary strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.bot-status-value {
    font-size: 28px;
    font-weight: 800;
}

/* Timeline Container */
.bot-timeline-container {
    position: relative;
    padding: 10px 0;
}

.bot-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* The Connecting Line */
.bot-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.bot-timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Badge / Marker (Step Number) */
.bot-timeline-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-weight: 700;
    font-size: 14px;
    color: #94a3b8;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Checkmark at the end */
.bot-timeline-item.is-completed::after {
    content: '✓';
    margin-left: auto;
    width: 24px;
    height: 24px;
    background: #10b981; /* Green */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Item States */
.bot-timeline-item.is-completed {
    border-color: #e0eefe;
    background: #f8fafc;
}

.bot-timeline-item.is-completed .bot-timeline-marker {
    background: var(--bot-primary-color);
    border-color: var(--bot-primary-color);
    color: #fff;
}

.bot-timeline-item.is-current {
    border-color: var(--bot-primary-color);
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(34, 113, 177, 0.1);
    transform: scale(1.02);
}

.bot-timeline-item.is-current .bot-timeline-marker {
    background: var(--bot-primary-color);
    border-color: var(--bot-primary-color);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(34, 113, 177, 0.15);
}

.bot-timeline-content {
    font-size: 17px;
    font-weight: 600;
    color: #64748b;
}

.bot-timeline-item.is-completed .bot-timeline-content {
    color: #1e293b;
}

.bot-timeline-item.is-current .bot-timeline-content {
    color: var(--bot-primary-color);
    font-weight: 800;
}

/* Form Styles */
.bot-tracking-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
    max-width: 500px;
    margin: 0 auto;
}

.bot-tracking-form p {
    margin-bottom: 20px;
}

.bot-tracking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.bot-tracking-form input[type="text"],
.bot-tracking-form input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.bot-tracking-form button {
    width: 100%;
    padding: 16px;
    background: var(--bot-primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.bot-track-another {
    display: block;
    text-align: center;
    margin-top: 50px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.bot-track-another:hover {
    color: var(--bot-primary-color);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .bot-public-container {
        margin: 20px auto;
    }
    .bot-public-container h2 {
        font-size: 24px;
    }
    .bot-status-summary {
        padding: 20px;
        margin-bottom: 30px;
    }
    .bot-status-value {
        font-size: 22px;
    }
    .bot-tracking-form-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .bot-timeline::before {
        left: 30px;
    }
    .bot-timeline-marker {
        width: 30px;
        height: 30px;
        margin-right: 15px;
        font-size: 12px;
    }
    .bot-timeline-item {
        padding: 12px 15px;
    }
    .bot-timeline-content {
        font-size: 15px;
    }
    .bot-timeline-item.is-completed::after {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

