/* ===== PROGRESS BAR STYLES FOR CANEE CARE ACADEMY ===== */

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-orange), #ff8c42);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* Loading Progress Bar */
.loading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-progress-bar.active {
    opacity: 1;
    visibility: visible;
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF6B35, #42a5f5, #FF6B35);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    transition: width 0.3s ease;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Form Progress Styles */
.form-progress {
    margin-bottom: 30px;
    padding: 20px 0;
}

.form-progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.form-step.active .step-circle {
    background: #FF6B35;
    border-color: #FF6B35;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.form-step.completed .step-circle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.form-step.completed .step-circle::before {
    content: '✓';
    font-size: 14px;
}

.step-line {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
    transition: background 0.3s ease;
}

.form-step:last-child .step-line {
    display: none;
}

.form-step.completed .step-line {
    background: #28a745;
}

/* Skill Progress Bars */
.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
}

.skill-percentage {
    font-weight: bold;
    color: #FF6B35;
    font-size: 14px;
}

.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF6B35, #ff8c42);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: skill-shine 2s infinite;
}

@keyframes skill-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Success Message */
.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    margin-top: 15px;
    animation: slideIn 0.3s ease;
}

.success-message i {
    margin-right: 10px;
    color: #28a745;
    font-size: 18px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar Variants */
.progress-bar-rounded {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-thin .scroll-progress-bar {
    height: 2px;
}

.progress-bar-thick .scroll-progress-bar {
    height: 6px;
}

/* Additional Form Styling */
.progress-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.progress-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.progress-form .form-control:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.progress-form .form-label {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
}

/* Achievement Section Enhancements */
.skills-section h4 {
    color: #2C3E50;
    font-weight: bold;
    border-bottom: 2px solid #FF6B35;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-progress-container {
        max-width: 300px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .skill-percentage {
        align-self: flex-end;
    }
    
    .progress-form {
        padding: 20px;
    }
    
    .skills-section .row {
        gap: 30px 0;
    }
}

@media (max-width: 480px) {
    .form-progress-container {
        max-width: 250px;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .scroll-progress-bar {
        height: 3px;
    }
    
    .progress-form {
        padding: 15px;
        margin: 0 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .scroll-progress-bar {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .skill-bar {
        background: #343a40;
    }
    
    .step-circle {
        background: #343a40;
        border-color: #495057;
        color: #adb5bd;
    }
    
    .skill-name {
        color: #f8f9fa;
    }
    
    .progress-form {
        background: #2d3748;
        color: white;
    }
    
    .progress-form .form-control {
        background: #4a5568;
        border-color: #718096;
        color: white;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .scroll-progress-fill {
        background: #000;
    }
    
    .step-circle {
        border-width: 3px;
    }
    
    .skill-fill {
        background: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress-fill,
    .loading-progress-fill,
    .skill-fill,
    .step-circle {
        transition: none;
    }
    
    .skill-fill::after {
        animation: none;
    }
    
    .loading-progress-fill {
        animation: none;
    }
}

/* Contact Form Section Styling */
.contact-form-section {
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.02), rgba(44,62,80,0.02));
    pointer-events: none;
}

.contact-form-section .container {
    position: relative;
    z-index: 2;
}