    .mrserver-crm-form-wrapper {
        direction: rtl;
        text-align: right;
        font-family: 'Tajawal', sans-serif;
        max-width: 1100px;
        margin: 3rem auto;
        background: #ffffff;
        padding: 2.5rem 3.5rem 3.5rem;
        border-radius: 16px;
        border: 1px solid #f0f0f0;
        box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
    }
    .mrserver-crm-form-wrapper h3 {
        font-weight: 800;
        font-size: 28px;
        text-align: center;
        margin-bottom: 2.5rem;
        color: #232f63;
    }
    .mrserver-crm-form-wrapper .form-main-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0 3rem;
    }
    @media (min-width: 992px) {
        .mrserver-crm-form-wrapper .form-main-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    .mrserver-crm-form-wrapper .form-column {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .mrserver-crm-form-wrapper fieldset {
        border: none;
        padding: 0;
        margin: 0;
    }
    .mrserver-crm-form-wrapper legend {
        font-size: 18px;
        font-weight: 700;
        color: #d0a15a;
        padding-bottom: 12px;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #f0f0f0;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mrserver-crm-form-wrapper .legend-icon {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }
    .mrserver-crm-form-wrapper .legend-icon svg {
        width: 22px;
        height: 22px;
        color: #d0a15a;
    }
    .mrserver-crm-form-wrapper .fieldset-grid {
        display: grid;
        gap: 1.5rem 2rem;
        grid-template-columns: 1fr;
    }
    @media (min-width: 768px) {
        .mrserver-crm-form-wrapper .fieldset-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    .mrserver-crm-form-wrapper .form-group {
        margin-bottom: 0;
    }
    .mrserver-crm-form-wrapper .form-group.full-width {
        grid-column: 1 / -1;
    }
    .mrserver-crm-form-wrapper .form-label {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 8px;
        color: #343a40;
        display: block;
    }
    .mrserver-crm-form-wrapper .form-control,
    .mrserver-crm-form-wrapper .form-select,
    .mrserver-crm-form-wrapper textarea {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 10px 15px;
        font-size: 15px;
        width: 100%;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .mrserver-crm-form-wrapper .form-control:focus,
    .mrserver-crm-form-wrapper .form-select:focus,
    .mrserver-crm-form-wrapper textarea:focus {
        border-color: #d0a15a;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(208, 161, 90, 0.15);
        outline: none;
    }
    label[for="profile_photo_input"] {
        text-align: center;
        background: #232f63;
        color: #fff;
        padding: 8px 20px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
        display: inline-block;
    }
    label[for="profile_photo_input"]:hover {
        background: #1a234a;
    }
    /* ── Profile Photo Section ── */
    .photo-section-card {
        margin-bottom: 2.5rem;
        background: linear-gradient(135deg, #fdfaf5 0%, #fffcf7 100%);
        border: 1px solid #ede3d0;
        border-radius: 16px;
        padding: 2rem 2.5rem;
        box-shadow: 0 4px 20px rgba(208,161,90,0.08);
    }
    .photo-section-title {
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        color: #d0a15a;
        margin-bottom: 1.8rem;
        letter-spacing: 0.3px;
    }
    .photo-upload-layout {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        flex-wrap: wrap;
    }
    /* Photo column */
    .photo-upload-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        flex-shrink: 0;
        padding: 0 2.5rem;
    }
    .photo-ring-wrapper {
        position: relative;
        width: 160px;
        height: 160px;
    }
    .photo-preview-img {
        width: 160px;
        height: 160px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #d0a15a;
        box-shadow: 0 0 0 5px rgba(208,161,90,0.15), 0 8px 24px rgba(0,0,0,0.1);
        display: block;
        transition: box-shadow 0.3s ease;
    }
    .photo-ring-badge {
        position: absolute;
        bottom: 6px;
        left: 6px;
        background: #d0a15a;
        color: #fff;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        border: 2px solid #fff;
    }
    .photo-upload-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #232f63;
        color: #fff;
        padding: 9px 24px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.25s ease, transform 0.15s ease;
        border: none;
        white-space: nowrap;
    }
    .photo-upload-btn:hover {
        background: #1a234a;
        transform: translateY(-1px);
    }
    .photo-upload-btn .req-star {
        color: #d0a15a;
        font-size: 16px;
        line-height: 1;
    }
    /* Vertical divider between columns */
    .photo-col-divider {
        width: 1px;
        height: 140px;
        background: linear-gradient(to bottom, transparent, #e0c99a, transparent);
        flex-shrink: 0;
        align-self: center;
    }
    /* Requirements column */
    .photo-requirements-col {
        flex: 1;
        min-width: 220px;
        max-width: 360px;
        padding: 0 2.5rem;
    }
    .photo-requirements-inner {
        direction: rtl;
        text-align: right;
    }
    .photo-req-header {
        font-size: 13px;
        font-weight: 700;
        color: #a0722a;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px dashed #e0c99a;
    }
    .photo-req-list {
        list-style: none;
        margin: 0 0 14px 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .photo-req-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12.5px;
        color: #4a3c25;
        line-height: 1.4;
    }
    .req-check {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        background: #e8f5e9;
        color: #2e7d32;
        border-radius: 50%;
        font-size: 11px;
        font-weight: 700;
        flex-shrink: 0;
    }
    .req-x {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        background: #fdecea;
        color: #c62828;
        border-radius: 50%;
        font-size: 11px;
        font-weight: 700;
        flex-shrink: 0;
    }
    .photo-req-formats {
        font-size: 11px;
        color: #9e8b6e;
        background: rgba(208,161,90,0.08);
        border-radius: 6px;
        padding: 5px 10px;
        text-align: center;
        letter-spacing: 0.5px;
    }
    @media (max-width: 640px) {
        .photo-upload-layout {
            flex-direction: column;
            gap: 1.5rem;
        }
        .photo-col-divider {
            width: 80px;
            height: 1px;
            background: linear-gradient(to right, transparent, #e0c99a, transparent);
        }
        .photo-upload-col,
        .photo-requirements-col {
            padding: 0;
            max-width: 100%;
            width: 100%;
        }
        .photo-requirements-col {
            text-align: center;
        }
        .photo-requirements-inner {
            text-align: center;
        }
        .photo-req-list li {
            justify-content: center;
        }
        .photo-section-card {
            padding: 1.5rem 1rem;
        }
    }
    .form-submission-area {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 2.5rem;
    }
    .privacy-policy-group {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 1.5rem;
    }
    .mrserver-crm-form-wrapper .btn-submit {
        font-weight: 700;
        font-size: 16px;
        border-radius: 8px;
        background: linear-gradient(135deg, #e0b472 0%, #c8913e 100%);
        color: #fff;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(208, 161, 90, 0.35);
        transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    }
    .mrserver-crm-form-wrapper .btn-submit:disabled {
        opacity: 0.6;
        cursor: wait;
    }
    .form-response {
        margin-top: 1.5rem;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        display: none;
    }
    .img-container {
        width: 100%;
        max-height: 500px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f7f7f7;
    }
    .img-container img {
        display: block;
        max-width: 100%;
    }
    .modal-body {
        padding: 1rem;
    }
    .input-language-hint {
        font-size: 0.875em;
        margin-top: 4px;
    }
    .validation-error {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.5rem;
        display: none;
    }
    .ltr-input {
        direction: ltr !important;
        text-align: left !important;
    }
    /* تخصيص مكتبة intl-tel-input */
    .phone-field-container {
        direction: ltr !important;
        text-align: left;
    }
    .iti {
        width: 100% !important;
        direction: ltr;
    }
    .iti__country-list {
        direction: ltr !important;
        font-family: 'Tajawal', sans-serif;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        border-radius: 8px;
        border: none;
        max-height: 300px;
        overflow-y: auto;
        text-align: left;
    }
    .iti__country {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.2s;
        direction: ltr;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .iti__country:hover,
    .iti__country.iti__highlight {
        background-color: rgba(208, 161, 90, 0.1);
        color: #d0a15a;
    }
    .iti__country-name {
        color: #495057;
        margin-left: 8px;
        flex: 1;
        text-align: left;
    }
    .iti__dial-code {
        color: #d0a15a;
        font-weight: 600;
        margin-left: auto;
        text-align: right;
        min-width: 60px;
    }
    .iti__flag {
        border-radius: 2px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        order: 1;
        margin-right: 4px;
        margin-left: 0;
    }
    .privacy-note{
        font-size: 0.95rem;
        color:#555;
        margin-bottom:1rem;
    }
    .iti__selected-flag {
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        border-radius: 8px 0 0 8px;
        padding: 0 8px;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        direction: ltr;
        left: 0 !important;
        right: auto !important;
        width: 60px;
        height: 100%;
    }
    .iti__selected-flag:hover,
    .iti__selected-flag:focus {
        background-color: #fff;
        border-color: #d0a15a;
    }
    .iti__arrow {
        border-top-color: #666;
        margin-left: 4px;
        order: 2;
        margin-right: 0;
    }
    .iti input[type="tel"] {
        border-radius: 0 8px 8px 0 !important;
        border-left: none !important;
        padding-left: 65px !important;
        padding-right: 16px !important;
        font-size: 1rem;
        direction: ltr;
        text-align: left;
        line-height: 1.5;
        vertical-align: middle;
    }
    .iti input[type="tel"]::placeholder {
        text-align: left !important;
        direction: ltr !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        color: #999;
        opacity: 1;
    }
    .iti input[type="tel"]:focus {
        border-color: #d0a15a !important;
        box-shadow: 0 0 0 0.25rem rgba(208, 161, 90, 0.25) !important;
    }
    .iti--allow-dropdown input[type="tel"] {
        padding-left: 65px !important;
        padding-right: 16px !important;
    }
    /* رسائل الخطأ للمكتبة */
    .iti__error-msg {
        color: #dc3545;
        font-size: 0.9rem;
        margin-top: 5px;
        display: block;
        font-family: 'Tajawal', sans-serif;
    }
    .iti input[type="tel"].iti__error {
        border-color: #dc3545 !important;
    }
    /* تحسين للجوال */
    @media (max-width: 768px) {
        .iti__country-list {
            max-height: 250px;
            direction: ltr !important;
        }
        .iti input[type="tel"] {
            font-size: 16px; /* لمنع zoom في iOS */
        }
        .iti__country {
            padding: 15px 16px;
        }
    }
    /* تحسين شريط البحث */
    .iti__search-input {
        direction: ltr !important;
        text-align: left !important;
        padding: 10px 15px;
        font-family: 'Tajawal', sans-serif;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        outline: none;
        font-size: 0.9rem;
    }
    .iti__search-input::placeholder {
        color: #999;
        text-align: left;
    }
  /* زر الإرسال الذهبي */
  .mrserver-crm-form-wrapper .btn-submit:hover {
    background: linear-gradient(135deg, #e8c080 0%, #d0a15a 100%) !important;
    box-shadow: 0 6px 20px rgba(208, 161, 90, 0.5) !important;
  }
  .mrserver-crm-form-wrapper .btn-submit:focus {
    box-shadow: 0 0 0 4px rgba(208, 161, 90, 0.35) !important;
  }
  .mrserver-crm-form-wrapper .btn-submit:disabled {
    opacity: 0.6;
    cursor: wait;
  }
    /* إصلاح اتجاه العلم والحقل بالكامل */
    .iti__flag-container {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0 !important;
        right: auto !important;
        padding: 0;
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .iti__dropdown-content {
        direction: ltr !important;
    }
    .phone-field-container .iti {
        text-align: left !important;
    }
    .phone-field-container .iti * {
        direction: ltr !important;
    }
    .iti input[type="tel"]:focus::placeholder {
        opacity: 0.7;
    }
    /* تعديل محاذاة النص داخل الحقل */
    .iti .iti__selected-flag .iti__flag {
        position: static;
        margin: 0 2px 0 0;
    }
    .iti .iti__selected-flag .iti__arrow {
        position: static;
        margin: 0 0 0 2px;
    }

    /* إصلاح العلم السوري - استخدام العلم الجديد بدلاً من القديم */
    .iti__flag.iti__sy {
        background-image: url('https://flagcdn.com/w20/sy.png') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    /* للتأكد من ظهور العلم الصحيح في جميع الأحجام */
    .iti__country-list .iti__flag.iti__sy {
        background-image: url('https://flagcdn.com/w20/sy.png') !important;
        background-size: 16px 12px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    /* تحسين للشاشات عالية الدقة */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .iti__flag.iti__sy,
        .iti__country-list .iti__flag.iti__sy {
            background-image: url('https://flagcdn.com/w40/sy.png') !important;
        }
    }
    /* ---- N/A Toggle — text pill button ---- */
    .social-input-group {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .social-input-group .form-control {
        flex: 1;
        min-width: 0;
    }
    .btn-na-toggle {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        padding: 0.3rem 0.8rem;
        font-size: 0.78rem;
        font-weight: 700;
        font-family: inherit;
        border-radius: 20px;
        border: 1.5px solid #d1d5db;
        background: #f9fafb;
        color: #6b7280;
        cursor: pointer;
        transition: all 0.18s ease;
        white-space: nowrap;
        line-height: 1.5;
        user-select: none;
    }
    .btn-na-toggle:hover {
        border-color: #f87171;
        color: #ef4444;
        background: #fef2f2;
    }
    .btn-na-toggle.is-na {
        border-color: #ef4444;
        background: #ef4444;
        color: #fff;
    }
    .btn-na-toggle.is-na:hover {
        border-color: #dc2626;
        background: #dc2626;
    }
    .social-url-input.is-na {
        background: #f3f4f6 !important;
        color: #9ca3af !important;
        cursor: not-allowed;
    }

    /* ---- CV Dropzone ---- */
    .cv-dropzone {
        position: relative;
        border: 2px dashed #c7d2fe;
        border-radius: 14px;
        background: #f8f9ff;
        padding: 0.75rem 1rem;
        text-align: center;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
        user-select: none;
    }
    .cv-dropzone:hover,
    .cv-dropzone--over {
        border-color: #4f6ef7;
        background: #eef1ff;
    }
    .cv-dropzone--done {
        border-color: #34d399;
        background: #f0fdf4;
    }
    .cv-dropzone--error {
        border-color: #f87171;
        background: #fef2f2;
    }
    .cv-dropzone__input {
        display: none;
    }
    .cv-dropzone__icon {
        display: flex;
        justify-content: center;
        margin-bottom: 0.3rem;
    }
    .cv-dropzone__icon svg {
        width: 30px;
        height: 30px;
    }
    .cv-dropzone__title {
        font-size: 0.85rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.35rem;
    }
    .cv-dropzone__browse {
        color: #4f6ef7;
        text-decoration: underline;
        cursor: pointer;
    }
    .cv-dropzone__formats {
        font-size: 0.78rem;
        color: #9ca3af;
        margin-top: 0.25rem;
    }
    .cv-dropzone__file-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .cv-dropzone__file-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    .cv-dropzone__file-name {
        font-size: 0.88rem;
        font-weight: 600;
        color: #1e40af;
        word-break: break-all;
        max-width: 260px;
    }
    .cv-dropzone__remove {
        background: none;
        border: none;
        color: #ef4444;
        font-size: 1.3rem;
        line-height: 1;
        cursor: pointer;
        padding: 0 4px;
        flex-shrink: 0;
    }
    .cv-dropzone__remove:hover { color: #dc2626; }
    .cv-dropzone__status {
        margin-top: 0.5rem;
        font-size: 0.82rem;
        color: #6b7280;
        min-height: 1.2em;
    }
    .cv-dropzone--done .cv-dropzone__status { color: #059669; font-weight: 600; }
    .cv-dropzone--error .cv-dropzone__status { color: #dc2626; }

    .mrserver-crm-form-wrapper .social-field-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }
    .mrserver-crm-form-wrapper .social-field-header .form-label {
        margin-bottom: 0;
    }
    .mrserver-crm-form-wrapper .social-no-account-toggle {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        color: #6c757d;
        cursor: pointer;
        white-space: nowrap;
        font-weight: 400;
        user-select: none;
    }
    .mrserver-crm-form-wrapper .social-no-account-toggle input[type="checkbox"] {
        width: 14px;
        height: 14px;
        accent-color: #d0a15a;
        cursor: pointer;
        flex-shrink: 0;
    }
    .mrserver-crm-form-wrapper .social-url-error {
        color: #dc2626;
        font-size: 12px;
        margin-top: 5px;
        font-weight: 500;
    }
    .mrserver-crm-form-wrapper .social-field-input.social-url-invalid {
        border-color: #dc2626 !important;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
    }
    /* ── Select2 styling to match other form fields ── */
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single {
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        height: auto !important;
        min-height: 42px !important;
        padding: 0 !important;
        font-size: 15px !important;
        font-family: 'Tajawal', sans-serif !important;
    }
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
        padding: 8px 36px 8px 15px !important;
        line-height: 1.6 !important;
        color: #212529 !important;
        font-size: 15px !important;
        font-family: 'Tajawal', sans-serif !important;
    }
    .mrserver-crm-form-wrapper .select2-container--bootstrap4.select2-container--focus .select2-selection--single,
    .mrserver-crm-form-wrapper .select2-container--bootstrap4.select2-container--open .select2-selection--single {
        border-color: #d0a15a !important;
        background: #fff !important;
        box-shadow: 0 0 0 4px rgba(208, 161, 90, 0.15) !important;
        outline: none !important;
    }
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
        color: #6c757d !important;
    }
    .mrserver-crm-form-wrapper .select2-selection__clear {
        display: none !important;
    }
    /* dropdown panel */
    .select2-container--bootstrap4 .select2-dropdown {
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
        font-family: 'Tajawal', sans-serif !important;
        font-size: 15px !important;
    }
    .select2-container--bootstrap4 .select2-results__option--highlighted {
        background-color: #d0a15a !important;
    }