   /* Hide Google Translate bar & widget */
        iframe.skiptranslate,
        .goog-te-banner-frame,
        .goog-te-gadget {
            display: none !important;
        }

        /* Prevent page jump */
        body {
            top: 0 !important;
        }
        .invalid-icon {
            position: absolute;
            right: 40px;
            top: 50%;
            transform: translateY(-50%);
            display: none;
            cursor: pointer;
            font-size: 1.2rem;
            z-index: 6;
        }

        .form-control.is-invalid~.invalid-icon {
            display: inline;
        }

        .invalid-feedback {
            display: none;
            font-size: 0.875rem;
        }

        .form-control.is-invalid~.invalid-feedback {
            display: block;
        }
        .input-with-icon {
            position: relative; 
        }
        .password-criteria {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 6px);
            display: none;
            font-size: 0.85rem;
            z-index: 4;
            margin-top: 0.5rem;
        }

        .form-control {
            padding-right: 40px !important;
        }

        .form-floating .form-control {
            padding-right: 2.75rem;
        }

        #password-match {
            display: none;
            font-size: 0.85rem;
        }

        .criteria-met {
            color: green;
        }

        .criteria-not-met {
            color: red;
        }

        .position-relative .form-control {
            padding-right: 40px !important;
        }

        .toggle-password {
            position: absolute;
            right: 40px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            z-index: 5;
            background: transparent;
            border: none;
            color: #6c757d;
            font-size: 1rem;
        }

        .form-floating {
            position: relative;
        }

        .license-label {
            display: flex;
            align-items: center;
        }

        .license-bracket {
            font-size: 0.9em;
            color: #6c757d;
            margin-left: 5px;
        }

        .extra-license-field {
            display: none;
        }

        .select2-container .select2-selection--single {
             height: 44px !important;
        }

        .select2-container .select2-selection--single .select2-selection__clear {
            position: absolute;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.4s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
        }

        input:checked+.slider {
            background-color: #0d6efd;
        }

        input:checked+.slider:before {
            transform: translateX(26px);
        }

        #about {
            border: 1px solid #dfdfdf;
            border-radius: 15px;
        }

        .select2-container {
            width: 100% !important;
        }

        .select2-container .select2-selection--multiple {
            max-height: 42px !important;
            overflow-y: hidden !important;
            transition: max-height 0.3s ease !important;
        }

        .select2-container.expanded .select2-selection--multiple {
            max-height: 150px !important;
            overflow-y: auto !important;
        }

        .select2-container .select2-selection--multiple .select2-selection__rendered {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 4px !important;
            white-space: normal !important;
            overflow-y: auto !important;
        }

        .select2-container .select2-selection--multiple .select2-selection__choice {
            margin: 2px 0 !important;
        }

        .ak_agnt_frm_right-pane {
            display: block;
        }

          @media (max-width: 991.98px) {
             .ak_agnt_frm_right-pane {
                display: none !important;
            }
             .password-criteria {
            position: relative !important;
           
        }
        }
        .select2-container.is-invalid .select2-selection {
            border-color: #dc3545 !important;
        }

        .sweetalert-custom-popup {
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .sweetalert-custom-popup .swal2-title {
            color: #d4a017;
            font-weight: 600;
        }

        .sweetalert-custom-popup .swal2-content {
            color: #6b7280;
            line-height: 1.6;
        }

        .swal2-popup {
            padding: 1rem !important;
            font-family: 'Poppins', sans-serif;
        }

        .swal2-container.swal2-center>.swal2-popup {
            font-family: 'Poppins', sans-serif !important;
        }

        .swal-license-content {
            text-align: center;
            padding: 15px;
        }

        .swal-license-number {
            font-weight: 600;
            font-size: 1rem;
            color: #555;
            margin-bottom: 10px;
        }

        .swal-license-value {
            color: #000;
            font-weight: 700;
        }

        .swal-error-message {
            font-size: 1rem;
            margin-top: 10px;
        }

        .swal2-title {
            font-size: 1.2rem;
            font-weight: 700;
        }

        #password-match {
            width: fit-content !important;
        }

        .select2-component.is-invalid {
            border: 1px solid #dc3545 !important;
        }

        .select2-component.is-valid {
            border: 1px solid #198754 !important;
        }

        .real-time-checking {
            position: absolute;
            right: 80px;
            top: 50%;
            transform: translateY(-50%);
            display: none;
            font-size: 0.8rem;
            color: #6c757d;
        }

        .form-control.is-checking+.real-time-checking {
            display: block;
        }

        .form-control.is-duplicate {
            border-color: #dc3545 !important;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        }

        .form-control.is-checking {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%236c757d'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
            animation: rotate 1s linear infinite;
        }

        @keyframes rotate {
            from {
                background-position: right calc(0.375em + 0.1875rem) center;
            }

            to {
                background-position: right calc(0.375em + 0.1875rem) center;
            }
        }
        .license-field .form-control.is-invalid ~ label,
        .license-field .form-control.is-duplicate ~ label {
            transform: scale(0.85) translateY(-0.9rem) translateX(0.15rem);
            opacity: 1;
        }
        .license-field label {
            transition: none !important;
        }
        .language-switcher-maestro .lang-btn {
            padding: 9px 12px !important;
        }
        .select2-container--bootstrap5 .select2-dropdown .select2-results__options{
            text-align:center;
        }
        @media (max-width: 576px) { 
            .language-switcher-maestro {
                right: 30px;
            }
        }
        .tagify__dropdown__wrapper .tagify__dropdown__item:hover {
            background-color: #ff0202 !important; 
            color: #ffffff !important;
        }
        .tagify__dropdown__wrapper .tagify__dropdown__item--active {
            background-color: #ff0202 !important;
            color: #ffffff !important;
        }
        
        .tagify.is-invalid {
            border: 1px solid #F1416C !important;
        }
        
        /* RTL (Arabic) – button on left */
html[lang="ar"] .verify-btn-inside {
    right: auto;
    border-radius: 7px 0 0 7px !important;  
}

/* RTL spacing ONLY for Phone & WhatsApp inputs */
html[lang="ar"] #phone,
html[lang="ar"] #whatsapp {
       padding-right: 7rem !important;
}
/* RTL labels (default) */
html[lang="ar"] label.form-label {
    display: block;
    text-align: right;
    direction: rtl;
}

/* EXCEPTION: keep WhatsApp toggle label LTR */
html[lang="ar"] label.form-label.no-rtl {
    text-align: left;
    direction: ltr;
    display: inline-block;
}

/* Tagify container in RTL */
html[lang="ar"] .tagify {
    direction: rtl !important;          /* container becomes RTL */
    display: flex !important;           /* use flex layout */
    flex-wrap: wrap;                     /* allow multiple tags */
    text-align: right !important;       /* align content right */
}

/* Each tag inside the container */
html[lang="ar"] .tagify .tagify__tag {
    float: none !important;             /* remove LTR float */
    margin-left: 0.25rem;               /* small spacing on left */
    margin-right: 0.25rem;              /* spacing on right */
}

/* Input box placement */
html[lang="ar"] .tagify .tagify__input {
    order: 1;                            /* put input AFTER tags */
    flex: 1 1 auto;                      /* input grows to fill remaining space */
    text-align: right !important;        /* input text right-aligned */
    direction: rtl !important;
}
