
:root {
    --primary: var(--nidaa-primary, #7c3aed);
    --primary-light: var(--nidaa-primary-dark, #a78bfa);
    --secondary: var(--nidaa-secondary, #f43f5e);
    --success: var(--nidaa-success, #10b981);
    --warning: var(--nidaa-warning, #f59e0b);
    --dark: var(--nidaa-dark, #1f2937);
    --light: var(--nidaa-light, #f9fafb);
}

* {
    box-sizing: border-box;
}



/* لینک هماهنگ با رنگ اصلی قالب */
.link-primary {
    color: var(--primary);
    font-weight: 500;
}
.link-primary:hover {
    color: var(--primary-light);
}

/* نوار پیشرفت */
.progress-container {
    margin-bottom: 3rem;
    position: relative;
}

.progress-bar-wrapper {
    position: relative;
    padding: 20px 0 50px 0;
}

.progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: visible;
    z-index: 1;
    margin: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: -13px;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    border-color: var(--primary);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border-color: var(--success);
}

.step-title {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.step.active .step-title {
    color: var(--primary);
    font-weight: 600;
}

/* کارت‌های دسته‌بندی */
.category-card {
    --category-accent: var(--primary);
    --category-accent-bg-start: rgba(124, 58, 237, 0.12);
    --category-accent-bg-end: rgba(124, 58, 237, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--category-accent-bg-start) 0%, var(--category-accent-bg-end) 100%);
    transition: width 0.4s ease;
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--category-accent);
}

.category-card.selected {
    border-color: var(--category-accent);
    background-color: var(--category-accent-bg-start);
}

.category-card.selected::before {
    width: 100%;
}

.category-icon {
    --icon-size: 55px;
    --icon-color: #7c3aed;
    --icon-bg: rgba(124, 58, 237, 0.12);
    --icon-image: none;
    --icon-image-size: 60%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--icon-size);
    height: var(--icon-size);
    margin: 0 auto 1rem auto;
    border-radius: 9999px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--icon-image-size);
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.category-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: var(--icon-size);
    height: calc(var(--icon-size) * 0.72);
    background-color: var(--icon-bg);
    border-radius: 9999px;
    z-index: 0;
}

.category-icon > * {
    position: relative;
    z-index: 1;
}

.category-icon--tinted {
    background-image: linear-gradient(var(--icon-color), var(--icon-color)), var(--icon-image);
    background-size: 100%, var(--icon-image-size);
    background-repeat: no-repeat;
    background-position: center;
}

.category-icon svg {
    fill: var(--icon-color);
    stroke: var(--icon-color);
}

.category-icon i {
    color: var(--icon-color);
    font-size: calc(var(--icon-size) * 0.82);
    line-height: var(--icon-size);
}

/* فرم‌ها */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 1rem;
    background: white;
}

/* Allow utility classes such as bg-gray-50/cursor-not-allowed to keep control */
.form-input.bg-gray-50 {
    background-color: #f9fafb !important;
}

.form-input.cursor-not-allowed {
    cursor: not-allowed;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.required {
    color: var(--secondary);
}

/* دکمه‌ها */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* آپلود تصویر */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background-color: rgba(124, 58, 237, 0.02);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background-color: rgba(124, 58, 237, 0.05);
    transform: scale(1.02);
}

.preview-image {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.preview-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 20;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

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

.main-image-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--success);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 10;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.set-main-image {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(124, 58, 237, 0.9);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3);
    transition: all 0.2s ease;
}

.set-main-image:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   استایل‌های بخش آدرس
   ============================================ */

.address-section-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.address-section-header {
    margin-bottom: 1.5rem;
}

.address-section-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.address-section-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 0.25rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    flex-shrink: 0;
}

.address-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.address-section-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* کارت آدرس ذخیره‌شده */
.saved-address-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.saved-address-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.1);
}

.saved-address-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.saved-address-icon-wrapper {
    flex-shrink: 0;
}

.saved-address-check-icon {
    font-size: 1.5rem;
    color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.saved-address-details {
    flex: 1;
}

.saved-address-main {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.saved-address-marker {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.saved-address-text {
    flex: 1;
}

.saved-address-location {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.saved-address-province-city {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.saved-address-separator {
    color: #94a3b8;
    margin: 0 0.25rem;
}

.saved-address-neighborhood {
    font-size: 0.875rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.saved-address-neighborhood i {
    font-size: 0.75rem;
    color: var(--primary);
}

.saved-address-full {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
}

.saved-address-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8125rem;
    color: #64748b;
}

.saved-address-note i {
    color: var(--primary);
    font-size: 0.875rem;
}

.saved-address-empty {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.saved-address-empty-icon {
    font-size: 2rem;
    color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.saved-address-empty-text {
    flex: 1;
}

.saved-address-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.saved-address-empty-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Toggle برای آدرس جدید */
.address-toggle-wrapper {
    margin-bottom: 1.5rem;
}

.address-toggle-card {
    display: block;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    background: white;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.address-toggle-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.1);
}

.address-toggle-card:has(.address-toggle-input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
}

.address-toggle-input {
    display: none;
}

.address-toggle-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.address-toggle-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.address-toggle-card:has(.address-toggle-input:checked) .address-toggle-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
    transform: scale(1.1);
}

.address-toggle-text {
    flex: 1;
}

.address-toggle-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.address-toggle-desc {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
}

.address-toggle-switch {
    width: 3.5rem;
    height: 2rem;
    background: #cbd5e1;
    border-radius: 9999px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.address-toggle-slider {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.address-toggle-card:has(.address-toggle-input:checked) .address-toggle-switch {
    background: var(--primary);
}

.address-toggle-card:has(.address-toggle-input:checked) .address-toggle-slider {
    transform: translateX(-1.25rem);
}

/* فیلدهای آدرس */
.address-fields-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.address-fields-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.address-fields-header i {
    font-size: 1.25rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.address-fields-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.address-fields-grid {
    gap: 1.25rem;
}

.address-field-wrapper {
    position: relative;
}

.address-field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
}

.address-field-icon {
    font-size: 1rem;
    color: var(--primary);
}

.address-input-wrapper,
.address-textarea-wrapper {
    position: relative;
}

.address-input-icon,
.address-textarea-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.address-textarea-icon {
    top: 1rem;
    transform: none;
}

.address-input {
    padding-right: 3rem !important;
}

.address-textarea {
    padding-right: 3rem !important;
    padding-top: 1rem !important;
    resize: vertical;
    min-height: 80px;
}

/* انتخابگر محل بهبود یافته */
.location-selector-wrapper {
    position: relative;
}

.location-selector {
    position: relative;
}

.location-input-wrapper {
    position: relative;
}

.location-input {
    padding-right: 3rem !important;
    cursor: pointer;
}

.location-input-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease;
}

.location-selector:has(.location-dropdown.active) .location-input-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary);
}

.location-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 400px;
    overflow: hidden;
    display: none;
    animation: fadeInDown 0.3s ease;
}

.location-dropdown.active {
    display: block;
}

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

.location-search {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
    z-index: 51;
}

.location-search-wrapper {
    position: relative;
}

.location-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    z-index: 1;
    pointer-events: none;
}

.location-search-input {
    padding-right: 2.75rem !important;
}

.location-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.location-option {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.75rem;
    margin: 0.25rem 0;
    color: #1e293b;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-option:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    color: var(--primary);
    transform: translateX(-4px);
}

.location-option::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
}

.location-option:hover::before {
    opacity: 1;
}

/* حالت غیرفعال فیلدها - وقتی checkbox unchecked است (استفاده از آدرس پروفایل) */
.address-fields-container:has(.address-toggle-input:not(:checked)) .address-fields-grid {
    opacity: 0.6;
    pointer-events: none;
}

.address-fields-container:has(.address-toggle-input:not(:checked)) .location-input,
.address-fields-container:has(.address-toggle-input:not(:checked)) .address-input,
.address-fields-container:has(.address-toggle-input:not(:checked)) .address-textarea {
    background: #f8fafc !important;
    cursor: not-allowed !important;
    border-color: #e2e8f0 !important;
}

.address-fields-container:has(.address-toggle-input:not(:checked)) .location-input-wrapper,
.address-fields-container:has(.address-toggle-input:not(:checked)) .address-input-wrapper,
.address-fields-container:has(.address-toggle-input:not(:checked)) .address-textarea-wrapper {
    opacity: 0.6;
}

.address-fields-container:has(.address-toggle-input:checked) .address-fields-grid {
    opacity: 1;
    pointer-events: auto;
    animation: fadeInUp 0.3s ease;
}

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

/* ریسپانسیو */
@media (max-width: 768px) {
    .address-section-wrapper {
        padding: 1.5rem;
    }
    
    .address-section-title-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .address-section-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .saved-address-content {
        flex-direction: column;
    }
    
    .saved-address-main {
        flex-direction: column;
    }
    
    .address-toggle-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .address-toggle-switch {
        align-self: flex-end;
    }
    
    .address-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .address-field-wrapper.address-field-full {
        grid-column: 1;
    }
}

/* ============================================
   استایل‌های بخش اطلاعات اصلی (عنوان و بودجه)
   ============================================ */

.basic-info-section-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.basic-info-section-wrapper:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.basic-info-section-header {
    margin-bottom: 1.5rem;
}

.basic-info-section-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.basic-info-section-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 0.25rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    flex-shrink: 0;
}

.basic-info-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.basic-info-section-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.basic-info-fields-grid {
    gap: 1.25rem;
}

.basic-info-field-wrapper {
    position: relative;
}

.basic-info-field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
    flex-wrap: wrap;
}

.basic-info-field-icon {
    font-size: 1rem;
    color: var(--primary);
}

.basic-info-tooltip-icon {
    font-size: 0.875rem;
    color: #94a3b8;
    cursor: help;
    transition: color 0.3s ease;
}

.basic-info-tooltip-icon:hover {
    color: var(--primary);
}

.basic-info-input-wrapper {
    position: relative;
}

.basic-info-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}

.basic-info-input-wrapper:focus-within .basic-info-input-icon {
    color: var(--primary);
}

.basic-info-input {
    padding-right: 3rem !important;
    transition: all 0.3s ease;
}

.basic-info-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* ============================================
   استایل‌های بخش توضیحات
   ============================================ */

.description-section-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.description-section-wrapper:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.description-section-header {
    margin-bottom: 1.5rem;
}

.description-section-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.description-section-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 0.25rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    flex-shrink: 0;
}

.description-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-section-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.description-field-wrapper {
    position: relative;
}

.description-input-wrapper {
    position: relative;
}

.description-input-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #94a3b8;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}

.description-input-wrapper:focus-within .description-input-icon {
    color: var(--primary);
}

.description-textarea {
    padding-right: 3rem !important;
    padding-top: 1rem !important;
    resize: vertical;
    min-height: 150px;
    transition: all 0.3s ease;
    line-height: 1.8;
}

.description-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.description-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(124, 58, 237, 0.1);
    font-size: 0.875rem;
    color: #64748b;
}

.description-hint-icon {
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .basic-info-section-wrapper,
    .description-section-wrapper {
        padding: 1.5rem;
    }
    
    .basic-info-section-title-wrapper,
    .description-section-title-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .basic-info-section-icon,
    .description-section-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .basic-info-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .description-textarea {
        min-height: 120px;
    }
}

/* فیلدهای داینامیک */
.dynamic-field {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.dynamic-field.active {
    opacity: 1;
    transform: translateY(0);
}

/* چیدمان دو ستونه */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* فرمت اعداد */
.number-input {
    text-align: left;
    direction: ltr;
}

/* کلاس عمومی hidden */
.hidden {
    display: none !important;
}

/* بخش انتخاب دسته‌بندی */
.category-selection {
    transition: all 0.5s ease;
}

.category-selection.hidden {
    display: none;
}

/* دسته‌بندی انتخاب شده */
.selected-category {
    --category-accent: var(--primary);
    --category-accent-bg-start: rgba(124, 58, 237, 0.12);
    --category-accent-bg-end: rgba(124, 58, 237, 0.05);
    background: linear-gradient(135deg, var(--category-accent-bg-start) 0%, var(--category-accent-bg-end) 100%);
    border: 2px solid var(--category-accent);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.selected-category .category-icon {
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 1rem;
}

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

/* لودینگ */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* راهنما */
.tooltip {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    right: 50%;
    margin-right: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* پیش‌نمایش زنده */
.live-preview {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 2px solid #e5e7eb;
}

.preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.preview-content {
    line-height: 1.6;
    color: #4b5563;
}

/* روتیتور متن ناوبری */
.nav-rotator {
    position: relative;
    min-height: 1.5rem;
    text-align: center;
    font-weight: 500;
    min-width: 600px;
}
.rotator-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding: 0 0.5rem;
}
.rotator-item--active {
    opacity: 1;
}

/* انیمیشن‌های ورود */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

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

/* دکمه شناور */
/* .fab {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1);
    background: var(--primary-light);
} */

/* حالت تاریک */
@media (prefers-color-scheme: dark) {


    .form-input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .form-input:focus {
        border-color: var(--primary);
    }

    .category-card {
        background: #374151;
        border-color: #4b5563;
    }

    .category-card:hover {
        border-color: var(--primary);
    }

    .file-upload-area {
        background: #374151;
        border-color: #4b5563;
    }

    .live-preview {
        background: #374151;
        border-color: #4b5563;
    }
}

/* ریسپانسیو برای صفحه‌های کوچک */
@media (max-width: 1024px) {
    .max-w-6xl {
        max-width: 100%;
        padding: 0 1rem;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-card {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .step-title {
        font-size: 0.75rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .category-icon {
        font-size: 1.75rem;
    }

    .category-card {
        padding: 0.75rem;
    }

    .form-input {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .file-upload-area {
        padding: 1.5rem;
    }

    .preview-image img {
        width: 100px;
        height: 100px;
    }

    .fab {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        bottom: 1rem;
        left: 1rem;
    }
}

@media (max-width: 640px) {
    .max-w-6xl {
        padding: 0 0.5rem;
    }

    .bg-white.rounded-xl.shadow-lg.p-8 {
        padding: 1rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .step-indicator {
        margin-bottom: 1rem;
    }

    .progress-bar {
        margin-bottom: 1rem;
    }

    .category-card {
        padding: 0.5rem;
    }

    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .form-label {
        font-size: 0.875rem;
    }

    .form-input {
        padding: 0.625rem 0.875rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .file-upload-area {
        padding: 1rem;
    }

    .preview-image img {
        width: 80px;
        height: 80px;
    }

    .remove-image {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .main-image-badge, .set-main-image {
        font-size: 10px;
        padding: 2px 6px;
    }

    .selected-category {
        padding: 1rem;
    }

    .live-preview {
        padding: 1rem;
    }

    .preview-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .grid-cols-2.md\:grid-cols-3.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .text-3xl {
        font-size: 1.25rem;
    }

    .text-xl {
        font-size: 1rem;
    }

    .text-lg {
        font-size: 0.875rem;
    }

    .text-base {
        font-size: 0.8125rem;
    }

    .text-sm {
        font-size: 0.75rem;
    }

    .step-title {
        font-size: 0.625rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .category-icon {
        font-size: 1.25rem;
    }

    .form-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .file-upload-area {
        padding: 0.75rem;
    }

    .preview-image img {
        width: 60px;
        height: 60px;
    }

    .remove-image {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .main-image-badge, .set-main-image {
        font-size: 8px;
        padding: 1px 4px;
    }

    .selected-category {
        padding: 0.75rem;
    }

    .live-preview {
        padding: 0.75rem;
    }

    .preview-title {
        font-size: 1rem;
    }

    .fab {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* بهبود نمایش در صفحه‌های بسیار بزرگ */
@media (min-width: 1536px) {
    .max-w-6xl {
        max-width: 1280px;
    }
}

/* بهبود نمایش در حالت افقی */
@media (orientation: landscape) and (max-height: 600px) {
    .progress-bar {
        margin-bottom: 1rem;
    }

    .step-indicator {
        margin-bottom: 1rem;
    }

    .category-card {
        padding: 0.75rem;
    }

    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* لودینگ Overlay برای ثبت فرم */
.submit-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.submit-loading-content {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
}

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

.submit-loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Edit Loading Overlay */
.edit-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.edit-loading-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 400px;
}

.edit-loading-spinner {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-loading-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.edit-loading-subtext {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.submit-loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.submit-loading-subtext {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* استایل دکمه در حالت لودینگ */
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

#submitBtn:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   استایل‌های بخش ماهیت آگهی
   ============================================ */

.ad-nature-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.ad-nature-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ad-nature-header {
    margin-bottom: 1.75rem;
}

.ad-nature-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ad-nature-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 0.25rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    flex-shrink: 0;
}

.ad-nature-icon i {
    font-size: 1.75rem;
    color: var(--primary);
    display: block;
}

.ad-nature-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-nature-description {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.ad-nature-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ad-nature-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    background: white;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ad-nature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -4px rgba(124, 58, 237, 0.2);
}

.ad-nature-card:has(.ad-nature-radio:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.03) 100%);
    box-shadow: 0 8px 16px -4px rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
}

.ad-nature-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ad-nature-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.ad-nature-card-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-nature-card-icon i {
    font-size: 2rem;
    z-index: 1;
    position: relative;
    display: block;
}

.ad-nature-card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.125rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.product-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.product-icon i {
    color: #3b82f6;
}

.product-icon::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
}

.service-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.08) 100%);
}

.service-icon i {
    color: #ec4899;
}

.service-icon::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(236, 72, 153, 0.15) 100%);
}

.ad-nature-card:has(.ad-nature-radio:checked) .ad-nature-card-icon::before {
    opacity: 1;
}

.ad-nature-card:has(.ad-nature-radio:checked) .product-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    transform: scale(1.1);
}

.ad-nature-card:has(.ad-nature-radio:checked) .service-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(236, 72, 153, 0.15) 100%);
    transform: scale(1.1);
}

.ad-nature-card-text {
    flex: 1;
}

.ad-nature-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
}

.ad-nature-card:has(.ad-nature-radio:checked) .ad-nature-card-title {
    color: var(--primary);
}

.ad-nature-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.ad-nature-card-check {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ad-nature-card-check i {
    color: var(--primary);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ad-nature-card:has(.ad-nature-radio:checked) .ad-nature-card-check {
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary);
    background: var(--primary);
}

.ad-nature-card:has(.ad-nature-radio:checked) .ad-nature-card-check i {
    opacity: 1;
    transform: scale(1);
    color: white;
}

/* زیرگزینه‌ها */
.ad-nature-sub-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    opacity: 1;
    max-height: 2000px;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease, padding-top 0.4s ease, border-top 0.4s ease;
}

.ad-nature-sub-options.hidden {
    display: none;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

.ad-nature-sub-section {
    margin-bottom: 2rem;
}

.ad-nature-sub-section:last-child {
    margin-bottom: 0;
}

/* Keep product-specific subsections on a single row for desktop */
#productOfferOptions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

#productOfferOptions .ad-nature-sub-section {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #productOfferOptions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.ad-nature-sub-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ad-nature-sub-header i {
    font-size: 1.25rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    position: relative;
}


.ad-nature-sub-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.ad-nature-sub-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ad-nature-choice-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    background: white;
    padding: 1.25rem 1.75rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    min-width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ad-nature-choice-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 16px -4px rgba(124, 58, 237, 0.15);
}

.ad-nature-choice-card:has(.ad-nature-choice-radio:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.2);
}

.ad-nature-choice-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ad-nature-choice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-direction: column;
}

.ad-nature-choice-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.ad-nature-choice-icon i {
    font-size: 1.75rem;
    z-index: 1;
    position: relative;
    display: block;
}

.buyer-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
}

.buyer-icon i {
    color: #22c55e;
}

.seller-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.08) 100%);
}

.seller-icon i {
    color: #f97316;
}

.single-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.08) 100%);
}

.single-icon i {
    color: #0ea5e9;
}

.bulk-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
}

.bulk-icon i {
    color: #a855f7;
}

.seeker-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.seeker-icon i {
    color: #3b82f6;
}

.provider-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.08) 100%);
}

.provider-icon i {
    color: #ec4899;
}

.ad-nature-choice-card:has(.ad-nature-choice-radio:checked) .ad-nature-choice-icon {
    transform: scale(1.15);
    box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.3);
}

.ad-nature-choice-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s ease;
}

.ad-nature-choice-card:has(.ad-nature-choice-radio:checked) .ad-nature-choice-text {
    color: var(--primary);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .ad-nature-section {
        padding: 1.5rem;
    }
    
    .ad-nature-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ad-nature-card-content {
        padding: 1.5rem;
    }
    
    .ad-nature-card-icon {
        width: 4rem;
        height: 4rem;
        font-size: 1.75rem;
    }
    
    .ad-nature-sub-choices {
        flex-direction: column;
    }
    
    .ad-nature-choice-card {
        min-width: 100%;
    }
    
    .ad-nature-choice-content {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .ad-nature-section {
        padding: 1.25rem;
    }
    
    .ad-nature-title-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .ad-nature-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .ad-nature-title {
        font-size: 1.125rem;
    }
    
    .ad-nature-description {
        font-size: 0.875rem;
    }
    
    .ad-nature-card-content {
        padding: 1.25rem;
    }
    
    .ad-nature-card-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
    
    .ad-nature-card-title {
        font-size: 1rem;
    }
    
    .ad-nature-card-desc {
        font-size: 0.8125rem;
    }
}

