/* Chrono24 Premium Design System */
:root {
    --wf-bg: #0b121e;
    --wf-card-bg: #151e2d;
    --wf-accent: #22c55e;
    --wf-accent-glow: rgb(34 197 94 / 12%);
    --wf-text-main: #ffffff;
    --wf-text-dim: #94a3b8;
    --wf-border: rgba(255, 255, 255, 0.08);
    --wf-glass: rgba(255, 255, 255, 0.03);
    --wf-glass-heavy: rgba(255, 255, 255, 0.06);
    --wf-blur: blur(12px);
    --wf-radius-lg: 24px;
    --wf-radius-md: 16px;
    --wf-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Base Reset & Core Layout */
.wf-dark-theme-wrapper {
    background: var(--wf-bg) !important;
    color: var(--wf-text-main) !important;
    min-height: 100vh;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 999;
}

#wf-form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* --- Persistent Progress Bar (Bottom Placement) --- */
.wf-progress-container {
   
    background: #1e293b00 !important; /* Solid dark background to fix white-bar issue */
}


.wf-progress-line {
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    position: relative;
    margin-bottom: 12px;
    overflow: hidden;
}

.wf-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 15px var(--wf-accent-glow);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.wf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.wf-progress-step .dot {
    width: 12px;
    height: 12px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.wf-progress-step .label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
}

.wf-progress-step.active .dot {
    background: var(--wf-accent);
    border-color: #fff;
    box-shadow: 0 0 10px var(--wf-accent-glow);
    transform: scale(1.2);
}

.wf-progress-step.active .label {
    color: #fff;
}

.wf-progress-step.completed .dot {
    background: var(--wf-accent);
    border-color: var(--wf-accent);
}

/* --- Smooth Step Transitions --- */
.wf-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wf-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.wf-optional-text{
    font-size:12px;
    color:#94a3b8;
    margin-left:1px;
    font-weight:400;
}

@media (max-width: 768px) {
    .wf-progress-container {
        padding: 20px;
        top: 10px;
    }
    .wf-progress-step .label {
        display: none; /* Hide labels on mobile to save space */
    }
    .wf-progress-step.active .label {
        display: block;
        position: absolute;
        bottom: -20px;
        white-space: nowrap;
    }
}

/* Typography Overhaul */
h1,
h2,
h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 12px !important;
}

p {
    color: var(--wf-text-dim) !important;
    line-height: 1.6;
}


/* Strategy Selection: Luxury Cards */
.wf-strategy-cards {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin: 40px auto !important;
    max-width: 900px !important;
}

.wf-card {
    flex: 1 !important;
    max-width: 420px !important;
    background: var(--wf-card-bg) !important;
    border: 1px solid var(--wf-border) !important;
    padding: 48px 32px !important;
    border-radius: 32px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: var(--wf-shadow) !important;
}

.wf-card:hover {
    border-color: var(--wf-accent) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 0 10px var(--wf-accent-glow) !important;
}

.wf-card.selected {
    border-color: var(--wf-accent) !important;
    background: rgba(34, 197, 94, 0.08) !important;
    box-shadow: 0 0 50px var(--wf-accent-glow) !important;
}

.wf-card-icon {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wf-card-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.wf-tagline {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--wf-accent) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.wf-description {
    font-size: 16px !important;
    margin-bottom: 24px !important;
}

.wf-hook {
    background: var(--wf-glass-heavy);
    color: #fff;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
}

.wf-price-box-luxury {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.wf-price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--wf-card-bg);
    border: 2px solid var(--wf-border);
    border-radius: 20px;
    padding: 10px 30px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.wf-price-input-wrapper:focus-within {
    border-color: var(--wf-accent);
    box-shadow: 0 0 20px var(--wf-accent-glow);
}

.wf-price-input-wrapper .currency {
    font-size: 32px;
    font-weight: 800;
    color: var(--wf-text-dim);
    margin-right: 15px;
}

.wf-price-input-wrapper input {
    background: transparent !important;
    border: none !important;
    font-size: 48px !important;
    font-weight: 900 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    text-align: left !important;
}

/* Step 2 Grid */
#path-vehicle .wf-form-row,
#technical-specs-section .wf-form-row,
.wheel_request .wf-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

@media (max-width: 768px) {

    #path-vehicle .wf-form-row,
    #technical-specs-section .wf-form-row {
        grid-template-columns: 1fr !important;
    }
}

.wf-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
    color: var(--wf-text-dim);
}

.wf-breakdown-row.total {
    border-top: 1px solid var(--wf-border);
    margin-top: 12px;
    padding-top: 20px;
    color: var(--wf-text-main);
    font-weight: 800;
    font-size: 22px;
}

.wf-breakdown-row.total span:last-child {
    color: var(--wf-accent);
}

/* Modern Select & Input styling */
.wf-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--wf-text-dim);
}

select,
input[type="text"],
input[type="number"],
input[type=url],
textarea {
    width: 100% !important;
    background: var(--wf-card-bg) !important;
    border: 1px solid var(--wf-border) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    transition: border-color 0.2s;
}

select:focus,
input:focus {
    border-color: var(--wf-accent) !important;
    outline: none !important;
}

/* Condition Grid */
.wf-condition-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.wf-cond-card {
    background: var(--wf-card-bg) !important;
    border: 1px solid var(--wf-border) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.wf-cond-card:hover {
    border-color: var(--wf-accent) !important;
    transform: translateY(-5px);
}

.wf-cond-card .wf-card-icon {
    width: 100% !important;
    height: 200px !important;
    margin: 0 auto 20px !important;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.wf-cond-card .wf-card-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.status-badge {
    display: inline-block;
    background: var(--wf-glass-heavy);
    color: var(--wf-text-dim);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--wf-accent);
}

/* Footer & Buttons */
.wf-step-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--wf-border);
}

.wf-btn-next,
.wf-btn-submit {
    background: #fff !important;
    color: #000 !important;
    font-weight: 800 !important;
    padding: 16px 48px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    transition: all 0.2s !important;
}

.wf-btn-next:hover,
.wf-btn-submit:hover {
    background: var(--wf-accent) !important;
    color: #fff !important;
    transform: scale(1.05);
}

.wf-btn-back {
    background: var(--wf-glass) !important;
    border: 1px solid var(--wf-border) !important;
    color: #fff !important;
    padding: 16px 32px !important;
    border-radius: 14px !important;
}

/* Landing Page Primary Button */
.wf-btn-primary {
    background: var(--wf-accent) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    padding: 18px 48px !important;
    border-radius: 16px !important;
}

/* Hub Styling Fixes */
.wf-hub-card {
    background: var(--wf-card-bg) !important;
    border: 1px solid var(--wf-border) !important;
    border-radius: 32px !important;
    padding: 40px !important;
    margin-bottom: 40px !important;
    box-shadow: var(--wf-shadow) !important;
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}

.wf-hub-card-media {
    width: 160px !important;
    height: 160px !important;
    border-radius: 20px !important;
    background: #000 !important;
    overflow: hidden !important;
}

.wf-hub-nav-item {
    background: var(--wf-glass) !important;
    border: 1px solid var(--wf-border) !important;
    border-radius: 20px !important;
    padding: 28px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
}

.wf-hub-nav-item:hover {
    background: var(--wf-glass-heavy) !important;
    border-color: var(--wf-accent) !important;
    transform: translateX(10px) !important;
}

/* Condition Engine Styles */
.wf-condition-initial-filter {
    background: var(--wf-card-bg);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    padding: 40px;
    margin-bottom: 40px;
}

.wf-condition-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.wf-toggle-btn {
    cursor: pointer;
    position: relative;
}

.wf-toggle-btn input {
    position: absolute;
    opacity: 0;
}

.wf-toggle-content {
    background: var(--wf-glass);
    border: 1px solid var(--wf-border);
    padding: 30px;
    border-radius: var(--wf-radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.wf-toggle-btn input:checked+.wf-toggle-content {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--wf-accent);
    box-shadow: 0 0 20px var(--wf-accent-glow);
}

.wf-toggle-content .title {
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--wf-text-main);
}

.wf-toggle-content p {
    font-size: 14px;
    margin: 0;
}

#wf-overall-condition-box {
    margin: 40px 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 2px solid var(--wf-accent);
    border-radius: var(--wf-radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.wf-overall-condition-content .label {
    font-size: 16px;
    font-weight: 600;
    color: var(--wf-text-dim);
    display: block;
    margin-bottom: 10px;
}

.wf-overall-condition-content .value {
    font-size: 32px;
    font-weight: 900;
    color: var(--wf-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pricing Info Box */
.wf-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    border-radius: var(--wf-radius-md);
    margin: 20px 0;
    color: #93c5fd;
}

.wf-info-box i {
    font-size: 24px;
    color: #60a5fa;
}

.wf-info-box p {
    margin: 0 !important;
    color: #93c5fd !important;
    font-weight: 600;
}

#wf-payout-breakdown-wrapper {
    padding: 10px 0px;
}

#tire-details .wf-form-row {
    display: grid;
    gap: 20px;
    margin-top: 16px;
}

.shipping_cost_field {
    display: grid;
    gap: 20px;
}

/* Modal Implementation - Luxury Fixed Overlay */
.wf-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(5, 8, 15, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 999999 !important;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wf-modal-container {
    background: var(--wf-card-bg) !important;
    border: 1px solid var(--wf-border) !important;
    border-radius: 32px !important;
    max-width: 900px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: var(--wf-shadow) !important;
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.wf-modal-header {
    background: var(--wf-glass-heavy) !important;
    padding: 40px !important;
    border-bottom: 1px solid var(--wf-border) !important;
}

.wf-modal-content {
    padding: 40px !important;
}

.wf-modal-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
}

.wf-condition-option {
    background: var(--wf-glass) !important;
    border: 1px solid var(--wf-border) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
}

.wf-condition-option:hover {
    background: var(--wf-glass-heavy) !important;
    border-color: var(--wf-accent) !important;
}

.wf-condition-option.selected {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: var(--wf-accent) !important;
    box-shadow: 0 0 20px var(--wf-accent-glow) !important;
}

.wf-condition-option img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    background: #000;
    transition: transform 0.3s ease;
}

.wf-condition-option:hover img {
    transform: scale(1.05);
}

.wf-modal-grid-group {
    display: none; /* Default to hidden */
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Only show as grid when it doesn't have display:none inline */
.wf-modal-grid-group:not([style*="display: none"]):not([style*="display:none"]) {
    display: grid !important;
}

@media (max-width: 600px) {
    .wf-modal-grid-group {
        grid-template-columns: 1fr !important;
    }
}

.wf-condition-option h4 {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

.wf-condition-option p {
    font-size: 14px !important;
    margin: 0 !important;
}

.wf-modal-footer {
    padding: 30px 40px !important;
    border-top: 1px solid var(--wf-border) !important;
    background: var(--wf-bg);
}

/* =============================================
   Tooltip (? icon) styles
   ============================================= */
.wf-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: var(--wf-accent);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    border: 1px solid rgba(34, 197, 94, 0.3);
    vertical-align: middle;
    margin-left: 6px;
    transition: background 0.2s;
}

.wf-help-icon:hover {
    background: rgba(34, 197, 94, 0.3);
}

.wf-tooltip-bubble {
    background: #1a2332;
    color: #e2e8f0;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    max-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    line-height: 1.5;
}

/* =============================================
   Fitment Success & Info Badges
   ============================================= */
.wf-success-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 16px;
    color: #22c55e;
    font-size: 14px;
    font-weight: 500;
}

.wf-info-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 16px;
    color: #60a5fa;
    font-size: 14px;
    font-weight: 500;
}

.wf-warning-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 600;
}

.wf-icon-warning {
    font-size: 24px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =============================================
   Select2 Dark Theme Override
   ============================================= */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: #0f1b2d !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--wf-accent) !important;
    box-shadow: 0 0 10px var(--wf-accent-glow) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: #ffffff !important;
    padding-left: 14px !important;
    line-height: 48px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--multiple .select2-selection__placeholder{
    color: rgba(255, 255, 255, 0.4) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--multiple .select2-selection__arrow{
    height: 46px !important;
    right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-container--default .select2-selection--multiple .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.4) transparent transparent transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 0px !important;
    color: #ffffff;
    line-height: 43px;
    background-color: #9a9393 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 0px solid #aaa;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    color: #fff;
    font-size: 10px;  
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
}

.select2-dropdown {
    background: #151e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important;
}

textarea.select2-search__field {
    border: none !important;
    padding: 0px !important;
    border-radius: 0px !important;
    background: transparent !important;
    width: 100% !important;
}


span.select2-search.select2-search--inline {
    width: 100%;
    padding: 0px !important;
    margin: 0px !important;
}
.select2-results {
    background: #151e2d !important;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 250px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #0b121e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    outline: none !important;
}

.select2-container--default .select2-results__option {
    color: #cbd5e1 !important;
    padding: 10px 16px !important;
    transition: background 0.15s !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected],
.select2-container--default .select2-results__option--highlighted {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
}

.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--selected {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
}

/* Fix for the white background issue reported by user */
.select2-results,
.select2-results__options {
    background: #151e2d !important;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 250px !important;
}

/* Force dropdown below and prevent overlap */
.select2-container--open .select2-dropdown--below {
    margin-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.select2-container--open .select2-dropdown--above {
    margin-top: -8px !important; /* Adjust if it's opening above */
}

.wf-select2-other-trigger {
    color: var(--wf-accent) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: block !important;
    padding: 5px 0 !important;
}

.wf-select2-other-trigger:hover {
    text-decoration: underline !important;
}

.select2-container {
    width: 100% !important;
}

/* =============================================
   OEM Toggle Pill Buttons
   ============================================= */
.wf-oem-toggle {
    display: flex;
    gap: 12px;
    width: 100%;
}

.wf-oem-pill {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--wf-text-dim);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    user-select: none;
    text-align: center;
}

.wf-oem-pill input[type="radio"] {
    display: none;
}

.wf-oem-pill.active {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: var(--wf-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px var(--wf-accent-glow);
}

.wf-spec-section-divider {
    margin: 32px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.wf-spec-section-divider span {
    font-size: 11px;
    font-weight: 800;
    color: var(--wf-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.wf-spec-section-header {
    margin: 32px 0 20px;
}

.wf-spec-section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.wf-setup-toggle .wf-oem-pill {
    position: relative;
    padding-right: 40px;
}

.wf-setup-toggle .wf-oem-pill .wf-help-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

#technical-specs-section .wf-field-group label {
    font-size: 13px;
}

#staggered-specs-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    margin: 10px 0 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wf-oem-pill:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

/* OEM (Yes) active = green */
.wf-oem-pill:first-child.active,
.wf-oem-pill:first-child:has(input:checked) {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Aftermarket (No) active = amber */
.wf-oem-pill:last-child.active,
.wf-oem-pill:last-child:has(input:checked) {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* =============================================
   Premium Photo Upload UI (Chrono24 Style)
   ============================================= */
.wf-photo-warning-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
    color: #e2e8f0;
    font-size: 15px;
}

.wf-photo-warning-box svg {
    color: #60a5fa;
    flex-shrink: 0;
}

.wf-photo-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.wf-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.wf-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1;
}

.wf-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.wf-preview-remove:hover {
    background: rgb(220, 38, 38);
    transform: scale(1.1);
}

.wf-upload-card-dashed {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
}

.wf-upload-card-dashed:hover {
    border-color: var(--wf-accent);
    background: rgba(34, 197, 94, 0.04);
}

.wf-upload-card-dashed .icon-box {
    width: 48px;
    height: 48px;
    color: var(--wf-text-dim);
    transition: color 0.3s ease;
}

.wf-upload-card-dashed:hover .icon-box {
    color: var(--wf-accent);
}

.wf-upload-card-dashed span {
    font-size: 16px;
    font-weight: 500;
    color: #cbd5e1;
}

.wf-smartphone-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.wf-smartphone-card h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.wf-smartphone-card p {
    margin: 0;
    font-size: 14px;
    color: var(--wf-text-dim);
    line-height: 1.5;
}

.wf-smartphone-card a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.wf-smartphone-card a:hover {
    text-decoration: underline;
}

.wf-photo-footer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.wf-photo-footer-info:hover {
    background: rgba(255, 255, 255, 0.07);
}

.wf-photo-footer-info a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}



/* Premium Description Textarea */
#description {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    padding: 20px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    resize: vertical !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

#description:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--wf-accent) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2) !important;
    outline: none !important;
}

/* Photo Tips Modal Content */
.wf-tips-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wf-tips-list li {
    display: flex !important;
    gap: 15px !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.wf-tips-list .tip-number {
    width: 28px !important;
    height: 28px !important;
    background: var(--wf-accent) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.wf-tips-list .tip-content h4 {
    margin: 0 0 5px 0 !important;
    font-size: 17px !important;
    color: #fff !important;
}

.wf-tips-list .tip-content p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--wf-text-dim) !important;
}



/* Generalized Selection State for all Pill Groups */
.wf-oem-pill.active,
.wf-oem-pill:has(input:checked),
.wf-toggle-btn.active,
.wf-toggle-btn:has(input:checked) {
    border-color: var(--wf-accent) !important;
    background: rgba(34, 197, 94, 0.12) !important;
    color: var(--wf-accent) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}

/* Specific styling for negative/last options */
.wf-oem-pill:last-child.active,
.wf-oem-pill:last-child:has(input:checked) {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}



/* Image Preview Item Styling & Remove Button */
.wf-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.wf-preview-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: visible;
    /* Allow button to peek outside slightly if needed */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.wf-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.wf-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    border: 2px solid var(--wf-bg);
}

.wf-preview-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Success Modal Specifics */
.wf-modal-container.success-state {
    border-top: 4px solid #22c55e;
}

.success-icon-wrap {
    animation: success-pop 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes success-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

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

/* Robust Visibility Classes */
.wf-view {
    display: none !important;
}

.wf-view-active {
    display: block !important;
}

/* Save & Close Button */
.wf-save-close {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--wf-text-dim) !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.wf-save-close:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.wf-save-close:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Overview Hub / Dashboard Styles
   ========================================================================== */
.wf-listing-hub {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.wf-hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.wf-hub-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wf-hub-header p {
    color: var(--wf-text-dim);
    font-size: 16px;
}

/* Info Strips */
.wf-info-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 14.5px;
}

.wf-info-strip.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Listing Summary Card */
.wf-hub-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.wf-hub-card-media {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.wf-hub-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-hub-card-info h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #fff;
}

.wf-hub-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wf-hub-card-meta .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--wf-accent);
}

.wf-hub-card-meta .tag {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--wf-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hub Navigation Items */
.wf-hub-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-hub-nav-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-hub-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.wf-hub-nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.wf-hub-nav-icon.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.wf-hub-nav-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.wf-hub-nav-icon.optional {
    background: rgba(255, 255, 255, 0.05);
    color: var(--wf-text-dim);
}

.wf-hub-nav-label {
    flex-grow: 1;
    font-size: 17px;
    font-weight: 600;
    color: #f8fafc;
}

.wf-hub-nav-status {
    font-size: 13px;
    margin-right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--wf-text-dim);
}

.wf-hub-nav-icon.completed+.wf-hub-nav-label+.wf-hub-nav-status {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.wf-hub-arrow {
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.wf-hub-nav-item:hover .wf-hub-arrow {
    color: #fff;
    transform: translateX(4px);
}

.wf-small-note {
    padding-top: 15px !important;
    font-size: 14px !important;
}

.wf-step-header{
    margin-bottom:10px!important;
}

/* ==========================================================================
   Responsive UI Overrides
   ========================================================================== */

@media (max-width: 900px) {
    .wf-modal-container {
        width: 95% !important;
        max-height: 95vh !important;
    }
}

@media (max-width: 768px) {

    /* Base Container */
    .wf-dark-theme-wrapper {
        padding: 40px 5px !important;
    }

    /* Typography */
    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 26px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    /* Step 1: Strategy Cards */
    .wf-strategy-cards {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .wf-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 32px 24px !important;
    }

    /* Step 2: Form Rows (already addressed partly, but ensuring coverage) */
    .wf-form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Step 3: Condition Cards */
    .wf-condition-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .wf-cond-card .wf-card-icon {
        height: 180px !important;
    }

    /* Step 4: Pricing */
    .wf-price-input-wrapper {
        padding: 8px 15px !important;
    }

    .wf-price-input-wrapper .currency {
        font-size: 24px !important;
    }

    .wf-price-input-wrapper input {
        font-size: 28px !important;
    }

    /* Condition Modals */
    .wf-modal-header,
    .wf-modal-content {
        padding: 24px !important;
    }

    .wf-modal-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .wf-condition-option {
        padding: 16px !important;
    }

    .wf-condition-option img {
        height: 140px !important;
    }

    /* Photo Upload Grid */
    .wf-photo-card-grid {
        grid-template-columns: 1fr !important;
    }

    .wf-upload-card-dashed {
        min-height: 160px !important;
        padding: 30px 15px !important;
    }

    /* Hub / Dashboard */
    .wf-hub-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 24px !important;
    }

    .wf-hub-card-media {
        margin: 0 auto !important;
    }

    .wf-hub-card-meta {
        justify-content: center !important;
    }

    .wf-hub-nav-item {
        padding: 16px !important;
    }

    .wf-hub-nav-icon {
        width: 36px !important;
        height: 36px !important;
        margin-right: 12px !important;
    }

    .wf-hub-nav-label {
        font-size: 15px !important;
    }

    /* Footer Buttons */
    .wf-step-footer {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .wf-step-footer button {
        width: 100% !important;
    }

    .wf-condition-initial-filter {
        padding: 30px;
    }

    .wf-condition-toggle-group .wf-toggle-content {
        padding: 15px;
    }

    .wf-overall-condition-content .value {
        font-size: 25px;
    }

    .wf-overall-condition-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    .wf-price-input-wrapper input {
        font-size: 20px !important;
    }

    .wf-oem-toggle {
        flex-direction: column !important;
    }
}

/* =============================================
   Toast Notification (Alert Alternative)
   ============================================= */
.wf-toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ef4444; /* Red error background */
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s;
    pointer-events: none;
}

.wf-toast-notification.wf-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.wf-toast-icon {
    font-size: 20px;
}