    /* ================================================================
       Hide the native PrestaShop fields
       Conditional based on the admin configuration
       ================================================================ */
    {if isset($advb2bc_form_hide_native_siret_ape) && $advb2bc_form_hide_native_siret_ape}
    /* Hide the native PrestaShop SIRET field (duplicate of our module) */
    .form-group:has(#field-siret),
    .form-group:has(input[name="siret"]:not([name^="advb2bc_custom"])),
    .elementor-field-group:has(input[name="siret"]:not([name^="advb2bc_custom"])) {
        display: none !important;
    }

    /* Hide the native APE field if present */
    .form-group:has(#field-ape),
    .form-group:has(input[name="ape"]:not([name^="advb2bc_custom"])),
    .elementor-field-group:has(input[name="ape"]:not([name^="advb2bc_custom"])) {
        display: none !important;
    }
    {/if}

    /* ================================================================
       Account Type Selector (Individual / Professional)
       Positionnement via JavaScript (conforme standards PrestaShop)
       ================================================================ */
    #advb2bc-account-type-selector {
        margin-bottom: 1.5rem;
        padding: 0;
    }

    /* Dropdown mode: uses the native PrestaShop classes (col-md-2 + col-md-8 + col-md-2) */
    /* No custom CSS needed, the Bootstrap grid handles everything */

    .advb2bc-account-type-options {
        display: flex !important;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .advb2bc-account-type-option {
        flex: 1;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        border: 2px solid #e0e0e0;
        cursor: pointer;
        transition: all 0.25s ease;
        background: #fff;
        margin: 0;
        position: relative;
        user-select: none;
    }


    .advb2bc-account-type-option.selected {
        border-color: black;
    }

    .advb2bc-account-type-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .advb2bc-account-type-option .advb2bc-option-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.25s ease;
    }

    .advb2bc-account-type-option .advb2bc-option-icon svg {
        width: 20px;
        height: 20px;
    }

    .advb2bc-account-type-option[data-type="personal"] .advb2bc-option-icon {
        background: #f5f5f5;
        color: #666;
    }

    .advb2bc-account-type-option[data-type="professional"] .advb2bc-option-icon {
        background: #f5f5f5;
        color: #666;
    }

    .advb2bc-account-type-option.selected .advb2bc-option-icon {
        transform: scale(1.05);
    }

    .advb2bc-account-type-option[data-type="personal"].selected .advb2bc-option-icon {
        background: #666;
        color: #fff;
    }

    .advb2bc-account-type-option[data-type="professional"].selected .advb2bc-option-icon {
        background: #666;
        color: #fff;
    }

    .advb2bc-account-type-option .advb2bc-option-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }

    .advb2bc-account-type-option .advb2bc-option-label {
        font-weight: 600;
        font-size: 14px;
        color: #232323;
        line-height: 1.3;
    }

    .advb2bc-account-type-option .advb2bc-option-desc {
        font-size: 11px;
        color: #7a7a7a;
        line-height: 1.3;
    }

    .advb2bc-account-type-option .advb2bc-option-check {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #d0d0d0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .advb2bc-account-type-option .advb2bc-option-check::after {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: transparent;
        transition: all 0.2s ease;
    }

    .advb2bc-account-type-option.selected .advb2bc-option-check::after {
        background: #fff;
    }

    /* Hide the company field when individual is selected */
    {if isset($advb2bc_form_hide_company_for_personal) && $advb2bc_form_hide_company_for_personal}
    .advb2bc-hide-company .form-group:has(#field-company),
    .advb2bc-hide-company .form-group:has(input[name="company"]),
    .advb2bc-hide-company .elementor-field-group:has(input[name="company"]) {
        display: none !important;
    }
    {/if}

    /* ================================================================
       RADIO style - REMOVED (mode not used)
       ================================================================ */

    /* ================================================================
       DROPDOWN style for the account type selector
       Alignment consistent with the PrestaShop form (row with a col-md-3 label)
       ================================================================ */
    .advb2bc-account-type-dropdown.form-group {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 1rem;
    }

    .advb2bc-account-type-dropdown .advb2bc-dropdown-label {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
        color: #232323;
        margin-bottom: 8px;
        padding-right: 15px;
    }

    .advb2bc-account-type-dropdown .advb2bc-dropdown-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    @media (min-width: 768px) {
        .advb2bc-account-type-dropdown .advb2bc-dropdown-label {
            flex: 0 0 25%;
            max-width: 25%;
            text-align: right;
            margin-bottom: 0;
        }
        .advb2bc-account-type-dropdown .advb2bc-dropdown-wrapper {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }

    /* Dropdown mode: base styles only, the hover/focus styles are handled by the theme */
    .advb2bc-account-type-dropdown select {
        width: 100%;
    }

    /* Message info adapte */
    .advb2bc-b2b-info-message {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border: 1px solid #90caf9;
        border-radius: 8px;
        padding: 12px 16px;
        margin: 15px 0;
        color: #1565c0;
        font-size: 14px;
    }

    .advb2bc-b2b-info-message::before {
        content: 'ℹ️ ';
    }
    .advb2bc-phone-intl-wrapper {
        position: relative;
    }
    .advb2bc-phone-intl-wrapper .iti {
        width: 100%;
    }
    .advb2bc-phone-intl-wrapper .iti__tel-input {
        width: 100%;
        padding-left: 52px !important;
    }
    .advb2bc-phone-intl-wrapper .iti__country-container {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
    }
    .advb2bc-phone-intl-wrapper .iti__selected-country {
        padding: 0 6px 0 8px;
        background: #f8f9fa;
        border-right: 1px solid #ced4da;
    }
    .advb2bc-phone-intl-wrapper .iti__dropdown-content {
        z-index: 9999;
    }

    /* Real-time validation visual feedback */
    .advb2bc-validation-feedback {
        display: none;
        margin-top: 5px;
        font-size: 13px;
        transition: all 0.2s ease;
    }
    .advb2bc-validation-feedback.visible {
        display: block;
    }
    .advb2bc-validation-feedback .advb2bc-valid-msg {
        color: #28a745;
        display: none;
    }
    .advb2bc-validation-feedback .advb2bc-invalid-msg {
        color: #dc3545;
        display: none;
    }
    .advb2bc-validation-feedback .advb2bc-validating-msg {
        color: #6c757d;
        display: none;
    }
    .advb2bc-validation-feedback .advb2bc-valid-msg.visible,
    .advb2bc-validation-feedback .advb2bc-invalid-msg.visible,
    .advb2bc-validation-feedback .advb2bc-validating-msg.visible {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .advb2bc-validation-feedback .advb2bc-icon {
        font-size: 16px;
        line-height: 1;
    }
    .advb2bc-validation-feedback .advb2bc-icon-spin {
        animation: advb2bc-spin 1s linear infinite;
    }
    @keyframes advb2bc-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    /* Input border colors based on validation state */
    .advb2bc-b2b-field.advb2bc-valid {
        border-color: #28a745 !important;
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
    }
    .advb2bc-b2b-field.advb2bc-invalid {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
    }
    .advb2bc-b2b-field.advb2bc-validating {
        border-color: #6c757d !important;
    }

    /* Submit button disabled state */
    .advb2bc-submit-blocked {
        opacity: 0.6;
        cursor: not-allowed;
    }
    .grecaptcha-badge { visibility: hidden !important; }

    /* Style for the reCAPTCHA legal notice */
    .advb2bc-recaptcha-notice {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 10px;
        color: #999;
        margin: 12px 0;
        padding: 8px 10px;
        background: #f8f9fa;
        border-radius: 5px;
        border: 1px solid #eee;
        line-height: 1.4;
    }
    .advb2bc-recaptcha-notice .advb2bc-recaptcha-icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        color: #28a745;
        margin-top: 0;
    }
    .advb2bc-recaptcha-notice a {
        color: #6c757d;
        text-decoration: underline;
    }
    /* Profile Selection Cards */
    .advb2bc-profile-selector {
        margin: 20px 0 30px 0;
        display: none;
    }
    .advb2bc-profile-selector.visible {
        display: block;
    }
    .advb2bc-profile-selector h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: #232323;
    }
    .advb2bc-profile-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    .advb2bc-profile-card {
        border: 2px solid #e1e1e1;
        border-radius: 8px;
        padding: 15px;
        cursor: pointer;
        transition: all 0.2s ease;
        background: #fff;
        position: relative;
    }
    .advb2bc-profile-card.selected {
        border-color: #2fb5d2;
        background: linear-gradient(135deg, #f0fafc 0%, #fff 100%);
        box-shadow: 0 2px 12px rgba(47, 181, 210, 0.25);
    }
    .advb2bc-profile-card.selected::after {
        content: '✓';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        background: #2fb5d2;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }
    .advb2bc-profile-card-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    .advb2bc-profile-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #fff;
    }
    .advb2bc-profile-name {
        font-weight: 600;
        font-size: 15px;
        color: #232323;
    }
    .advb2bc-profile-description {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
    }
    .advb2bc-profile-badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 500;
        margin-top: 8px;
    }
    .advb2bc-profile-badge.public-sector {
        background: #e3f2fd;
        color: #1565c0;
    }
    .advb2bc-profile-input {
        display: none;
    }

    /* Dropdown mode */
    .advb2bc-profile-dropdown {
        max-width: 400px;
    }
    /* Profile dropdown: base styles only, the focus styles are handled by the theme */
    .advb2bc-profile-dropdown select {
        width: 100%;
    }

    /* APE/NAF Auto-completion */
    .advb2bc-ape-autocomplete-wrapper {
        position: relative;
    }
    .advb2bc-ape-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
        border: 1px solid #ddd;
        border-top: none;
        border-radius: 0 0 4px 4px;
        max-height: 250px;
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        display: none;
    }
    .advb2bc-ape-suggestions.visible {
        display: block;
    }
    .advb2bc-ape-suggestion {
        padding: 10px 12px;
        cursor: pointer;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.15s ease;
    }
    .advb2bc-ape-suggestion:last-child {
        border-bottom: none;
    }
    .advb2bc-ape-suggestion.highlighted {
        background: #f5f9fc;
    }
    .advb2bc-ape-suggestion .advb2bc-ape-code {
        font-weight: 600;
        color: #2fb5d2;
        font-family: monospace;
        font-size: 14px;
    }
    .advb2bc-ape-suggestion .advb2bc-ape-label {
        display: block;
        font-size: 12px;
        color: #666;
        margin-top: 2px;
        line-height: 1.3;
    }
    .advb2bc-ape-input.has-suggestions {
        border-radius: 4px 4px 0 0;
    }
    .advb2bc-ape-selected-label {
        font-size: 12px;
        color: #666;
        margin-top: 5px;
        font-style: italic;
    }
