.motobike-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nice-select {
    display: none !important;
}
.motobike-form-container h2 {
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 700;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}



/* Force visibility for specific fields to override theme conflicts */
#mb-brand,
#mb-model,
#mb-category,
#mb-engine-cc,
#mb-fuel,
#mb-year,
#mb-condition,
#mb-color,
#mb-cylinders,
#mb-price {
    display: block !important;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    color: #9ca3af;
}

/* Location Autocomplete */
.mb-location-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 520px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.mb-autocomplete-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.mb-autocomplete-item:last-child { border-bottom: none; }
.mb-autocomplete-item:hover { background: #f3f4f6; }

.mb-autocomplete-line {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.mb-autocomplete-empty {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

#mb-submit-btn {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#mb-submit-btn:hover {
    background: #333;
}

#mb-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

#motobike-form-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

#motobike-form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

#motobike-form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Image Upload & Previews */
.mb-upload-zone {
    display: block;
    /* Ensure it is a block for label clickability */
    border: 2px dashed #d1d5db;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.mb-upload-zone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.mb-upload-zone p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.mb-previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.mb-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.mb-preview-item.is-featured {
    border-color: #3b82f6;
}

.mb-preview-item.is-featured::after {
    content: "MINIATURE";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #3b82f6;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 2px 0;
}

.mb-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
}

.mb-preview-remove:hover {
    background: #ef4444;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

/* Multi-Step Wizard (Stepper) */
.mb-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.mb-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    color: #9ca3af;
    font-weight: 700;
    font-size: 14px;
    width: 42px;
    height: 42px;
    background: #f3f4f6;
    border-radius: 50%;
    line-height: 42px;
    text-align: center;
    transition: all 0.3s ease;
}

.mb-step-indicator span {
    position: absolute;
    top: 47px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.3px;
}

.mb-step-indicator.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.mb-step-indicator.active span {
    color: #4f46e5;
}

.mb-step-indicator.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.mb-step-indicator.completed span {
    color: #059669;
}

.mb-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    margin-top: -20px;
    transition: background 0.3s ease;
}

.mb-step-line.completed {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Auto-select badge (Catégorie / CC / Carburant) */
.mb-auto-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    letter-spacing: 0.4px;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
}

/* Step Visibility */
.mb-form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.mb-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Dashboard Sidebar removed to use theme defaults */


/* Navigation Buttons */
.mb-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.mb-step-navigation button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mb-next-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
}

.mb-next-btn:hover {
    background: #333;
}

.mb-prev-btn.secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.mb-prev-btn.secondary:hover {
    background: #e5e7eb;
}

/* Searchable Scrolling Brand Field */
.mb-searchable-brand-list {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 5px;
}

.mb-brand-filter {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    background: #f9fafb;
    outline: none;
}

.mb-brand-filter:focus {
    background: #fff;
    border-bottom-color: #3b82f6;
}

.mb-brand-scroll-container {
    max-height: 180px;
    overflow-y: auto;
}

.mb-scrollable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mb-brand-option {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.mb-brand-option:last-child {
    border-bottom: none;
}

.mb-brand-option:hover {
    background: #eff6ff;
    color: #3b82f6;
}

.mb-brand-option.active {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
}

/* Custom Scrollbar for Brand List */
.mb-brand-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.mb-brand-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mb-brand-scroll-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.mb-brand-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.mb-brand-scroll-container .no-results {
    padding: 15px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Hide default submit button since it's now in step navigation */
/* Modern Semantic Checkbox Styling */
.checkbox-group-item {
    margin: 24px 0;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-group-item:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 36px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    user-select: none;
    margin: 0;
    line-height: 24px;
}

/* Hide default checkbox */
.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkmark visual */
.checkbox-custom-visual {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 6px; /* Modern slightly rounded corners instead of circle */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state for indicator */
.checkbox-label:hover input ~ .checkbox-custom-visual {
    border-color: #10b981;
    background-color: #f8fafc;
}

/* Checked state */
.checkbox-label input:checked ~ .checkbox-custom-visual {
    background-color: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Inner indicator (Checkmark icon) */
.checkbox-custom-visual:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    transition: all 0.2s ease;
}

/* Show indicator when checked */
.checkbox-label input:checked ~ .checkbox-custom-visual:after {
    display: block;
    animation: checkAnimation 0.2s ease-in-out forwards;
}

@keyframes checkAnimation {
    from {
        opacity: 0;
        transform: rotate(45deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

/* Focus state for accessibility */
.checkbox-label input:focus-visible ~ .checkbox-custom-visual {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

#mb-submit-btn {
    margin-top: 0;
}

/* Success Modal Styling */
.mb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mb-modal.active {
    display: flex;
    /* Centering support */
}

.mb-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: modalScaleUp 0.3s ease;
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mb-modal-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mb-modal-icon svg {
    width: 30px;
    height: 30px;
}

.mb-modal-content h2 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.mb-modal-content p {
    color: #4b5563;
    margin-bottom: 30px;
}

.mb-modal-actions {
    display: flex;
    justify-content: center;
}

.mb-modal-actions button {
    min-width: 150px;
}

/* Recap Modal Specific Styling */
.mb-recap-content {
    max-width: 700px;
    width: 98%;
}

.mb-recap-content h2 {
    color: #3b82f6;
    /* A distinct color for review */
}

.mb-recap-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
}

.mb-recap-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mb-recap-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #4b5563;
}

.mb-recap-details li:last-child {
    border-bottom: none;
}

.mb-recap-details li strong {
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 15px;
}

.mb-trim-text {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.mb-recap-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mb-recap-actions button {
    flex: 1;
    white-space: normal;
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsiveness for recap modal */
@media (max-width: 768px) {
    .mb-recap-content {
        max-width: 90%;
    }
    
    .mb-recap-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .mb-recap-actions button {
        white-space: normal;
        padding: 14px 16px;
    }
}

/* Inline Validation Styling */
.mb-error-message {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
    animation: slideInDown 0.2s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Choice Modal Styles */
.tf-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tf-modal-container.active {
    display: flex;
    opacity: 1;
}

.tf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.tf-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.tf-modal-container.active .tf-modal-content {
    transform: translateY(0);
}

.tf-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tf-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.tf-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.tf-modal-close:hover {
    color: #e74c3c;
}

.tf-modal-body {
    padding: 30px;
}

.listing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.listing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.listing-card:hover {
    background: #fff;
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
}

.listing-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 30px;
    transition: all 0.3s;
}

.car-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.moto-icon {
    background: #ecfdf5;
    color: #10b981;
}

.listing-card:hover .icon-box {
    transform: scale(1.1);
}

.listing-card span {
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    text-align: center;
}

@media (max-width: 480px) {
    .listing-options {
        grid-template-columns: 1fr;
    }
}