/* File: 100tik/templates/forms/sections/contact-info/contact-info.css */

/**
 * Contact Info - Professional UI Style V6
 * ✅ ایزوله‌سازی کامل برای جلوگیری از نشت به هدر و فوتر
 * ✅ RTL کامل برای اعداد و کاراکترها
 * Version: 2.1.0 - ایزوله‌سازی + RTL
 */

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

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

.sadtik-form-wrapper .sadtik-contact-wrapper {
    position: relative;
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header i {
    font-size: 18px;
    color: #2563eb;
    background: #eff6ff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header i:hover {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.02);
}

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Estedad', sans-serif;
}

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

.sadtik-form-wrapper .sadtik-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.sadtik-form-wrapper .sadtik-field-group {
    margin-bottom: 20px;
    position: relative;
}

.sadtik-form-wrapper .sadtik-field-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: #475569;
    font-family: 'Estedad', sans-serif;
}

/* Required star */
.sadtik-form-wrapper .sadtik-field-group label.required::after {
    content: "*";
    color: #ef4444;
    margin-right: 4px;
    font-size: 14px;
}

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

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none;
}

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control:hover {
    border-color: #cbd5e1;
}

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control::placeholder {
    color: #94a3b8;
    font-size: 13px;
    font-family: 'Estedad', sans-serif;
}

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

.sadtik-form-wrapper .sadtik-contact-wrapper textarea.sadtik-input-control {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   LTR for Phone Numbers - فقط داخل .sadtik-form-wrapper
   ============================================================ */

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

/* ✅ Persian numbers support */
.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control[type="tel"],
.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control.sadtik-persian-num {
    font-feature-settings: "ss02";
    font-variant-numeric: tabular-nums;
}

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

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control.sadtik-invalid {
    border-color: #ef4444 !important;
    background-color: #fee2e2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: sadtikShake 0.4s ease-in-out;
}

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control.sadtik-valid {
    border-color: #10b981 !important;
    background-color: #d1fae5 !important;
}

.sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control.sadtik-warning {
    border-color: #f59e0b !important;
    background-color: #fef3c7 !important;
}

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

.sadtik-form-wrapper .sadtik-error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fee2e2;
    border-radius: 6px;
    border-right: 3px solid #ef4444;
    font-family: 'Estedad', sans-serif;
    animation: slideDown 0.25s ease forwards;
}

.sadtik-form-wrapper .sadtik-error-message::before {
    content: "⚠️";
    font-size: 11px;
}

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

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

.sadtik-form-wrapper .field-hint,
.sadtik-form-wrapper .sadtik-field-description {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
    font-family: 'Estedad', sans-serif;
}

.sadtik-form-wrapper .field-hint::before {
    content: "💡";
    font-size: 10px;
}

/* ============================================================
   Shake Animation
   ============================================================ */

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

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

@media (max-width: 768px) {
    .sadtik-form-wrapper .sadtik-grid-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header i {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header h3 {
        font-size: 15px;
    }
    
    .sadtik-form-wrapper .sadtik-field-group label {
        font-size: 13px;
    }
    
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control {
        height: 44px;
        padding: 0 12px;
        font-size: 13px;
    }
    
    .sadtik-form-wrapper .sadtik-contact-wrapper textarea.sadtik-input-control {
        padding: 10px 12px;
        min-height: 90px;
    }
}

@media (max-width: 576px) {
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header {
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
    
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header i {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-card-header h3 {
        font-size: 14px;
    }
    
    .sadtik-form-wrapper .sadtik-field-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control {
        height: 42px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .sadtik-form-wrapper .sadtik-error-message {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .sadtik-form-wrapper .field-hint {
        font-size: 10px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control.sadtik-invalid {
        animation: none;
    }
    
    .sadtik-form-wrapper .sadtik-error-message {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media print {
    .sadtik-form-wrapper .sadtik-contact-wrapper .sadtik-input-control {
        border: 1px solid #ccc;
        background: transparent;
    }
    
    .sadtik-form-wrapper .sadtik-error-message,
    .sadtik-form-wrapper .field-hint {
        display: none;
    }
}