/* ====================
   VISA TRACKING SYSTEM STYLES
   ==================== */

.visa-tracking-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Tracking Form */
.visa-tracking-form {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 115, 170, 0.3);
}

.visa-tracking-form h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.tracking-subtitle {
    margin: 0 0 30px 0;
    font-size: 16px;
    opacity: 0.9;
}

.tracking-input-group {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 15px;
}

#visa-tracking-reference {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
}

.visa-track-btn {
    padding: 15px 30px;
    background: white;
    color: #0073aa;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.visa-track-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.visa-track-btn.secondary {
    background: #0073aa;
    color: white;
}

.visa-track-btn.secondary:hover {
    background: #005177;
}

.track-icon {
    margin-right: 5px;
}

.tracking-help {
    margin-top: 15px;
}

.tracking-help small {
    opacity: 0.85;
    font-size: 13px;
}

/* Tracking Results */
.visa-tracking-results {
    margin-top: 40px;
}

.tracking-result-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tracking-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.tracking-reference {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

/* Info Grid */
.tracking-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tracking-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.info-value.payment-success {
    color: #4caf50;
}

.info-value.payment-pending {
    color: #ffa500;
}

.info-value.payment-failed {
    color: #f44336;
}

/* Current Status */
.tracking-current-status {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.status-icon {
    font-size: 48px;
    line-height: 1;
}

.status-content h4 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #333;
}

.status-content p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Timeline */
.tracking-timeline {
    margin: 30px 0;
}

.tracking-timeline h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.timeline-items {
    position: relative;
    padding-left: 40px;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, #0073aa, #e0e0e0);
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    flex: 1;
    padding-top: 5px;
}

.timeline-status {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.timeline-notes {
    font-size: 14px;
    color: #666;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
}

/* Actions */
.tracking-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Loading State */
.visa-track-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.visa-track-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.tracking-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .visa-tracking-form {
        padding: 30px 20px;
    }
    
    .visa-tracking-form h2 {
        font-size: 24px;
    }
    
    .tracking-input-group {
        flex-direction: column;
    }
    
    .tracking-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tracking-info-grid {
        grid-template-columns: 1fr;
    }
    
    .tracking-current-status {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-items {
        padding-left: 30px;
    }
    
    .timeline-items::before {
        left: 14px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
