.srf-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.srf-title {
    color: #1e40af;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}
.srf-subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
}
.srf-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.9rem;
}
.srf-form input, .srf-form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-size: 1rem;
}
.srf-form input:focus, .srf-form select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.srf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}
.srf-col-half {
    flex: 1 1 calc(50% - 7.5px);
    min-width: 250px;
}
.srf-field-hint {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}
.srf-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    margin-top: 25px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.srf-button:hover:not([disabled]) {
    background-color: #1e40af;
}
.srf-button[disabled] {
    background-color: #9ca3af;
    cursor: not-allowed;
}
.srf-button-secondary {
    background-color: #4b5563;
}
.srf-button-secondary:hover:not([disabled]) {
    background-color: #374151;
}
.srf-button-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: auto;
}
.srf-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.4;
}
.srf-alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}
.srf-alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}
.srf-hidden { 
    display: none !important; 
}
.srf-spinner {
    margin-left: 10px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Timeline Styles */
.srf-progress-section {
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 12px;
    margin: 20px 0;
}

.srf-progress-section h4 {
    margin: 0 0 25px 0;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.srf-timeline-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Your Beautiful Timeline Design */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}
.timeline-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}
/* Vertical line connecting steps */
.timeline-step:not(:last-child):after {
    content: '';
    position: absolute;
    left: 24px;
    top: 48px;
    height: calc(100% - 24px);
    width: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    z-index: 2;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.2rem;
}
.step-content {
    flex-grow: 1;
    padding-bottom: 5px;
}
.step-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 1.1rem;
}
.step-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.step-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

/* Status-specific Styling */
.status-completed {
    background-color: #4CAF50;
    color: white;
}
.status-active {
    background-color: #2196F3;
    color: white;
    animation: pulse 2s infinite;
}
.status-pending {
    background-color: #9E9E9E;
    color: white;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}

/* Enhanced tracking container styles */
.srf-track-results {
    margin-top: 30px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.srf-track-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.srf-track-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.srf-track-summary {
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.srf-track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.srf-track-item:last-child {
    border-bottom: none;
}

.srf-track-label {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.srf-track-value {
    color: #6b7280;
    font-size: 1rem;
    text-align: right;
    font-weight: 500;
}

/* Status pills for tracking summary */
.srf-status-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.srf-status-paid { background-color: #dbeafe; color: #1e40af; }
.srf-status-pending_print { background-color: #fef3c7; color: #b45309; }
.srf-status-printing { background-color: #d1fae5; color: #065f46; }
.srf-status-signing { background-color: #e9d5ff; color: #7e22ce; }
.srf-status-ready_pickup { background-color: #dcfce7; color: #15803d; }
.srf-status-out_delivery { background-color: #ffe4e6; color: #e11d48; }
.srf-status-completed { background-color: #e5e7eb; color: #4b5563; }

.srf-track-support {
    padding: 20px 25px;
    background: #f9fafb;
    text-align: center;
}

.srf-track-support p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .srf-track-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .srf-track-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .srf-track-value {
        text-align: left;
    }
    
    .srf-col-half {
        flex: 1 1 100%;
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .timeline-step:not(:last-child):after {
        left: 24px;
        top: 48px;
        height: calc(100% - 24px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .srf-track-summary {
        background: #374151;
    }
    
    .srf-track-label {
        color: #f9fafb;
    }
    
    .step-title {
        color: #f9fafb;
    }
    
    .step-content p {
        color: #d1d5db;
    }
    
    .srf-timeline-container {
        background: #374151;
    }
}