/* ============================================
   REGISTRATION GUIDANCE SYSTEM
   Enhanced UX for Recurring Events Registration
   Version: 1.0
   ============================================ */

.registration-guidance-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.registration-progress-bar {
    margin-bottom: 40px;
}

.progress-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #005177 100%);
    
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-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: shimmer 2s infinite;
}

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

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

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

.progress-step.active,
.progress-step.complete {
    opacity: 1;
}

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

.progress-step.active .step-circle {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.2);
    animation: pulse 2s infinite;
}

.progress-step.complete .step-circle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.progress-step.complete .step-circle::before {
    content: '✓';
    position: absolute;
    font-size: 20px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 115, 170, 0.1);
    }
}

.step-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    
}

.progress-step.active .step-label,
.progress-step.complete .step-label {
    color: #0073aa;
}

/* ============================================
   GUIDANCE STEPS
   ============================================ */

.guidance-step {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    
    opacity: 0.6;
}

.guidance-step.pending {
    opacity: 0.6;
}

.guidance-step.active {
    border-color: #0073aa;
    box-shadow: 0 8px 24px rgba(0, 115, 170, 0.15);
    opacity: 1;
    animation: slideInUp 0.5s ease;
}

.guidance-step.complete {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0f9f4 0%, #ffffff 100%);
    opacity: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        
    }
    to {
        opacity: 1;
        
    }
}

.step-header {
    display: flex;
    gap: 20px;
    padding: 25px;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    
}

.guidance-step.active .step-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}


.step-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
}

.guidance-step.complete .step-icon::after {
    content: '✓';
    position: absolute;
    margin-left: -10px;
    margin-top: -5px;
    font-size: 24px;
    background: #28a745;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.step-title {
    flex: 1;
}

.step-title h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.guidance-step.pending .step-title h3 {
    color: #95a5a6;
}

.step-status {
    margin-top: 5px;
}

.step-status span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-locked {
    background: #e9ecef;
    color: #6c757d;
}

.status-active {
    background: #d4edda;
    color: #155724;
    animation: gentle-pulse 2s infinite;
}

.status-complete {
    background: #d4edda;
    color: #155724;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.step-body {
    padding: 0 25px 25px 85px;
    animation: expandDown 0.3s ease;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.guidance-step.pending .step-body {
    display: none;
}

.step-description {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
    margin: 0 0 20px 0;
}

/* ============================================
   ACTION BOX
   ============================================ */

.step-action-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-box-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.action-box-content {
    flex: 1;
}

.action-box-content p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #495057;
}

.action-box-content p:last-of-type {
    font-size: 14px;
    color: #6c757d;
}

/* ============================================
   BUTTONS
   ============================================ */

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    margin-top: 15px;
}


.primary-btn:active {
    
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* ============================================
   HELP TEXT
   ============================================ */

.step-help-text {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #856404;
    margin-top: 20px;
}

/* ============================================
   FEATURES LIST
   ============================================ */

.step-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 6px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item span:last-child {
    color: #495057;
    font-size: 14px;
}

/* ============================================
   CONFETTI ANIMATION
   ============================================ */

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ffc107;
    animation: confetti-fall 3s linear;
    z-index: 9999;
    pointer-events: none;
}

@keyframes confetti-fall {
    to {
        
        opacity: 0;
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.guidance-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.guidance-loading-overlay p {
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

/* ============================================
   ATTENTION ANIMATIONS
   ============================================ */

@keyframes attention-pulse {
    0%, 100% { 
         
    }
    50% { 
         
        box-shadow: 0 0 30px rgba(0,115,170,0.3);
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .registration-guidance-wrapper {
        margin: 20px -15px;
    }
    
    .registration-progress-bar {
        position: sticky;
        top: 60px;
        background: white;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 99;
        margin: 0 0 20px 0;
    }
    
    .progress-steps {
        padding: 0 10px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .guidance-step {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .guidance-step.active {
        border-left: none;
        border-right: none;
    }
    
    .step-header {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .step-icon {
        font-size: 32px;
    }
    
    .step-title h3 {
        font-size: 18px;
    }
    
    .step-body {
        padding: 0 15px 20px 62px;
    }
    
    .step-action-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .action-box-icon {
        font-size: 32px;
    }
    
    .primary-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .step-title h3 {
        font-size: 16px;
    }
    
    .step-body {
        padding-left: 15px;
        padding-top: 15px;
        border-top: 1px solid #e9ecef;
    }
    
    .progress-step {
        flex-direction: column;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .step-label {
        font-size: 10px;
        margin-top: 5px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .registration-guidance-wrapper {
        display: none;
    }
}
