/* Search Wizard Styles */
:root {
    /* Wizard Color Palette */
    --wizard-primary: #1E3D6B;
    --wizard-secondary: #4A7C8A;
    --wizard-accent: #FF6B35;
    --wizard-accent-light: #F7931E;
    --wizard-success: #28a745;
    --wizard-text: #1E3D6B;
    --wizard-text-muted: #6c757d;
    --wizard-background: #F7F6F4;
    --wizard-white: #ffffff;

    /* Spacing */
    --wizard-spacing-xs: 8px;
    --wizard-spacing-sm: 15px;
    --wizard-spacing-md: 20px;
    --wizard-spacing-lg: 30px;
    --wizard-spacing-xl: 40px;

    /* Borders */
    --wizard-border-radius: 10px;
    --wizard-border-radius-lg: 15px;
    --wizard-border-radius-xl: 20px;
    --wizard-border-radius-pill: 25px;

    /* Shadows */
    --wizard-shadow-sm: 0 2px 8px rgba(30, 61, 107, 0.1);
    --wizard-shadow-md: 0 5px 15px rgba(74, 124, 138, 0.2);
    --wizard-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --wizard-shadow-xl: 0 15px 35px rgba(30, 61, 107, 0.2);

    /* Transitions */
    --wizard-transition: all 0.3s ease;
    --wizard-transition-fast: all 0.2s ease;
    --wizard-transition-slow: all 0.5s ease-in-out;
}

/* Container */
.wizard-container {
    min-height: 70vh;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);
    border-radius: var(--wizard-border-radius-xl);
    padding: var(--wizard-spacing-xl);
    margin: var(--wizard-spacing-md) 0;
    box-shadow: var(--wizard-shadow-xl);
    position: relative;
    overflow: hidden;
}

/* Header */
.wizard-header {
    text-align: center;
    margin-bottom: var(--wizard-spacing-xl);
}

.wizard-title {
    color: var(--wizard-white);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--wizard-spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: var(--wizard-spacing-lg);
    font-weight: 300;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: var(--wizard-spacing-xl);
}

.wizard-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--wizard-spacing-md);
    backdrop-filter: blur(10px);
}

.wizard-progress-fill {
    background: linear-gradient(90deg, var(--wizard-accent), var(--wizard-accent-light));
    height: 100%;
    border-radius: 4px;
    transition: var(--wizard-transition-slow);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

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

.wizard-progress-step {
    background: rgba(255, 255, 255, 0.3);
    color: var(--wizard-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: var(--wizard-transition);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.wizard-progress-step.active {
    background: linear-gradient(135deg, var(--wizard-accent), var(--wizard-accent-light));
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    border-color: var(--wizard-accent);
}

.wizard-progress-step.completed {
    background: var(--wizard-success);
    border-color: var(--wizard-success);
}

.wizard-progress-step.completed::after {
    content: '✓';
    font-size: 18px;
    font-weight: bold;
}

/* Form Container */
.wizard-form {
    background: var(--wizard-white);
    border-radius: var(--wizard-border-radius-lg);
    padding: var(--wizard-spacing-xl);
    box-shadow: var(--wizard-shadow-lg);
    animation: wizard-slide-up 0.6s ease-out;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form Sections */
.wizard-form-section {
    margin-bottom: var(--wizard-spacing-lg);
}

.wizard-form-section:last-child {
    margin-bottom: 0;
}

.wizard-form-section h3 {
    color: var(--wizard-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--wizard-spacing-sm);
    padding-bottom: var(--wizard-spacing-xs);
    border-bottom: 2px solid var(--wizard-background);
    position: relative;
}

.wizard-form-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--wizard-accent), var(--wizard-accent-light));
    border-radius: 1px;
}

.wizard-form-section .help-text {
    color: var(--wizard-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--wizard-spacing-md);
    line-height: 1.5;
}

/* Checkbox Grid */
.wizard-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--wizard-spacing-sm);
    margin-top: var(--wizard-spacing-md);
}

.wizard-checkbox-item {
    background: var(--wizard-background);
    border: 2px solid transparent;
    border-radius: var(--wizard-border-radius);
    padding: var(--wizard-spacing-md);
    transition: var(--wizard-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wizard-checkbox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.wizard-checkbox-item:hover {
    border-color: var(--wizard-secondary);
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-md);
}

.wizard-checkbox-item:hover::before {
    left: 100%;
}

.wizard-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    margin: 0;
}

.wizard-checkbox-item.checked {
    border-color: var(--wizard-accent);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.08));
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.wizard-checkbox-item label {
    cursor: pointer;
    font-weight: 500;
    color: var(--wizard-text);
    margin: 0;
    display: block;
    position: relative;
    padding-right: 35px;
    pointer-events: none;
    line-height: 1.4;
    font-size: 0.95rem;
}

.wizard-checkbox-item .checkmark {
    position: absolute;
    top: var(--wizard-spacing-sm);
    right: var(--wizard-spacing-sm);
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: var(--wizard-white);
    transition: var(--wizard-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-checkbox-item.checked .checkmark {
    background: var(--wizard-accent);
    border-color: var(--wizard-accent);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.3);
}

.wizard-checkbox-item.checked .checkmark::after {
    content: '✓';
    color: var(--wizard-white);
    font-size: 14px;
    font-weight: bold;
    animation: wizard-check-bounce 0.3s ease-out;
}

/* Select Fields */
.wizard-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--wizard-border-radius);
    padding: 12px 16px;
    font-size: 16px;
    transition: var(--wizard-transition);
    background-color: var(--wizard-white);
    width: 100%;
}

.wizard-form .form-select:focus {
    border-color: var(--wizard-accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
    outline: none;
}

/* Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--wizard-spacing-xl);
    padding-top: var(--wizard-spacing-lg);
    border-top: 1px solid #eee;
}

.wizard-btn {
    padding: 14px 28px;
    border-radius: var(--wizard-border-radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--wizard-spacing-xs);
    transition: var(--wizard-transition);
    border: none;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-btn-primary {
    background: linear-gradient(135deg, var(--wizard-accent), var(--wizard-accent-light));
    color: var(--wizard-white);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.wizard-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: var(--wizard-white);
    text-decoration: none;
}

.wizard-btn-secondary {
    background: var(--wizard-text-muted);
    color: var(--wizard-white);
}

.wizard-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    color: var(--wizard-white);
    text-decoration: none;
}

.wizard-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Info Alert */
.wizard-info {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #bbdefb;
    border-radius: var(--wizard-border-radius);
    padding: var(--wizard-spacing-sm) var(--wizard-spacing-md);
    margin-top: var(--wizard-spacing-md);
    color: #1565c0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.wizard-info i {
    margin-right: var(--wizard-spacing-xs);
    color: #1976d2;
}

/* Animations */
@keyframes wizard-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wizard-check-bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-container {
        padding: var(--wizard-spacing-md);
        margin: var(--wizard-spacing-xs) 0;
        border-radius: var(--wizard-border-radius-lg);
    }

    .wizard-form {
        padding: var(--wizard-spacing-md);
    }

    .wizard-title {
        font-size: 2rem;
    }

    .wizard-subtitle {
        font-size: 1rem;
    }

    .wizard-checkbox-grid {
        grid-template-columns: 1fr;
        gap: var(--wizard-spacing-xs);
    }

    .wizard-navigation {
        flex-direction: column;
        gap: var(--wizard-spacing-sm);
    }

    .wizard-btn {
        width: 100%;
        padding: 12px 24px;
    }

    .wizard-progress-step {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wizard-container {
        padding: var(--wizard-spacing-sm);
    }

    .wizard-form {
        padding: var(--wizard-spacing-sm);
    }

    .wizard-title {
        font-size: 1.75rem;
    }

    .wizard-checkbox-item {
        padding: var(--wizard-spacing-sm);
    }

    .wizard-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}