/* Custom Web-to-Print Configurator & Preview 3 Wizard Styles */
.config-step-card {
    background-color: #ffffff !important;
    border-left: 4px solid #4f46e5 !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.06);
}

.config-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   Vibrant, Colorful & User-Friendly POD Order Flow Design System
   ========================================================================== */

/* Main Wizard Card Container */
.wizard-card-container {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
    overflow: hidden;
}

/* Wizard Header Title */
.wizard-header-title {
    font-weight: 800;
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Top Progress Indicator Bar */
.wizard-progress-bar-container {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 2px solid #e0e7ff;
    padding: 1.25rem 1.5rem;
}

.wizard-steps-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.25s ease;
    user-select: none;
    position: relative;
}

.wizard-step-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.wizard-step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* Step Line Connector */
.wizard-step-line {
    flex: 1;
    height: 4px;
    background-color: #e2e8f0;
    margin: 0 12px;
    margin-bottom: 24px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Completed Step State */
.wizard-step-item.completed .wizard-step-bubble {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.wizard-step-item.completed .wizard-step-label {
    color: #065f46;
}

.wizard-step-line.completed {
    background: linear-gradient(90deg, #10b981 0%, #6366f1 100%);
}

/* Active Current Step State */
.wizard-step-item.active .wizard-step-bubble {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4338ca;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25);
    transform: scale(1.12);
}

.wizard-step-item.active .wizard-step-label {
    color: #4338ca;
    font-weight: 800;
}

/* Step Content Panes */
.wizard-step-pane {
    display: none;
    animation: fadeInStep 0.3s ease-in-out;
}

.wizard-step-pane.active {
    display: block;
}

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

/* Vibrant Selection Cards */
.select-choice-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
}

.select-choice-card:hover {
    border-color: #818cf8;
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
}

.select-choice-card.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.select-choice-card .check-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.select-choice-card.selected .check-badge {
    opacity: 1;
}

/* Segmented Control Pill Groups */
.segmented-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.segmented-btn:hover {
    border-color: #818cf8;
    background: #f5f3ff;
}

.segmented-btn.active {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #eeef2a 0%, #e0e7ff 100%);
    color: #3730a3;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* Bottom Navigation Bar */
.wizard-navigation-bar {
    background-color: #ffffff;
    border-top: 2px solid #e0e7ff;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Stepper Adjustments */
@media (max-width: 768px) {
    .wizard-steps-wrapper {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .wizard-step-label {
        font-size: 0.72rem;
    }

    .wizard-step-bubble {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .wizard-step-line {
        margin: 0 6px;
        margin-bottom: 18px;
    }

    .segmented-btn {
        min-width: 45%;
    }
}

/* ==========================================================================
   DYNAMIC COLOR MODE THEME TRANSFORMATION (Black & White vs Full Colour)
   ========================================================================== */

/* --- 1. BLACK & WHITE MODE THEME (.theme-mode-bw) --- */
.theme-mode-bw {
    border-color: #0f172a !important;
}

.theme-mode-bw .card-header,
.theme-mode-bw .wizard-progress-bar-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
}

.theme-mode-bw .wizard-header-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-mode-bw .wizard-step-item.active .wizard-step-bubble {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
    border-color: #0f172a !important;
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.2) !important;
}

.theme-mode-bw .wizard-step-item.active .wizard-step-label {
    color: #0f172a !important;
}

.theme-mode-bw .select-choice-card.selected {
    border-color: #0f172a !important;
    background: #f8fafc !important;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.15) !important;
}

.theme-mode-bw .select-choice-card .check-badge {
    background: #0f172a !important;
}

.theme-mode-bw .segmented-btn.active {
    border-color: #0f172a !important;
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

.theme-mode-bw #live_price_update_badge {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.theme-mode-bw #badge_rate_tag {
    background: #0f172a !important;
    color: #ffffff !important;
}

.theme-mode-bw .badge-theme-mode {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* --- 2. FULL COLOUR MODE THEME (.theme-mode-color) --- */
.theme-mode-color {
    border-color: #7c3aed !important;
}

.theme-mode-color .card-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%) !important;
    color: #ffffff !important;
}

.theme-mode-color .wizard-header-title {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-mode-color .wizard-step-item.active .wizard-step-bubble {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%) !important;
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.3) !important;
}

.theme-mode-color .wizard-step-item.active .wizard-step-label {
    color: #7c3aed !important;
}

.theme-mode-color .select-choice-card.selected {
    border-color: #7c3aed !important;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%) !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25) !important;
}

.theme-mode-color .select-choice-card .check-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%) !important;
}

.theme-mode-color .segmented-btn.active {
    border-color: #7c3aed !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}

.theme-mode-color #live_price_update_badge {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%) !important;
    color: #7c3aed !important;
    border: 1px solid #e9d5ff !important;
}

.theme-mode-color #badge_rate_tag {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%) !important;
    color: #ffffff !important;
}
