/* AI-Header: Wizard components CSS - Contact Exchange Wizard styling */
/* Date: 2025-07-24 */

/* ===========================================
   PROGRESS INDICATOR MOBILE OPTIMIZATIONS
   =========================================== */

/* Additional mobile-specific optimizations for progress indicator */
@media (max-width: 576px) {
    .progress-indicator .progress-steps {
        gap: 0.25rem;
        margin: 0 0.5rem;
    }

    .progress-indicator .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
    }

    .progress-indicator .progress-connector {
        max-width: 20px !important;
        margin: 0 0.1rem !important;
    }
}

/* ===========================================
   WIZARD NAVIGATION IMPROVEMENTS
   =========================================== */

/* Enhanced mobile button stack */
@media (max-width: 576px) {
    .wizard-navigation .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .wizard-navigation .d-flex.gap-2 > * {
        width: 100%;
        min-width: auto;
    }
}

/* Button group improvements for tablet */
@media (min-width: 577px) and (max-width: 991px) {
    .wizard-navigation .d-flex.gap-2 > * {
        min-width: 120px;
    }
}

/* ===========================================
   ACCESSIBILITY IMPROVEMENTS
   =========================================== */

/* Focus states for progress indicator */
.progress-step .step-circle:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .progress-step.completed .step-circle,
    .progress-step.active .step-circle {
        border-width: 3px;
    }

    .progress-connector.completed {
        height: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .step-circle,
    .progress-connector {
        transition: none;
    }

    .progress-step.completed .step-circle {
        animation: none;
    }
}

/* ===========================================
   WIZARD LAYOUT UTILITIES
   =========================================== */

.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.wizard-step-content {
    min-height: 400px;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .wizard-container {
        padding: 0.5rem;
    }

    .wizard-step-content {
        min-height: 300px;
        padding: 1rem 0;
    }
}

/* ===========================================
   LOADING STATES
   =========================================== */

.wizard-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.wizard-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===========================================
   FORM IMPROVEMENTS FOR WIZARD
   =========================================== */

.wizard-form-group {
    margin-bottom: 1.5rem;
}

.wizard-form-group:last-child {
    margin-bottom: 0;
}

.wizard-search-input {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
    .wizard-search-input {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ===========================================
   CARD SELECTION LAYOUT
   =========================================== */

.wizard-card-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .wizard-card-selection {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1rem 0;
    }
}

.wizard-card-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background: var(--bs-body-bg);
}

.wizard-card-panel h6 {
    margin-bottom: 1rem;
    color: var(--bs-primary);
    font-weight: 600;
}

/* ===========================================
   MEMBER RESULT CARDS
   =========================================== */

.wizard-member-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wizard-member-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wizard-member-card.selected {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.wizard-member-card .member-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.wizard-member-card .member-details {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

/* ===========================================
   CONFIRMATION SUMMARY
   =========================================== */

.wizard-confirmation-summary {
    background: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

[data-bs-theme="dark"] .wizard-confirmation-summary {
    background: var(--bs-dark);
}

.wizard-confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.wizard-confirmation-item:last-child {
    border-bottom: none;
}

.wizard-confirmation-label {
    font-weight: 600;
    color: var(--bs-body-color);
}

.wizard-confirmation-value {
    color: var(--bs-secondary-color);
}
