.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;
}

.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-header {
    padding: 8px 12px;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.mb-autocomplete-item {
    padding: 10px 12px;
    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-main {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.mb-autocomplete-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.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: 600;
    font-size: 14px;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.mb-step-indicator span {
    position: absolute;
    top: 45px;
    white-space: nowrap;
    font-size: 12px;
}

.mb-step-indicator.active {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.mb-step-indicator.completed {
    background: #10b981;
    color: #fff;
}

.mb-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    margin-top: -20px;
    /* Adjust for centered circles */
}

.mb-step-line.completed {
    background: #10b981;
}

/* 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 Styles */
.dashboard-overlay {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.dashboard-overlay.active {
    visibility: visible;
    opacity: 1;
}

.sidebar-dashboard {
    transition: all 0.3s ease-in-out;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 9999;
    position: fixed;
    background: #24272C;
    overflow-y: auto;
}

.sidebar-dashboard::-webkit-scrollbar {
    width: 5px;
}

.sidebar-dashboard::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #1A2435;
}

.sidebar-dashboard .db-content {
    color: #fff;
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-dashboard .db-logo img {
    max-width: 216px;
    height: auto;
}

.sidebar-dashboard .db-author .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-dashboard .db-author .avatar img {
    border-radius: 50%;
    width: 52px;
    height: 52px;
    object-fit: cover;
}

.sidebar-dashboard .db-author .name {
    font-size: 14px;
    font-weight: 600;
}

.sidebar-dashboard .db-title {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.4;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sidebar-dashboard .db-list-menu {
    padding: 20px 15px;
}

.sidebar-dashboard .db-list-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-dashboard .db-list-menu ul li {
    margin-bottom: 8px;
}

.sidebar-dashboard .db-list-menu ul li a {
    color: #fff;
    padding: 12px 15px;
    display: flex !important;
    align-items: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    text-decoration: none !important;
}

.sidebar-dashboard .db-list-menu ul li a i {
    margin-right: 12px;
    font-size: 18px;
    opacity: 0.7;
}

.sidebar-dashboard .db-list-menu ul li a:hover,
.sidebar-dashboard .db-list-menu ul li a.active {
    background: #3b82f6;
    color: #fff !important;
}

.sidebar-dashboard .db-list-menu ul li a .count-page {
    position: absolute;
    right: 15px;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    line-height: normal;
    border-radius: 10px;
}

.dashboard-toggle {
    display: none;
    padding: 20px 25px;
    color: #24272C;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}



.bar-page .bar {

    flex-shrink: 0;
}

.bar-page .themesflat-content,
.bar-page .page {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

@media screen and (max-width: 1200px) {
    .dashboard-toggle {
        display: block !important;
    }

    .sidebar-dashboard {
        transform: translateX(-100%);
    }

    .sidebar-dashboard.active {
        transform: translateX(0);
        display: block !important;
    }

    .bar-page .bar {
        width: 0;
    }
}


/* 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 */
/* Premium Checkbox Styling */
.mb-checkbox-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mb-checkbox-group:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.mb-checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    user-select: none;
    margin: 0;
}

/* Hide default checkbox */
.mb-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkmark */
.mb-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* On mouse-over, add background color */
.mb-checkbox-label:hover input~.mb-checkmark {
    border-color: #10b981;
}

/* When checked, add background color */
.mb-checkbox-label input:checked~.mb-checkmark {
    background-color: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Create the checkmark/indicator (hidden when not checked) */
.mb-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.mb-checkbox-label input:checked~.mb-checkmark:after {
    display: block;
}

/* Style the checkmark */
.mb-checkbox-label .mb-checkmark:after {
    left: 7px;
    top: 7px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

#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;
    }
}
