/* ===== استایل‌های اختصاصی صفحه ثبت آگهی ===== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    color: var(--theme-color, #EF1D26);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.sub-title {
    color: var(--theme-color, #EF1D26);
    margin: 1.5rem 0 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* نوار پیشرفت */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 10px;
}

.progress-line {
    position: absolute;
    top: 15px;
    right: 30px;
    left: 30px;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-line-fill {
    position: absolute;
    top: 15px;
    right: 30px;
    width: 0%;
    height: 3px;
    background: var(--theme-color, #EF1D26);
    z-index: 2;
    transition: width 0.3s ease;
}

.step-item {
    position: relative;
    z-index: 3;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-weight: bold;
    font-size: 14px;
}

.step-label {
    font-size: 11px;
    color: #999;
}

/* استایل‌های شاخص مرحله */
.step-indicator-wrapper {
    margin: 20px 0;
    text-align: left;
}

.step-indicator {
    background: var(--theme-color, #EF1D26);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* استایل‌های دکمه‌های مرحله */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* ===== استایل‌های گرید نوع خودرو ===== */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.type-item {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.type-item:hover {
    border-color: var(--theme-color, #EF1D26);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.type-item.selected {
    border-color: var(--theme-color, #EF1D26);
    background: rgba(239, 29, 38, 0.05);
}

.type-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.type-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.type-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.type-item small {
    color: #666;
    font-size: 12px;
}

/* ===== استایل‌های گرید منطقه ===== */
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.region-item {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.region-item:hover {
    border-color: var(--theme-color, #EF1D26);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.region-item.selected {
    border-color: var(--theme-color, #EF1D26);
    background: rgba(239, 29, 38, 0.05);
}

.region-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.region-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.region-name {
    font-weight: bold;
    font-size: 14px;
}

/* ===== استایل‌های گرید برندها ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.brand-item {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.brand-item:hover {
    border-color: var(--theme-color, #EF1D26);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.brand-item.selected {
    border-color: var(--theme-color, #EF1D26);
    background: rgba(239, 29, 38, 0.05);
}

.brand-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.brand-name {
    font-weight: bold;
    font-size: 14px;
}

/* ===== استایل‌های گرید ماشین ===== */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.car-item {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.car-item:hover {
    border-color: var(--theme-color, #EF1D26);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.car-item.selected {
    border-color: var(--theme-color, #EF1D26);
    background: rgba(239, 29, 38, 0.05);
}

.car-item img {
    width: 150px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.car-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.car-year-range {
    font-size: 12px;
    color: #666;
}

/* ===== استایل‌های گرید تیپ ===== */
.trim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.trim-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.trim-item:hover {
    border-color: var(--theme-color, #EF1D26);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trim-item.selected {
    border-color: var(--theme-color, #EF1D26);
    background: rgba(239, 29, 38, 0.05);
}

.trim-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.trim-name {
    font-weight: bold;
    margin-bottom: 5px;
}

/* ===== استایل‌های ویژگی‌ها ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.feature-item:hover {
    background: #e9ecef;
    border-color: var(--theme-color, #EF1D26);
}

.feature-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--theme-color, #EF1D26);
}

/* ===== استایل‌های وضعیت بدنه ===== */
.condition-badge {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    margin-bottom: 15px;
}

.condition-badge:hover {
    border-color: var(--theme-color, #EF1D26);
    transform: translateY(-3px);
}

.condition-badge.selected {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.condition-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.condition-title {
    font-weight: bold;
    margin-bottom: 5px;
}

/* ===== استایل‌های آپلود فایل ===== */
.upload-box {
    padding: 20px;
    border: 2px dashed #ddd;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    margin-bottom: 15px;
}

.upload-box:hover {
    border-color: var(--theme-color, #EF1D26);
    background: rgba(239, 29, 38, 0.05);
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* ===== گالری تامبنیل ===== */
.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-left: -10px;
    margin-right: -10px;
}

.thumbnail-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.thumbnail-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.thumbnail-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 11px;
}

/* ===== لیست فایل‌ها ===== */
.file-list {
    margin-top: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 5px;
}

.file-item button {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 2px 8px;
    cursor: pointer;
}

/* ===== باکس خلاصه اطلاعات ===== */
.summary-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.summary-box table {
    width: 100%;
    border-collapse: collapse;
}

.summary-box td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.summary-box td:first-child {
    font-weight: bold;
    width: 120px;
}

/* ===== چک‌باکس قوانین ===== */
.form-check {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.form-check-input {
    margin-right: -1.5rem;
    margin-left: 0;
}

/* ===== پیام موفقیت ===== */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 10px;
    border-right: 4px solid #28a745;
    margin-bottom: 20px;
    animation: slideDown 0.5s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success i {
    font-size: 20px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* استایل تعاملی نوار پیمایش */
.step-item {
    position: relative;
    z-index: 3;
    text-align: center;
    flex: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.step-item:hover {
    transform: translateY(-2px);
}

.step-item:hover .step-circle {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.step-item:hover .step-label {
    color: var(--theme-color, #EF1D26);
}


/* اضافه کنید به انتهای فایل add_listing.css */

/* بهبود استایل نوار پیمایش */
.step-item {
    position: relative;
    z-index: 3;
    text-align: center;
    flex: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.step-item:hover {
    transform: translateY(-2px);
}

.step-item:hover .step-circle {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.step-item:hover .step-label {
    color: var(--theme-color, #EF1D26);
}

/* استایل خلاصه نهایی */
.summary-container {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, var(--theme-color, #EF1D26), #c9181f);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.summary-header h5 {
    margin: 0 0 5px;
    font-size: 18px;
}

.summary-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.summary-table {
    width: 100%;
    padding: 20px;
}

.summary-table tr td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-table tr td:first-child {
    font-weight: bold;
    width: 35%;
    background: #f0f0f0;
}

.summary-footer {
    padding: 15px 20px;
    background: #e9ecef;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.badge-success {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.badge-warning {
    background: #ffc107;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}



/* استایل‌های گرید سال */
.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.year-card {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.year-card:hover {
    border-color: var(--theme-color, #EF1D26);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.year-card.selected {
    border-color: var(--theme-color, #EF1D26);
    background: rgba(239, 29, 38, 0.05);
}

.year-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.year-badge {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ===== استایل‌های گرید شهر ===== */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin: 15px 0;
}

.city-item {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.city-item:hover {
    border-color: var(--theme-color, #EF1D26);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.city-item.selected {
    border-color: var(--theme-color, #EF1D26);
    background: rgba(239, 29, 38, 0.05);
}

.city-name {
    font-weight: bold;
    font-size: 12px;
}