/* ============================================================
   استایل اختصاصی بخش صنعت و تجهیزات
   ✅ ایزوله‌سازی کامل برای جلوگیری از نشت به هدر و فوتر
   ✅ رفع مشکل مخفی شدن گزینه‌های سلکت باکس
   ✅ حذف تعریف‌های تکراری فونت و استفاده از Font Manager متمرکز
   Version: 1.3.0 - ایزوله‌سازی + رفع سلکت باکس
   ============================================================ */

/* ============================================================
   ✅ فونت‌ها توسط Font Manager متمرکز بارگذاری می‌شوند
   ❌ تعریف @font-face در این فایل حذف شد
   ============================================================ */

/* ============================================================
   Main Container - فقط داخل .sadtik-form-wrapper
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] {
    background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(243,244,246,0.95));
    border: 1px solid #D1D5DB;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6b7280, #9ca3af, #6b7280);
    opacity: 0.8;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"]:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #9ca3af;
}

/* ============================================================
   Card Header - فقط داخل .sadtik-form-wrapper
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(107, 114, 128, 0.15);
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header i {
    font-size: 22px;
    color: #4b5563;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header i:hover {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 15px rgba(107, 114, 128, 0.3);
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    font-family: 'Estedad', sans-serif;
}

/* ============================================================
   Field Groups - فقط داخل .sadtik-form-wrapper
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-field-group {
    margin-bottom: 22px;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 8px;
    font-family: 'Estedad', sans-serif;
}

/* ============================================================
   Field Hint - فقط داخل .sadtik-form-wrapper
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .field-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    font-family: 'Estedad', sans-serif;
    line-height: 1.6;
}

/* ============================================================
   ✅ Input Controls - رفع کامل سلکت باکس
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.25s ease;
    font-family: 'Estedad', sans-serif;
    outline: none;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control:hover {
    border-color: #9ca3af;
    background-color: #fefefe;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.12);
    transform: translateY(-1px);
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control::placeholder {
    color: #9ca3af;
    font-size: 13px;
    font-family: 'Estedad', sans-serif;
}

/* ============================================================
   ✅ Select Wrapper - رفع کامل مشکل مخفی شدن گزینه‌ها
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .select-wrapper {
    position: relative;
}

/* ✅ تنظیمات اصلی سلکت باکس - بدون تداخل */
.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] select.sadtik-input-control {
    /* حذف استایل‌های اضافی که باعث مخفی شدن می‌شوند */
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-image: none !important;
    padding-left: 40px !important;
    padding-right: 14px !important;
    cursor: pointer;
    min-height: 48px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2 !important;
    position: relative !important;
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

/* ✅ اطمینان از نمایش گزینه‌ها */
.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] select.sadtik-input-control option {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 8px 12px !important;
    min-height: 32px !important;
    color: #1f2937 !important;
    background-color: #ffffff !important;
    font-family: 'Estedad', sans-serif !important;
}

/* ✅ حالت hover برای گزینه‌ها */
.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] select.sadtik-input-control option:hover {
    background-color: #f3f4f6 !important;
}

/* ✅ حالت انتخاب شده */
.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] select.sadtik-input-control option:checked {
    background-color: #e5e7eb !important;
    color: #1f2937 !important;
}

/* ✅ فلش سفارشی */
.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .select-wrapper .fa-chevron-down {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   Price Input - فقط داخل .sadtik-form-wrapper
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .price-fa-input {
    font-family: 'Estedad', sans-serif !important;
    letter-spacing: 1px;
    direction: rtl !important;
    text-align: right !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    padding: 0 14px !important;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .price-input-wrapper {
    position: relative;
    direction: rtl;
}

/* ============================================================
   Price Words Box - فقط داخل .sadtik-form-wrapper
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] #price-in-words-container {
    animation: fadeInUp 0.3s ease;
}

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

/* ============================================================
   Validation States - فقط داخل .sadtik-form-wrapper
   ============================================================ */

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control.sadtik-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
    animation: shakeIndustry 0.4s ease-in-out;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control.sadtik-valid {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
}

@keyframes shakeIndustry {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-error-message {
    color: #dc2626;
    font-size: 11px;
    margin-top: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fef2f2;
    border-radius: 6px;
    border-right: 3px solid #ef4444;
    font-family: 'Estedad', sans-serif;
    animation: slideDownIndustry 0.25s ease forwards;
}

.sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-error-message::before {
    content: "⚠️";
    font-size: 12px;
}

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

/* ============================================================
   Responsive - فقط داخل .sadtik-form-wrapper
   ============================================================ */

@media (max-width: 768px) {
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] {
        padding: 18px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header i {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header h3 {
        font-size: 16px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-field-group label {
        font-size: 12px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control {
        height: 46px;
        padding: 0 12px;
        font-size: 13px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .price-fa-input {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] {
        padding: 14px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header i {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-card-header h3 {
        font-size: 15px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-field-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control {
        height: 44px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .price-fa-input {
        font-size: 14px !important;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .field-hint {
        font-size: 10px;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-error-message {
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* ============================================================
   Accessibility - Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control.sadtik-invalid {
        animation: none;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-error-message {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] #price-in-words-container {
        animation: none;
    }
}

/* ============================================================
   Print Styles
   ============================================================ */

@media print {
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] {
        padding: 0;
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .field-hint,
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-error-message,
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"]::before,
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] #price-in-words-container {
        display: none;
    }
    
    .sadtik-form-wrapper .sadtik-specs-wrapper[data-cpt="industry_equipment_a"] .sadtik-input-control {
        border: 1px solid #ccc;
        background: transparent;
    }
}