    /* ============================================================
       All styles are scoped inside .mrserver-crm-form-wrapper
       to prevent conflicts with WordPress or Bootstrap global styles
    ============================================================ */
    .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; }
    /* Custom Radio Button Styles */
    .form-check-inputc { opacity: 0; position: absolute; z-index: -1; }
    .form-check-inputc + label { position: relative; padding-right: 25px; cursor: pointer; user-select: none; font-size: 15px; line-height: 20px; }
    .form-check-inputc + label::before { content: ''; position: absolute; right: 0; top: 0; width: 20px; height: 20px; border: 2px solid #adb5bd; background-color: #fff; transition: all 0.2s ease; }
    input[type="radio"].form-check-inputc + label::before { border-radius: 50%; }
    .form-check-inputc:checked + label::before { border-color: #d0a15a; }
    .form-check-inputc + label::after { content: ''; position: absolute; right: 5px; top: 5px; width: 10px; height: 10px; background-color: #d0a15a; transition: all 0.2s ease; transform: scale(0); }
    input[type="radio"].form-check-inputc + label::after { border-radius: 50%; }
    .form-check-inputc:checked + label::after { transform: scale(1); }
    /* Force box-sizing on all inputs to prevent overflow */
    .mrserver-crm-form-wrapper *,
    .mrserver-crm-form-wrapper *::before,
    .mrserver-crm-form-wrapper *::after { box-sizing: border-box; }
    /* Unified field appearance */
    .mrserver-crm-form-wrapper .form-control,
    .mrserver-crm-form-wrapper .form-select,
    .mrserver-crm-form-wrapper textarea { background: #f8f9fa !important; border: 1px solid #dee2e6 !important; border-radius: 8px !important; padding: 12px 15px !important; font-size: 15px !important; width: 100% !important; transition: border-color 0.2s ease, box-shadow 0.2s ease !important; box-shadow: none !important; box-sizing: border-box !important; height: auto !important; line-height: 1.5 !important; }
    .mrserver-crm-form-wrapper .form-control:focus,
    .mrserver-crm-form-wrapper .form-select:focus,
    .mrserver-crm-form-wrapper textarea:focus { border-color: #d0a15a !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(208, 161, 90, 0.15) !important; outline: none !important; }
    /* Select2 container — match input sizing exactly */
    .mrserver-crm-form-wrapper .select2-container { width: 100% !important; }
    .mrserver-crm-form-wrapper .select2-container .select2-selection--single { background: #f8f9fa !important; border: 1px solid #dee2e6 !important; border-radius: 8px !important; height: 50px !important; padding: 0 15px !important; display: flex !important; align-items: center !important; box-shadow: none !important; box-sizing: border-box !important; }
    .mrserver-crm-form-wrapper .select2-container--open .select2-selection--single,
    .mrserver-crm-form-wrapper .select2-container--focus .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-selection__rendered { line-height: normal !important; padding: 0 !important; font-size: 15px !important; color: #343a40 !important; }
    .mrserver-crm-form-wrapper .select2-selection__arrow { display: none !important; }
    .mrserver-crm-form-wrapper .select2-selection__clear { display: none !important; }
    .mrserver-crm-form-wrapper .select2-dropdown { border: 1px solid #dee2e6 !important; border-radius: 8px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; }
    /* ── 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-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;
    }
    .photo-col-divider {
        width: 1px;
        height: 140px;
        background: linear-gradient(to bottom, transparent, #e0c99a, transparent);
        flex-shrink: 0;
        align-self: center;
    }
    .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; }
    }
    .mrserver-crm-form-wrapper .form-submission-area { grid-column: 1 / -1; text-align: center; margin-top: 2.5rem; }
    .mrserver-crm-form-wrapper .submit-agreement-notice { font-size: 13px; color: #888; margin-bottom: 8px; }
    .mrserver-crm-form-wrapper .btn-submit { font-weight: 700 !important; font-size: 16px !important; border-radius: 8px !important; background: linear-gradient(135deg, #e0b472 0%, #c8913e 100%) !important; color: #fff !important; border: none !important; cursor: pointer !important; box-shadow: 0 4px 15px rgba(208,161,90,0.35) !important; transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease !important; }
    .mrserver-crm-form-wrapper .btn-submit:hover:not(:disabled) { background: linear-gradient(135deg, #c8913e 0%, #b07a2e 100%) !important; box-shadow: 0 6px 20px rgba(208,161,90,0.5) !important; transform: translateY(-1px); }
    .mrserver-crm-form-wrapper .btn-submit:disabled { opacity: 0.6 !important; cursor: wait !important; }
    .mrserver-crm-form-wrapper .form-response { margin-top: 1.5rem; padding: 1rem; border-radius: 8px; text-align: center; display: none; }
    .mrserver-crm-form-wrapper .img-container { width: 100%; max-height: 500px; overflow: hidden; display: flex; justify-content: center; align-items: center; background-color: #f7f7f7; }
    .mrserver-crm-form-wrapper .img-container img { display: block; max-width: 100%; }
    .mrserver-crm-form-wrapper .ltr-input { direction: ltr !important; text-align: left !important; }
    /* membership_id_wrapper is hidden/shown via jQuery */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .mrserver-crm-form-wrapper .input-language-hint { font-size: 0.875em; margin-top: 4px; }
    .mrserver-crm-form-wrapper .validation-error { color: #dc3545; font-size: 0.875rem; margin-top: 0.5rem; display: none; }
    /* intl-tel-input library customization — scoped to this form only */
    .mrserver-crm-form-wrapper .phone-field-container {
        direction: ltr !important;
        text-align: left;
    }
    /* iti wrapper: same height and width as other inputs */
    .mrserver-crm-form-wrapper .iti {
        width: 100% !important;
        direction: ltr;
        display: block !important;
    }
    /* The tel input itself */
    .mrserver-crm-form-wrapper .iti input[type="tel"] {
        width: 100% !important;
        height: 50px !important;
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        padding: 0 16px 0 70px !important;
        font-size: 15px !important;
        line-height: 50px !important;
        direction: ltr;
        text-align: left;
        box-shadow: none !important;
        box-sizing: border-box !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }
    .mrserver-crm-form-wrapper .iti input[type="tel"]:focus {
        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 .iti input[type="tel"]::placeholder {
        color: #999;
        opacity: 1;
    }
    /* Flag container — sits inside the tel input on the left */
    .mrserver-crm-form-wrapper .iti__flag-container {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0 !important;
        right: auto !important;
        width: 62px;
        padding: 0;
    }
    /* Selected flag button */
    .mrserver-crm-form-wrapper .iti__selected-flag {
        width: 62px;
        height: 100%;
        padding: 0 10px;
        background: transparent !important;
        border: none !important;
        border-right: 1px solid #dee2e6 !important;
        border-radius: 8px 0 0 8px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: background 0.2s;
        box-shadow: none !important;
    }
    .mrserver-crm-form-wrapper .iti__selected-flag:hover,
    .mrserver-crm-form-wrapper .iti__selected-flag:focus {
        background: rgba(208, 161, 90, 0.08) !important;
    }
    /* Arrow */
    .mrserver-crm-form-wrapper .iti__arrow {
        border-top-color: #888;
        margin-left: 2px;
    }
    /* Country dropdown list */
    .mrserver-crm-form-wrapper .iti__country-list,
    .iti__country-list {
        direction: ltr !important;
        font-family: 'Tajawal', sans-serif;
        box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
        border-radius: 8px !important;
        border: 1px solid #dee2e6 !important;
        max-height: 300px;
        overflow-y: auto;
        text-align: left;
    }
    .iti__country {
        padding: 10px 14px;
        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: 8px;
    }
    .iti__country:hover,
    .iti__country.iti__highlight {
        background-color: rgba(208, 161, 90, 0.1);
        color: #d0a15a;
    }
    .iti__country-name { color: #495057; flex: 1; text-align: left; }
    .iti__dial-code { color: #d0a15a; font-weight: 600; min-width: 50px; text-align: right; }
    .iti__flag { border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
    .iti__dropdown-content { direction: ltr !important; }
    /* Search input */
    .iti__search-input {
        direction: ltr !important;
        text-align: left !important;
        padding: 10px 14px;
        font-family: 'Tajawal', sans-serif;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        outline: none;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }
    .iti__search-input::placeholder { color: #999; }
    /* Error state */
    .iti input[type="tel"].iti__error { border-color: #dc3545 !important; }
    .iti__error-msg { color: #dc3545; font-size: 0.9rem; margin-top: 5px; display: block; font-family: 'Tajawal', sans-serif; }
    /* Mobile improvements */
    @media (max-width: 768px) {
        .iti__country-list { max-height: 250px; }
        .mrserver-crm-form-wrapper .iti input[type="tel"] { font-size: 16px !important; /* Prevent auto-zoom on iOS */ }
        .iti__country { padding: 12px 14px; }
    }

    /* Fix Syrian flag — use updated flag image */
    .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;
    }

    /* Ensure correct flag is shown inside the country list */
    .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;
    }

    /* High-DPI / Retina screen support */
    @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;
        }
    }

    /* Fix other outdated country flags — example: Libya */
    .iti__flag.iti__ly {
        background-image: url('https://flagcdn.com/w20/ly.png') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .iti__country-list .iti__flag.iti__ly {
        background-image: url('https://flagcdn.com/w20/ly.png') !important;
        background-size: 16px 12px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    /* High-DPI / Retina screen support for Libya flag */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .iti__flag.iti__ly,
        .iti__country-list .iti__flag.iti__ly {
            background-image: url('https://flagcdn.com/w40/ly.png') !important;
        }
    }

    /* ===== حالة عدم توفر كورسات ===== */
    .mrserver-crm-form-wrapper.mrserver-no-courses-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 3.5rem 2.5rem 4rem;
        gap: 0;
    }

    .mrserver-crm-form-wrapper .no-courses-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1.75rem;
        animation: float-icon 3s ease-in-out infinite;
    }

    .mrserver-crm-form-wrapper .no-courses-icon svg {
        width: 100%;
        height: 100%;
    }

    @keyframes float-icon {
        0%, 100% { transform: translateY(0); }
        50%       { transform: translateY(-8px); }
    }

    .mrserver-crm-form-wrapper .no-courses-title {
        font-size: 26px;
        font-weight: 800;
        color: #232f63;
        margin-bottom: 0.85rem;
    }

    .mrserver-crm-form-wrapper .no-courses-subtitle {
        font-size: 15.5px;
        color: #666;
        line-height: 1.9;
        margin-bottom: 2rem;
        max-width: 520px;
    }

    .mrserver-crm-form-wrapper .no-courses-features {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
        margin-bottom: 2.25rem;
    }

    .mrserver-crm-form-wrapper .no-courses-feature {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #fdf8ee;
        border: 1px solid #f0e4c3;
        border-radius: 50px;
        padding: 6px 16px;
        font-size: 14px;
        color: #5a4a2a;
        font-weight: 600;
    }

    .mrserver-crm-form-wrapper .feature-icon {
        font-size: 16px;
    }

    .mrserver-crm-form-wrapper .no-courses-whatsapp-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, #25d366 0%, #1aaa52 100%);
        color: #fff !important;
        text-decoration: none !important;
        font-size: 16px;
        font-weight: 700;
        padding: 14px 32px;
        border-radius: 50px;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
        transition: box-shadow 0.3s ease, opacity 0.3s ease;
        margin-bottom: 1.25rem;
    }

    .mrserver-crm-form-wrapper .no-courses-whatsapp-btn:hover {
        box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
        opacity: 0.93;
    }

    .mrserver-crm-form-wrapper .no-courses-whatsapp-btn svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .mrserver-crm-form-wrapper .no-courses-hint {
        font-size: 13px;
        color: #999;
        margin: 0;
    }
